Hi all,
I have had PowerCLI in version 4.1 and I have upgraded it to 5.1 because of new amazing features.
In the 4.1 version I was copping files with following command:
Copy-VMGuestFile -LocalToGuest -Source "C:\powcli41.txt" -Destination "C:\Users\unittester\Desktop\powcli41.txt" -VM VMName -GuestUser domain\username -GuestPassword password -HostUser username -HostPassword password -force
and it was working perfect.
In the 5.0 and 5.1 versions on the VM I can see extra, unnecessary folder:
C:\Users\unittester\Desktop\powcli41.txt\powcli41.txt
instead of required
C:\Users\unittester\Desktop\powcli41.txt
Could You explain how to modify Copy-VMGuestFlie command to avoid getting superfluous powcli41.txt folder?
Regards,
Przemyslaw Sech