Hi, whould appriciate your kind help.
I am runnign a power cli script with Invoke-VMScript command. It work fine when the target VM connect to standart switch. When I connect it to DVS I get "A general system error occurred: vix error codes" error. In defrent environemnt with defrent VMs it work fine with DVS. All environemnts are 6.5.1 with PowerCLI 6.5.0.
The script is (the invok part):
Invoke-VMScript "ping $PingTarget" -vm $EDRC -HostUser $HostUser -HostPassword $HostUserAdminPass -GuestUser $EDRCUser -GuestPassword $EDRCPassword -ScriptType "bat"
I also got a screenshot of log from putty attched.
The error:
Thu 28/12/2017 18:52:47 - Scope ProxyPolicy DefaultVIServerMode InvalidCertificateAction DisplayDeprecationWarnings WebOperationTimeout
Thu 28/12/2017 18:52:47 - Seconds
Thu 28/12/2017 18:52:47 - ----- ----------- ------------------- ------------------------ -------------------------- -------------------
Thu 28/12/2017 18:52:47 - Session NoProxy Multiple Ignore False 300
Thu 28/12/2017 18:52:47 - User
Thu 28/12/2017 18:52:47 - AllUsers NoProxy Multiple Ignore False
Thu 28/12/2017 18:52:47 - Session NoProxy Multiple Ignore False 300
Thu 28/12/2017 18:52:47 - User
Thu 28/12/2017 18:52:47 - AllUsers NoProxy Multiple Ignore False
Thu 28/12/2017 18:52:47 - Session NoProxy Multiple Ignore False 300
Thu 28/12/2017 18:52:47 - User
Thu 28/12/2017 18:52:47 - AllUsers NoProxy Multiple Ignore False
Thu 28/12/2017 18:52:47 - WARNING:
Thu 28/12/2017 18:52:47 - The server certificate is not valid.
Thu 28/12/2017 18:52:47 - IsConnected : True
Thu 28/12/2017 18:52:47 - Id : /VIServer=ozar\administrator@vcdc2p:443/
Thu 28/12/2017 18:52:47 - ServiceUri : https://vcdc2p/sdk
Thu 28/12/2017 18:52:47 - SessionSecret : "15ff7cef0ad59be1c0cbf0ca9d457b68125b4137"
Thu 28/12/2017 18:52:47 - Name : VCDC2P
Thu 28/12/2017 18:52:47 - Port : 443
Thu 28/12/2017 18:52:47 - SessionId : "15ff7cef0ad59be1c0cbf0ca9d457b68125b4137"
Thu 28/12/2017 18:52:47 - User : OZAR\Administrator
Thu 28/12/2017 18:52:47 - Uid : /VIServer=ozar\administrator@vcdc2p:443/
Thu 28/12/2017 18:52:47 - Version : 6.5
Thu 28/12/2017 18:52:47 - Build : 5973321
Thu 28/12/2017 18:52:47 - ProductLine : vpx
Thu 28/12/2017 18:52:47 - InstanceUuid : 70ce191f-2d3d-4822-874b-49f379de8366
Thu 28/12/2017 18:52:47 - RefCount : 1
Thu 28/12/2017 18:52:47 - ExtensionData : VMware.Vim.ServiceInstance
Thu 28/12/2017 18:52:47 - Client : VMware.VimAutomation.ViCore.Impl.V1.VimClient
Thu 28/12/2017 18:52:47 - Test target WINDOWS using EDRC - prn2t
Thu 28/12/2017 18:52:47 - Copy-VMGuestFile : 12/28/2017 6:51:49 PM Copy-VMGuestFile A general system error occurred: vix error codes = (1, 0).
Thu 28/12/2017 18:52:47 - At C:\Users\administrator.OZAR\AppData\Local\Temp\1\EDR\demiForScreenShot.PS1:23 char:2
Thu 28/12/2017 18:52:47 - + Copy-VMGuestFile -Source $TMPdir\ExecPars.exe -Destination c:\EDR ...
Thu 28/12/2017 18:52:47 - + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thu 28/12/2017 18:52:47 - + CategoryInfo : NotSpecified: (:) [Copy-VMGuestFile], SystemError
Thu 28/12/2017 18:52:47 - + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DirectoryExistsInGuest_ViError,VMware.VimAutomation.ViCore.C
Thu 28/12/2017 18:52:47 - mdlets.Commands.CopyVMGuestFile
Thu 28/12/2017 18:52:47 - Invoke-VMScript : 12/28/2017 6:51:51 PM Invoke-VMScript A general system error occurred: vix error codes = (1, 0).
Thu 28/12/2017 18:52:47 - At C:\Users\administrator.OZAR\AppData\Local\Temp\1\EDR\demiForScreenShot.PS1:47 char:17
Thu 28/12/2017 18:52:47 - + ... Invoke-VMScript "ping $PingTarget" -vm $EDRC -HostUser $H ...
Thu 28/12/2017 18:52:47 - + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thu 28/12/2017 18:52:47 - + CategoryInfo : NotSpecified: (:) [Invoke-VMScript], SystemError
Thu 28/12/2017 18:52:47 - + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_RunScriptInGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets
Thu 28/12/2017 18:52:47 - .Commands.InvokeVmScript
Thanks