I need to run a batch file on a users desktop and run it with admin privileges to restart a service. I can get the batch file to work when I am logged in as local admin
Here is the script, please help
NET LOCALGROUP administrators "NT Authority\Local Service" /add
netsh winsock reset catalog
Set /p nul
Shutdown -r -t 1
Or can any one give me a way to run the cmd as a user without needing admin rights
No comments:
Post a Comment