| Dung K Hoang's profileDung's spaceBlogNetwork | Help |
|
|
July 23 Delegation Model in Hyper-V – Part 6
In previous posts, I have shown how to create Azman scopes and roles to delegate administration of Hyper-V virtual machines to domain users. Now that we have an AzMan scope, let’s see how you can apply it to a virtual machine or set of virtual machines. Note: In Hyper-V, there is no GUI interface to assign a scope to a VM, you need to use the Hyper-V WMI API In my example scenario, I have a set of VMs prefixed with “01_”and I want to delegate administration of those VMs to Student01 and only this account can view those VMs in Hyper-V mmc console. In Prt 4 and Part 5, I already created a scope called 01_Scope and some role definitions. Let’s apply this cope to 01_ VMs.
Script$VM_Service = get-wmiobject -namespace root\virtualization Msvm_VirtualSystemManagementService $ListofVMs =get-wmiobject -namespace root\virtualization Msvm_ComputerSystem -filter "ElementName <> Name " | ` foreach ($VM in $ListofVMs) {
} Et Voilà! /Dung Comments (3)
Dung K Hoang
has turned off comments on this page.
TrackbacksThe trackback URL for this entry is: http://dungkhoang.spaces.live.com/blog/cns!31A50D02D661C816!305.trak Weblogs that reference this entry
|
|
|