How to execute one command of the script as a normal user?

196 Views Asked by At

I run the entire script as an administrator, but how to execute one of the script commands run as a normal user - not as an administrator? For example run last one command OneDrive.exe as normal user?

I'm start script.bat as administrator

taskkill /im fssoma.exe /F
taskkill /im FctSecSvr.exe /F
echo Services Stoped
echo Enter password:
manage-bde -unlock d: -password 
echo Drive D is Unlocked
echo
cd \
if exist 'D:\OneDrive - test' echo 'yes'
cd \
cd "C:\Program Files\Microsoft OneDrive"
OneDrive.exe
0

There are 0 best solutions below