Hyper-V How To: Script AzMan Scopes for RBAC

In the scripting forum someone :-) asked:

"Can anyone suggest the way to create AzMan scopes for VMs (I can assign VMs to scopes) with Powershell/WMI/VBScript?"

4 scripts are provided for managing your AzMan scopes in Hyper-V:

CreateVMInScope

DisplayVMScopes

ClearVMScopes

ChangeVMScope

Enjoy!