Showing tag results for PowerTip

Oct 26, 2012
Post comments count0
Post likes count0

PowerTip: Easily Load all Windows PowerShell Modules

Doctor Scripto

Summary: See how to load all Windows PowerShell modules into a current session.  How can I load all Windows PowerShell modules I have on my system?            Use the Get-Module cmdlet with the ListAvailable switch, and pipe the results to the Import-Module cmdlet.       &nb...

Scripting Guy!Windows PowerShellPowerTip
Oct 25, 2012
Post comments count0
Post likes count0

PowerTip: Use the Force Switch in PowerShell

Doctor Scripto

Summary: Many times Windows PowerShell cmdlets display additional information when using the Force switch.  How can I display hidden and system files when using Windows PowerShell?           Use the Get-Item or Get-ChildItem cmdlet and use the Force switch—this works w...

Scripting Guy!Windows PowerShellPowerTip
Oct 24, 2012
Post comments count0
Post likes count0

PowerTip: Replacing a String Inside Another String with PowerShell

Doctor Scripto

Summary: Learn two different techniques to replace strings inside another string by using Windows PowerShell.  I have the following string: this`"is a string. I want to remove the quotation mark (") and replace it with nothing—no space, just nothing. I want the results to look like this: thisis a string. The backtick (`) is use...

Scripting Guy!Windows PowerShellPowerTip
Oct 23, 2012
Post comments count0
Post likes count0

PowerTip: Create a Number Array

Doctor Scripto

Summary: Learn how to create a 16-bit integer array.  How can I specify the number 1 as a 16-bit integer array?                        Cast the number as an integer, and  then specify the array.                       &nb...

Scripting Guy!Windows PowerShellPowerTip
Oct 22, 2012
Post comments count0
Post likes count0

PowerTip: Find WMI Association Classes Related to Sessions

Doctor Scripto

Summary: Use a Windows PowerShell 3.0 cmdlet to find WMI classes related to sessions.  How can you use Windows PowerShell 3.0 to easily find WMI association classes related to sessions?         Use the Get-CIMClass cmdlet and specify the association qualifier name, and then use a wildcard to fi...

Scripting Guy!Windows PowerShellPowerTip