Vmware PowerCLI: How to use Invoke-VMScript to run command in PowerShell with elevated admin privileges
I want to execute a command on one of the VMs remotely using the Invoke-VMScript cmdlet. I want to run it with elevated admin privileges (in the remote VM) where the ScriptText will execute, but it throws the following error.