Showing archive results for February 2016

Feb 10, 2016
Post comments count0
Post likes count0

Using the PowerShell CIM cmdlets for fun and profit

Doctor Scripto

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 post bef...

Scripting Guy!Windows PowerShellscripting techniques
Feb 9, 2016
Post comments count0
Post likes count0

PowerTip: Use PowerShell to get only the date

Doctor Scripto

Summary: Learn how to find only the date by using the Get-Date cmdlet.  How can I use Windows PowerShell to easily display only the date (not the time)?  Use the Get-Date cmdlet and specify a display hint of date, for example: Get-Date -DisplayHint date

Scripting Guy!Windows PowerShellPowerTip
Feb 9, 2016
Post comments count0
Post likes count1

PowerTip: Use Get-Command to resolve PowerShell alias

Doctor Scripto

Summary: Learn how to use the Get-Command cmdlet to resolve an alias to a Windows PowerShell command.  How can I find if a Windows PowerShell command is an alias?  Use the Get-Command cmdlet, for example: gcm gwmi Note: gcm is an alias for Get-Command.

Scripting Guy!Windows PowerShellPowerTip
Feb 8, 2016
Post comments count0
Post likes count0

PowerTip: Find schema of a WMI class

Doctor Scripto

Summary: Learn how use Windows PowerShell to find the schema of a WMI class.  How can I use Windows PowerShell to look at the schema of a WMI class?  Use the Get-CIMClass cmdlet, for example: Get-CimClass win32_bios

Windows PowerShellPowerTip
Feb 8, 2016
Post comments count0
Post likes count0

Should I use CIM or WMI with Windows PowerShell?

Doctor Scripto

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 that you can...

Windows PowerShellguest bloggerWMI