Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #$viserver = "192.168.68.20"
- $viserver = "vcsa1-nadc-hl2.vlab.local"
- $viusername = "administrator@vlab.local"
- $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\
Add Comment
Please, Sign In to add comment