Tech-Hints
Blog to share simple Tech hints
Tuesday, December 16, 2008
Creating Multiple VM's from template
Below is a very basic power shell script my first script to create Multiple VM's from template
clear
Connect-VIServer -Server
server
-User "
user
" -Password "
passwd
"
Import-Csv -Path "
file
" %{New-VM -Template (Get-Template) -VMHost "
esxhost
" -Name $_.Name -Location (Get-Folder -Name) -Datastore "
name_datastore
"
-network "
name_network
"
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment