The script got executed and in the the destination VM the test1 directory got created but the script failed the below 500 error code.
Can anyone please help, why we are getting the Response status code does not indicate success: 500 (Internal Server Error) even after the directory creation.
Either in the vmware log are vmware tool log, could not see any error detail message. PowerCLI 11.5.0 is being instal
Invoke-VMScript -ScriptText "mkdir c:\test1\" -VM 'TestMachine' -GuestUser 'Test' -GuestPassword 'Test@123' -Verbose
VERBOSE: Performing the operation "Invoke-VMScript" on target "TestMachine".
VERBOSE: 11/19/2019 3:32:25 PM Invoke-VMScript Finished execution
Invoke-VMScript : 11/19/2019 3:32:32 PM Invoke-VMScript Response status code does not indicate success: 500 (Internal Server Error).
At line:1 char:1
+ Invoke-VMScript -ScriptText "mkdir c:\test1\" -VM 'TestMach ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-VMScript], ViError
+ FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DownloadFileFromGuest_DownloadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript