Skip to content

Instantly share code, notes, and snippets.

View ronaldvanvugt's full-sized avatar

Ronald van Vugt ronaldvanvugt

View GitHub Profile
@ronaldvanvugt
ronaldvanvugt / Deploy-VM.ps1
Created October 5, 2017 12:36
Deploy and customize a VM in vCenter with PowerCLI
# Deploy Windows Server 2008 or higher in vCenter
#### USER DEFINED VARIABLES ############################################################################################
$Domain = "" #AD Domain to join
$vCenterInstance = "" #vCenter to deploy VM
$Cluster = "" #vCenter cluster to deploy VM
$VMTemplate = "" #vCenter template to deploy VM
$CustomSpec = "" #vCenter customization to use for VM
$Location = "" #Folderlocation in vCenter for VM
$DataStore = "" #Datastore in vCenter to use for VM