Need to create a batch file for restarting some services remotely and restarting iis remotely in Admin mode.
Help would be appreciated
Thanks krish
|
Need to create a batch file for restarting some services remotely and restarting iis remotely in Admin mode. Help would be appreciated Thanks krish
| |||
feedback
|
|
SC and net start net stop are the way to go. MS KB link for SC. Technet on net commands. there's also iisrest which is a command line utility specifically for IIS. | |||
|
feedback
|
|
Why not just use SC? http://ss64.com/nt/sc.html | |||||
feedback
|
|
+1 for SC To elevate past UAC (if that is what you mean by run with admin privileges) you can use elevate.cmd - http://technet.microsoft.com/en-us/magazine/2007.06.utilityspotlight.aspx?pr=blog | |||
|
feedback
|