Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Stop a ServiceContent of Stop a Service.ps1MD5 Hash: 23583E88EC1D2E6DA34A87EAE9AE6947 |
||
$srvName = "Alerter"
# Get Service Status $servicePrior = get-Service $srvName $srvName + " Service-Status: " + $servicePrior.status # Stop Service stop-Service $srvName set-Service $srvName -startuptype disabled # Get Service Status $servicePrior = get-Service $srvName $srvName + " Service-Status: " + $servicePrior.status | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |