I have this small script to restart OneDrive to fix problems that occur. I want to run it as admin, to ensure that it has the permissions to do its job, but OneDrive cant be started as admin. Can i start the sript ad administrator, but start OneDrive as a normal User? Heres the sript:
taskkill /IM onedrive.exe /F
sc stop OneSyncSvc_4a414
sc stop FileSyncHelper
timeout /t 2 /nobreak >nul
sc start OneSyncSvc_4a414
sc start FileSyncHelper
cd C:\Program Files\Microsoft OneDrive
OneDrive.exe
exit