Showing archive results for October 2014

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
Oct 12, 2014
Post comments count0
Post likes count0

PowerTip: Find Name of PowerShell Host

Doctor Scripto

Summary: Learn to find the name of the Windows PowerShell host.  How can I determine if I am running a Windows PowerShell script in the Windows PowerShell console?  Use the Get-Host cmdlet. Here is how to check:   if((Get-Host).name -ne "consolehost") {"Take appropriate action here"}

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

Weekend Scripter: Glimpse into the PowerShell Future

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about the future of Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. I don’t know about you, but I “got into IT” because I am easily bored. I don’t mean that I have a short attention span, because I don’t. I can be laser focused when I am working on a p...

Scripting Guy!Windows PowerShellWeekend Scripter
Oct 11, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Display Number Grouping and Control Decimal Places

Doctor Scripto

Summary: Use Windows PowerShell to display number grouping and control the number of displayed decimal places.  How can I use Windows PowerShell to group digits and control the number of decimal places in a large number?  Use the Numeric Format Specifier, and specify the number of required decimal places. Here are a few examples: PS ...

Scripting Guy!Windows PowerShellPowerTip