Dung K Hoang's profileDung's spaceBlogNetwork Tools Help

Blog


    July 08

    Delegation Model in Hyper-V – Part 3

     

    Today, let’s discuss about basic Hyper-V operations defined in AzMan.

    Displaying Hyper-V Operations

    As explained in previous posts, all  pre-defined Hyper-V operations are stored in the InitialStore.XML file located under C:\Programdata\Microsoft\Windows\Hyper-V. You can view the list of operations from the AzMan console. However the output is not easy to view as is is confined inside a small dialog box.

    Fortunately, you can also use PowerShell to get the same list with the AzMan COM object. Here is a snippet of PS script to get the list in a CSV file

    $AppName = "Hyper-V Services"

    ##    Open the Hyper-V AzMan Store
    ##
    $AZStore = new-object -COMObject AzRoles.AzAuthorizationStore
    $AZStore.Initialize(0, "msxml://C:\ProgramData\Microsoft\Windows\Hyper-V\InitialStore.xml")

    ##
    ##    Access the  Default Scope
    ##
    $HyperVApp     = $AZStore.OpenApplication($AppName)
    $HyperVApp.Submit()

    ##
    ##   Get the list of operations
    ##

    $HyperVApp | select Name, Description | export-csv c:\ListOfOperations.csv

    You can then import the CSV file into Excel and create the following tables that group Hyper-V operations per category.

    image

    image

    image

     

    Enjoy!

    /Dung

    HyperV WMI PowerShell

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.
    Dung K Hoang has turned off comments on this page.

    Trackbacks

    The trackback URL for this entry is:
    http://dungkhoang.spaces.live.com/blog/cns!31A50D02D661C816!282.trak
    Weblogs that reference this entry
    • None