Windows Services related commands - nirvikk/ncr GitHub Wiki
Populate C:\serverlist.txt
with list of remote computers
Replace NCRDataPump Service
with relevant servicename
Get-Service -Computername (Get-Content -path “c:\serverlist.txt”) -Name "NCRDataPump Service" | Select-Object MachineName,Name,Displayname,Status | Sort-Object Status
Get-Content C:\Serverlist.txt | ForEach-Object { Start-Service -InputObject $(Get-Service -Computer $_ -Name "NCRDataPump Service") }
- Login to any RS
- Run the following command on cmd:
shutdown -r -m \\5619smsssc082 -t 0
- Login to Terminal Server 2
- Run the following command on cmd:
xcopy D:\Nirvik\client \\9192smssws100\c$\windows\temp\client /E /H /C /I
- Navigate to
D:\Nirvik\client
folder on TS2 - Run
CopyClientFolder.bat