Hi,
Our VMops team who deploys new VMs has some scripting in place that after deployment of the VM, copies some files into the VM.
They now run in to an error when doing a CopyVMGuestFile to a Windows 2019 VM with VMware Tools 11.0.5. Strangely enough other combinations DO work:
– Win 2012 / Win 2016 with VMware Tools 11.0.5 = WORKS
– Win 2012 / Win 2016 with VMware Tools 10.5 = WORKS
– Win 2019 with VMware Tools 10.5 = WORKS
– Win 2019 with VMware Tools 11.0.5 = DOESN’T WORK
The command they run:
Get-Item $SupportingFilesPath* | Copy-VMGuestFile -Destination “C:Temp” -vm $VM_Deploy.DEP_VmName -localtoguest -GuestUser $Cred_LocalAdmin.UserName -GuestPassword $Cred_LocalAdmin.Password
The error:
Warning after command:
WARNING: The guest OS for the virtual machine ‘xxxx’ is unknown. The operation may fail.
Powercli exception:
Copy-VMGuestFile : 23-1-2020 10:32:03 Copy-VMGuestFile A specified parameter was not correct.
At line:1 char:35
+ … lesPath* | Copy-VMGuestFile -Destination “C:Temp” -vm $VM_Deploy.D …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-VMGuestFile], InvalidArgument
+ FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DirectoryExistsInGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Copy
VMGuestFile
Any ideas?
Gabrie