Showing archive results for 2014

Oct 17, 2014
Post comments count0
Post likes count0

PowerTip: Change the PowerShell Prompt

Doctor Scripto

Summary: Learn how to shorten the Windows PowerShell prompt. I am concerned that the Windows PowerShell prompt is becoming too long when working with the registry or the            file system, and I would like to shorten it. Change the prompt with the following one-liner (remember to add a space at the end o...

Scripting Guy!Windows PowerShellPowerTip
Oct 16, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Remove Characters in a String

Doctor Scripto

Summary: Learn how to use Windows PowerShell to remove specific characters in a string. I have a string that includes braces:$a = '{Abcde}'   I want to remove the braces, but keep the text string inside the braces.    How can I do this by using Windows PowerShell? Use the –Replace operator, create a reg...

Scripting Guy!Windows PowerShellscripting techniques
Oct 15, 2014
Post comments count0
Post likes count0

PowerTip: Check Status of PowerShell Help Files on Remote Computers

Doctor Scripto

Summary: Use Windows PowerShell to check the status of Help file updates on remote computers.  How can I easily see if the Windows PowerShell Help files are up-to-date on my remote computers?  Use the Invoke-Command cmdlet, target the remote computers, use Get-Help to look for help,           &...

Scripting Guy!Windows PowerShellPowerTip
Oct 14, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to See If WinRM Is Running on Remote Computer

Doctor Scripto

Summary: Learn how to easily use Windows PowerShell to check if WinRM is running on a remote computer.  How can I use Windows PowerShell to ensure that WinRM is running and configured on my three remote computers?  Create an array of computer names, and pipe them to the Test-WsMan cmdlet, for example: "s1","s...

Scripting Guy!Windows PowerShellPowerTip
Oct 13, 2014
Post comments count0
Post likes count0

PowerTip: Check Version of PowerShell

Doctor Scripto

Summary: Learn how to check your version of Windows PowerShell.  How can I find what version of Windows PowerShell my computer is running?  Use the automatic $PSVersionTable variable, and check the PSVersion property, for example: $PSVersionTable.PSVersion

Scripting Guy!Windows PowerShellPowerTip