Restart multiple Windows services with PowerShell

 

Step 1

Create file serverlist.txt with input:

server1
server2
server3
server4

 

Step 2

Open PowerShell at the locations where the serverlist.txt is created.

 

Start the command:

Get-Service -ComputerName (Get-Content “serverlist.txt”) “CryptSvc” | Restart-Service

For restarting the service: CryptSvc

You can change the name of the servers, and find the specific name at the services from windows.