Richard's profileRichard Siddaway's BlogPhotosBlogLists Tools Help

Blog


    March 17

    WMI Methods and Properties

    Its odd how we discover things.  I need to check the WMI classes for network adapters so used

    Get-WmiObject -List -Class *network*

    I intended to check out the data returned so used

    Get-WmiObject -List -Class win32_networkadapterconfiguration

    Notice I’ve left the –List parameter in the command by mistake.  This produces

    Name                                Methods              Properties
    ----                                -------              ----------
    Win32_NetworkAdapterConfiguration   {EnableDHCP, Rene... {ArpAlwaysSourceRoute, ArpUseEtherSNAP,…

    Oh.  A quick way to see the methods and properties

    (Get-WmiObject -List -Class win32_networkadapterconfiguration).Methods | Format-Table  Name, Qualifiers -AutoSize

    (Get-WmiObject -List -Class win32_networkadapterconfiguration).Properties | Format-Table  Name, Type, Qualifiers  -AutoSize

     

    Technorati Tags: ,

    Comments (2)

    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.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Is it a v1 issue or an OS issue. Not all versions of Windows have the same WMI classes
    Mar. 19
    Jude Pereirawrote:
    Get-WmiObject -List -Class win32_networkadapterconfiguration <-- This will not work in V1
    Mar. 19

    Trackbacks

    The trackback URL for this entry is:
    http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2165.trak
    Weblogs that reference this entry
    • None