Created
May 16, 2018 18:21
-
-
Save andrewbbrown/e6dce19a047b6d290bde97a5ff09c2c3 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
#$viserver = "192.168.68.20" | |
$viserver = "vcsa1-nadc-hl2.vlab.local" | |
$viusername = "[email protected]" | |
$vipassword = "VMware1!" | |
$viconnection = Connect-VIServer -Server $viserver -User $viusername -Password $vipassword | |
$datastore = Get-Datastore -Name "vsanDatastore" -Server $viconnection | |
New-PSDrive -Location $datastore -Name ds -PSProvider VimDatastore -Root "\" | |
#New folder | |
New-Item -Path ds:\VM-OVAS-OVFS -ItemType Directory | |
New-Item -Path ds:\VM-OVAS-OVFS\W2K16 -ItemType Directory | |
Copy-DatastoreItem -Item C:\bits\W2K16\F5w2k16base.mf -Destination ds:\VM-OVAS-OVFS\W2K16\ | |
Copy-DatastoreItem -Item C:\bits\W2K16\F5w2k16base.ovf -Destination ds:\VM-OVAS-OVFS\W2K16\ | |
Copy-DatastoreItem -Item C:\bits\W2K16\F5w2k16base-1.vmdk -Destination ds:\VM-OVAS-OVFS\W2K16\ | |
Remove-PSDrive -Name DS -Confirm:false | |
#Copy-DatastoreItem -Item C:\bits\en_windows_server_2016_updated_feb_2018_x64_dvd_11636692.iso -Destination ds:\ISOS\ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment