Forum Discussion
Virgil_Soulie
Neophyte
4 months agoI stumbled upon this issue recently.
The script had already run successfully on Windows Server and was monitored with a non-admin domain account.
After an update, one service couldn't be queried and the non-admin script would fail with the following message:
Error occurred: Unexpected error
Error occurred in GetSecurityDescriptor step. Kindly retry or do the setup manually.
In our case, a simple WMI repository reset did the trick:
Stop-Service Winmgmt -Force
winmgmt /resetrepository
Start-Service Winmgmt
Upon rebuilding the repository, the script ran without issues