Hi,
I am new to scripting and will need help creating one that will start start a cmd window (as administrator), cd to directory, run a command and close.
This will run for non-admin users as they login so it cannot prompt for admin password. I considered using task scheduler but this is a one time run that will be inserted in the registry runonce key.
example:
start cmd.exe
set tmpdir="C:\Program Files (x86)\camdesk"
cam /resetuserdata
pause
exit
any assistance will be greatly appreciated
I am new to scripting and will need help creating one that will start start a cmd window (as administrator), cd to directory, run a command and close.
This will run for non-admin users as they login so it cannot prompt for admin password. I considered using task scheduler but this is a one time run that will be inserted in the registry runonce key.
example:
start cmd.exe
set tmpdir="C:\Program Files (x86)\camdesk"
cam /resetuserdata
pause
exit
any assistance will be greatly appreciated