Created
December 21, 2016 23:20
-
-
Save bobalob/830f7645a85fd403a4fec916ad4fc3cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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