Set-service
Jump to navigation
Jump to search
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service
$credential = Get-Credential Set-Service -Name Schedule -Credential $credential
https://stackoverflow.com/questions/313622/powershell-script-to-change-service-account