Created
May 5, 2020 07:58
-
-
Save maxandron/67abf0671ef814cc9f9830f10c09240d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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