Windows Services related commands - nirvikk/ncr GitHub Wiki

Login to any server. In this case, store RS

Populate C:\serverlist.txt with list of remote computers
Replace NCRDataPump Service with relevant servicename

Run the following commands on Windows Powershell

Get status of service for a number of servers

Get-Service -Computername (Get-Content -path “c:\serverlist.txt”) -Name "NCRDataPump Service" | Select-Object MachineName,Name,Displayname,Status | Sort-Object Status

Set service status

Get-Content C:\Serverlist.txt | ForEach-Object { Start-Service -InputObject $(Get-Service -Computer $_ -Name "NCRDataPump Service") }


Restart POS remotely

  • Login to any RS
  • Run the following command on cmd: shutdown -r -m \\5619smsssc082 -t 0

Copy client folder to a workstation [Scenario]

  • Login to Terminal Server 2
  • Run the following command on cmd: xcopy D:\Nirvik\client \\9192smssws100\c$\windows\temp\client /E /H /C /I

OR

  • Navigate to D:\Nirvik\client folder on TS2
  • Run CopyClientFolder.bat
⚠️ **GitHub.com Fallback** ⚠️