VMware Cloud Community
SCampbell1
Enthusiast
Enthusiast

Copy-VMGuestFile: Wildcard copies from guest to local now fail with VMTools 9.10

Just a note in case someone else experiences similar behaviour

Using Copy-VMGuestFile seems to have stopped allowing wildcard copies from the guest to the local system.

The "local" is PowerCLI V6R1 running on Windows 2012 R2

The "guest" is VMTools 9.10 (The vSphere 6 version) running on Windows 7 Enterprise

The "goo" in the middle in this environment is V5.1.  It is possible this is responsible for our issue.

Copying a file works:

Copy-VMGuestFile -VM MyVM -GuestToLocal -GuestCredential (Get-Credential) -Force -Destination "C:\Temp\MyWork\" -Source "C:\Temp\MyWork\MyFile.txt"

Copying a folder works:

Copy-VMGuestFile -VM MyVM -GuestToLocal -GuestCredential (Get-Credential) -Force -Destination "C:\Temp\MyWork\" -Source "C:\Temp\MyWork\"

But this returns error "the parameter is incorrect"

Copy-VMGuestFile -VM MyVM -GuestToLocal -GuestCredential (Get-Credentail) -Force -Destination "C:\Temp\MyWork\" -Source "C:\Temp\MyWork\*.txt"

If the VMTools is V5.5, the wildcard copy works in our environment.

Reply
0 Kudos
0 Replies