Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created December 21, 2016 23:20
Show Gist options
  • Save bobalob/830f7645a85fd403a4fec916ad4fc3cd to your computer and use it in GitHub Desktop.
Save bobalob/830f7645a85fd403a4fec916ad4fc3cd to your computer and use it in GitHub Desktop.
Param(
$UserAccountName="HypervUser",
$UserAccountPassword="P@ssw0rd1"
)
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestart
Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature
NET USER $UserAccountName $UserAccountPassword /ADD
NET LOCALGROUP "Administrators" $UserAccountName /add
Enable-PSRemoting -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment