Showing category results for Hey Scripting Guy!

Feb 11, 2016
Post comments count0
Post likes count0

Use CIM cmdlets to find WMI classes

Doctor Scripto

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 things abou...

Scripting Guy!Windows PowerShellWMI
Feb 10, 2016
Post comments count0
Post likes count0

PowerTip: Find default PowerShell modules

Doctor Scripto

Summary: Find Windows PowerShell modules that load by default.  How can I easily find what modules are loading in my Windows PowerShell console by default?  Open your Windows PowerShell console, and before doing anything, type Get-Module.

Scripting Guy!Windows PowerShellPowerTip
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