Powershell Start/Stop

Stop/Start Service:
PS> $svc = Get-Service -Name wuauserv -ComputerName Server1
PS> Stop-Service -InputObject $svc
 
Kill/End task Process:
  1. Trust Host
    http://technico.qnownow.com/the-winrm-client-cannot-process-the-request-if-the-authentication-scheme-is-different/
  2. PS C:\> invoke-command -computer nsc-2k3-2 { get-process calc | stop-process -force}
 

Post a Comment