Hi,
I'm trying to reboot a VM with PowerCli and then wait until the vm is running. I user this command for this:
Get-CIVM -VApp $VCloudVappName -Name $VCloudVmName | Restart-CIVMGuest -Confirm:$false -WhatIf | Wait-Tools
This works at least the last command. Wait-Tools every time gets an error
Connect-VIServer : Die Datei oder Assembly "VMware.VimAutomation.Logging.SoapInterceptor, Version=1.0.0.646, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. In C:\tmp\reboot.ps1:13 Zeichen:1 + Connect-VIServer -Server $VCloudHost -Credential $mycredsVCloud + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Connect-VIServer], FileNotFoundException + FullyQualifiedErrorId : System.IO.FileNotFoundException,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer Wait-Tools : Die Datei oder Assembly "VMware.VimAutomation.Logging.SoapInterceptor, Version=1.0.0.646, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. In C:\tmp\reboot.ps1:15 Zeichen:104 + ... VCloudVmName | Restart-CIVMGuest -Confirm:$false -WhatIf | Wait-Tools + ~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Wait-Tools], FileNotFoundException + FullyQualifiedErrorId : System.IO.FileNotFoundException,VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTools
It's a german error message, but it says something like "File or assembly ... or a dependency not found. The system can not find the specified file.
I have PowerCli Version 6.5.1, the latest VIX Tools, and I already restarted my Computer
Can someone help me?