Vault WSUS - OpeningServices.ps1 fails to run due to Error - Set-Service: Service 'Update Orchestrator Service (UsoSvc)' cannot be configured due to the following error: access is denied
147
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:01 PM
Symptom
On Server 2016/2019 when attempting to patch a vault server (either via WSUS or manually apply updates), you get the following error for running the OpeningServices.ps1 PS script:
Set-Service: Service 'Update Orchestrator Service (UsoSvc)' cannot be configured due to the following error: access is denied
*This is happening even when running PowerShell as a local administrator in an elevated prompt (Run As Administrator).
Environment
Privileged Access Manager (PAM, self-hosted) Vault Server Vault Server on Windows Server 2016/2019 on some builds/versions.
Cause
In some Server 2016/2019 builds, there is a known OS issue, where the administrator account lacks the permissions to control the Update Orchestrator service.
It can be verified by going to the Services console (services.msc) and observing that the service is disabled, and all options to control it, such as changing the startup type are greyed out, even for the built-in Administrator account.
*The issue is resolved by patching the OS to the latest updates.
Resolution
1. Set the Update Orchestrator service to Automatic Start via the registry:
Go to: regedit.exe > COMPUTER\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\UsoSvc > Set the value of the key 'Start' from 4 to 2 (2 means automatic start, and 4 means disabled). See image below.
2. Reboot the server.
3. Go to services.msc and manually start the Update Orchestrator service (it should be able to start now).
4. Run the OpeningServices.ps1 PS script from the WSUS folder.
*Notice that this time you will still get an error for the orchestrator in the script, because we did not fix the OS permissions issue, but that's OK because we've started the service manually.
5. Continue with updating the OS, updates will be able to run. You can use WSUS or manually apply all updates
6. Once all updates have been installed and the server has been rebooted, run the ClosingServices.ps1 script.
*Note that there should be no error for the Update Orchestrator service in the script anymore.
7. To confirm the issue is resolved, you can run the OpenningServices and then the ClosingServices PS scripts again, to ensure there are no more errors regarding the Update Orchestrator service.
You will also be able to change the service's startup type from Disabled to any other state, after all updates have been installed.