The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Learn how to find methods from WMI classes.
Sometimes when working with WMI, it might seem as if you are entering a strange territory with dangers lurking around every corner. Unfortunately, there might not even be a sign such as the following to alert you to the hidden dangers:
(image)
But by using the CIM cmdlets, we can bring a...
Summary: Learn how to locate the right WMI class by using the Get-CimClass cmdlet to work through the class schema. Windows Management Instrumentation (WMI) came into the Windows world around the time of the Windows NT 4.0 Service Pack 4—that’s about the same time as the release of Star Wars 1: The Phantom Menace. One of the really cool ...
Summary: Learn how to use CIM cmdlets for better speed, security, and data return as opposed to the WMI cmdlets in Windows PowerShell.
The other day, Windows PowerShell MVP, Richard Siddaway, posted Should I use CIM or WMI with Windows PowerShell? Today, I would like to continue that discussion a little bit. You should read Richard’s blog ...
Summary: Richard Siddaway explains the differences between the CIM cmdlets and the WMI cmdlets, and details use cases.
(image) Â Hey, Scripting Guy! Should I use the WMI cmdlets or the newer CIM cmdlets?
—NR
(image) Â Hello NR,
Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. The ...
Summary: Learn how to use Windows PowerShell to find the command line of processes.
(image) How can I find the command line that was used to launch a process that is running on my system?
(image) Use the Get-CimInstance cmdlet, the Win32_Process WMI class, and the CommandLine property:
gcim ...