Netherlands: Software

Introductie Windows Server 2016

Issue link: http://hub-nl.insight.com/i/692748

Contents of this Issue

Navigation

Page 41 of 173

34 C H A P T E R 2 | Compute Figure 2-29: Single management group containing multiple VM Groups Creating management groups is nearly identical to creating VM groups using the management tools previously outlined. The following Windows PowerShell script creates a new management group and adds both of the existing VM groups to it: #Create new Management Group New-VMGroup -Name TestVMGM1 -GroupType ManagementCollectionType #Setup Management Group variable $TestVMGM1 = Get-VMGroup -Name TestVMGM1 #Add VM Groups to the Management Group Add-VMGroupMember -VMGroup $TestVMGM1 -VMGroupMember $TestVMG1 Add-VMGroupMember -VMGroup $TestVMGM1 -VMGroupMember $TestVMG2 An interesting difference between VM groups and management groups is that management groups can contain both VM groups and other management groups. Put simply, this means that you can nest management groups. The following Windows PowerShell script creates a new management group named Outside and adds our first management group, TestVMGM1, to its membership: #Create new Management Group New-VMGroup -Name OutsideGroup -GroupType ManagementCollectionType #Setup Management Group variable $OutsideGroup = Get-VMGroup -Name OutsideGroup #Add VM groups to the Management Group Add-VMGroupMember -VMGroup $OutsideGroup -VMGroupMember $TestVMGM1 The management group (OutsideGroup) contains another management group (TestVMGM1), which contains the two VM groups (TestVMG1 and TestVMG2), which contain different groupings of three VMs (VM1, VM2, and VM3), as demonstrated in Figure 2-30.

Articles in this issue

Archives of this issue

view archives of Netherlands: Software - Introductie Windows Server 2016