First off: Using an Administrator account works, but it is not desired.
We have a VM which needs to be reset once a week. We added a ScheduledTask to the VCenter Instance which runs these three lines:
VMWare.VimAutomation.Core\Connect-VIServer - Server $server -User $user -Password $password VMWare.VimAutomation.Core\Set-VM -VM $vm -Snapshot $snap -Confirm:$false VMWare.VimAutomation.Core\Disconnect-VIServer -Confirm:$false
We get the following error message:
Connect-VIServer : 6/7/19 9:47:35 AM Connect-VIServer Permission to perform this operation was denied. Required privilege 'System.Read' on managed object with id 'OptionManager-VpxSettings'.
So I guess that we need to add more privileges to the role associated with
That User currently is in the "Main User of VM" group (or whatever it is called in the english UI, our version is german).
So how do we add