Creating, modifying, and removing WMI property instances

PowerShell provides the ability to create, modify, and remove new properties in WMI classes. If you want to modify an instance of a property, you have to determine if the property has writeable attributes using the get-cimclass cmdlet. To do this, you select a WMI class by calling the get-cimclass cmdlet and referencing the class you want to evaluate. You then gather the expanded properties of the class by piping the get-cimclass output to the selection criteria of Select –ExpandedProperty CimClassProperties.

After gathering the expanded properties, the results need to be piped to the selection criteria of where {$_.Qualifiers –match "write"}. On entering this command, you will see all the ...

Get PowerShell: Automating Administrative Tasks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.