WMI Module v1.0 Released!

The PowerShell WMI Module was developed to make it easier to create custom WMI Namespaces and Classes.

This module was inspired by Jason Sandys
System Center Universe presentation on WMI Manipulations and Manifestations

The module has been uploaded to TechNet Script Gallery. Get it here!

Module Functions

Get-WMINamespace

This function returns an object containing the Namespace requested.

Example: Get-WMINamespace –Namespace ‘Namespace1’

Get-WMIClass

This function returns an object containing the WMI Class requested.

Example: Get-WMIClass –Namespace ‘Namespace1’ –ClassName ‘Class1’

New-WMINamespace

This function creates a new WMI Namespace and returns the WMI Namespace object using Get-WMINamespace.

Example: New-WMINamespace –Root ‘Root’ –Name ‘Namespace1’

New-WMIClass

This function creates a new WMI Class and returns the WMI Class object using Get-WMIClass.

Example: New-WMIClass –Name ‘Class1’ –Namespace ‘Root\Namespace1’

Add-WMIClassProperty

This function adds a single WMI Class Property to your custom WMI Class. Use this function multiple times to add multiple properties.

Examples:

Add-WMIClassProperty Namespace $namespace
ClassName $className
PropertyName “Default”
PropertyType ‘String’
IsKey

 

Add-WMIClassProperty Namespace $namespace
ClassName $className
PropertyName “IsEnabled”
PropertyType ‘String’

 

Advertisements

Author: dhedges

I'm a Senior Client Systems Engineer specializing in OS Deployments and Automation using VBScript, PowerShell, MDT and SCCM. I enjoy working with technology and bending it to my will.

1 thought on “WMI Module v1.0 Released!”

  1. Hello Dustin,

    Thanks for your comment on the first version of my WMI Module. You did a great work here as well, and as you mentionned, the WMI Powershell module version 1.0 I wrote has some smiliar functionnality this one.

    Nevertheless, I am happy to annonce that I published version 2.0 of the WMI PowerShell module.

    Version 2.0 of the module comes with 19 cmdlets to manage the entiere WMI repository. You can check it out right here : http://powershelldistrict.com/wmi-module-2-0/

    Do not hesitate to give me feedback about it (or even contribute to the Github project I created ;)).

    Looking forward to read your comments ! Great work !

    Stephane

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s