Should I use CIM or WMI with Windows PowerShell?

Summary: Richard Siddaway explains the differences between the CIM cmdlets and the WMI cmdlets, and details use cases.  Hey, Scripting Guy! Should I use the WMI cmdlets or the newer CIM cmdlets? —NR  Hello NR, Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. The simple answer is…


PowerTip: Use PowerShell to Install Modules on Your System

Summary: Learn how to use Windows PowerShell to install modules on your system.  How can I use Windows PowerShell to roll out a new set of modules that are used extensively in my organization?  When Windows PowerShell 5.0 is available, you can use PowerShellGet against an internal repository            to install your modules….


Registry Cmdlets: Complete the Registry CDXML Module

Summary: Richard Siddaway shows how to complete the registry CDXML module. Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. This is the final post in a series. To catch up, read: Registry Cmdlets: Working with the Registry Registry Cmdlets: First Steps with CDXML Registry Cmdlets: Advanced CDXML…


PowerTip: Override Modules in PowerShell Session

Summary: Learn how to override the modules you have imported into your Windows PowerShell session.  How can I re-load the Windows PowerShell module that I am developing so I can test the changes at each            stage of development?  By default, if you have a module loaded into to your Windows…


Registry Cmdlets: Advanced CDXML

Summary: Richard Siddaway shows some advanced features in CDXML. Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. This is the third post in a series. To catch up, read: Registry Cmdlets: Working with the Registry Registry Cmdlets: First Steps with CDXML Yesterday, you saw that you can…


PowerTip: Use PowerShell to Find Parameters for CIM Class Method

Summary: Learn how to discover the parameters for a method in a CIM class.  How can I find the parameters of a CIM class method, such as GetStringValue in the StdRegprov class?  Use Get-CimClass to get the class: $class = Get-CimClass -ClassName StdRegProv To view the methods: $class.CimClassMethods To view the parameters of a particular method: $class.CimClassMethods[“GetStringValue”].Parameters You will see the…


Registry Cmdlets: First Steps with CDXML

Summary: Richard Siddaway shows how to start creating CDXML cmdlets. Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. This is the second post in a series. Yesterday, in Registry Cmdlets: Working with the Registry, I explained that there aren’t any cmdlets for working directly with the registry….


PowerTip: Use PoweShell to Search for CIM Classes

Summary: Learn how to use Windows PowerShell to search for CIM classes.  How can I use Windows PowerShell to find a CIM class on my machine?  Use Get-WmiObject in List mode. For instance, to find the class for working with the registry, use: Get-WmiObject -Namespace root -Class StdRegProv -List –Recurse      Note If you don’t know where a class…


Registry Cmdlets: Working with the Registry

Summary: Richard Siddaway investigates how to use CIM to manage the registry. Honorary Scripting Guy, Richard Siddaway, here filling in for my good friend The Scripting Guy. Today, I’m starting a series about registry cmdlets by investigating how to work with the registry. The bad news is that there aren’t any cmdlets for working with…


PowerTip: What Should You Learn in 2015?

Summary: Windows PowerShell MVP, Richard Siddaway, makes a recommendation for 2015.  What Windows PowerShell topic should I learn in 2015?  Desired State Configuration (DSC). Note  Today's PowerTip was supplied by Windows PowerShell MVP, Richard Siddaway.