Hi,
Hope you're all well.
I am using Invoke-VMScript to interact with Windows VMs.
Something strange is happening. On my Windows 10 machine every time I do an invoke-vmscript, it carries out the script successfully on the VM, but it does not ever bring back a success message or the correct output.
It only says "Invoke-VMScript Response status code does not indicate success: 403 (Forbidden)." Although the script runs as expected on the VM I am never given feedback from PowerShell of the output.
However, if I try the same things on Windows Server 2016 machine, the output comes back successfully.
Know what's wrong?
vSphere Client version 6.7.0.42000
VMware.CloudServices 12.1.0.17002793
VMware.DeployAutomation 7.0.0.15902843
VMware.ImageBuilder 7.0.0.15902843
VMware.PowerCLI 12.1.0.17009493
VMware.Vim 7.0.1.16997275
VMware.VimAutomation.Cis.Core 12.1.0.16997582
VMware.VimAutomation.Cloud 12.0.0.15940183
VMware.VimAutomation.Common 12.1.0.16997174
VMware.VimAutomation.Core 12.1.0.16997984
VMware.VimAutomation.Hcx 12.1.0.17002966
VMware.VimAutomation.HorizonView 7.13.0.16985899
VMware.VimAutomation.License 12.0.0.15939670
VMware.VimAutomation.Nsxt 12.0.0.15939671
VMware.VimAutomation.Sdk 12.1.0.16997004
VMware.VimAutomation.Security 12.1.0.17009513
VMware.VimAutomation.Srm 12.1.0.17002371
VMware.VimAutomation.Storage 12.1.0.17001270
VMware.VimAutomation.StorageUtility 1.6.0.0
VMware.VimAutomation.Vds 12.1.0.17001377
VMware.VimAutomation.Vmc 12.1.0.17008354
VMware.VimAutomation.vROps 12.0.0.15940184
VMware.VimAutomation.WorkloadManagement 12.1.0.17003628
VMware.VumAutomation 12.1.0.16941488