Closed labiol closed 5 years ago
This may be due to settings in your environment. Are you running with a full administrator account on vCenter? Have the hosts been hardened? You can also try to execute the PowerCLI commands from the source code and troubleshoot from there.
I'll close this one as I'm pretty sure the issue is vCenter permissions (try with a full administrator account, or at least read only granted at the vCenter level and inherited everywhere).
Permission to perform this operation was denied. Required privilege 'Host.Config.Settings' on managed object with id. The script works, but a lot of errors appear.