Skip to content

Instantly share code, notes, and snippets.

@maxandron
Created May 5, 2020 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxandron/67abf0671ef814cc9f9830f10c09240d to your computer and use it in GitHub Desktop.
Save maxandron/67abf0671ef814cc9f9830f10c09240d to your computer and use it in GitHub Desktop.
# Tranfer Files
Connect-VIServer -Server 192.168.1.100 -User vsphereusername@domain -Password vspherepassword
Set-Variable -Name "vms" -Value (Get-VM -Name "Group * - Web-IIS")
Copy-VMGuestFile -Source "C:\gene.json" -Destination C:\ -VM $vms -LocalToGuest -GuestUser username -GuestPassword password -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment