Batch Script to Restart service on multiple servers
The Following example is to Restart the service "wuauserv" on list of servers
Save the below Line to a batch file (.CMD or .Bat) and execute to restart the service
@echo off
for /f %%i in (C:\Users\Bijesh\Desktop\Server.txt) do sc \\%%i start "wuauserv"
The Following example is to Restart the service "wuauserv" on list of servers
Save the below Line to a batch file (.CMD or .Bat) and execute to restart the service
@echo off
for /f %%i in (C:\Users\Bijesh\Desktop\Server.txt) do sc \\%%i start "wuauserv"
Regards
Bijesh
No comments:
Post a Comment