You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
331 B
9 lines
331 B
|
|
if ((Get-Service -name "BITS").Status -eq "Running") { |
|
Write-Host "OK - BITS services is running" |
|
} else { |
|
Write-Host "WARNING - BITS service does not seem to be running" |
|
Write-Host "Attempting to start.." |
|
Restart-Service BITS |
|
Write-Host "BITS service status is: " (Get-Service -name "BITS").Status |
|
}
|
|
|