Created
March 24, 2016 19:51
-
-
Save tomtorggler/51b9cf64e8509852b60b 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
# Configure virtual Switches on the Hyper-V Hosts | |
$vmSwitchParams = @{ | |
CimSession = $cimSessions; | |
Name = "sw-ext"; | |
NetAdapterName = "Ethernet"; | |
AllowManagementOS = $true | |
} | |
New-VMSwitch @vmSwitchParams | |
# Configure paths for VMs and VHDs | |
$vmHostParams = @{ | |
CimSession = $cimSessions; | |
VirtualMachinePath = "C:\ClusterStorage\Volume1\Hyper-V"; | |
VirtualHardDiskPath = "C:\ClusterStorage\Volume1\Hyper-V\VHD" | |
} | |
Set-VMHost @vmHostParams |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment