Showing tag results for Scripting Guy!

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 7, 2016
Post comments count0
Post likes count0

PowerTip: Hide a PowerShell ISE add-on

Doctor Scripto

Summary: Learn how to programmatically hide a Windows PowerShell ISE add-on.  How can I use code to hide one of the Windows PowerShell ISE add-ons?  Use the Windows PowerShell ISE object model, and set the IsVisible property of the add-on to False, for example: $psISE.PowerShellTabs.VerticalAddOnTools.Item(0).isvisible = $false  

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

PowerTip: Display Windows PowerShell ISE add-ons

Doctor Scripto

Summary: Display the Windows PowerShell ISE add-ons that are available.  How can I programmatically display the Windows PowerShell ISE add-ons that are available and show their status?  Use the Windows PowerShell ISE object model to display the VerticalAddonTools collection from the PowerShellTabs collection: $psISE.PowerShellTabs.VerticalAddOnToo...

Scripting Guy!Windows PowerShellPowerTip