PowerShell - System Administration
You want to write a script that checks if the 'W32Time' service is stopped, and if so, starts it. Which script snippet correctly does this?
$svc = Get-Service -Name W32Time stores the service object. Then $svc.Status -eq 'Stopped' correctly compares the status.Start-Service -Name W32Time starts the service.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions