Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Response status code does not indicate success (500 internal server error)

$
0
0

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


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>