Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Latest posts

Jan 11, 2016
Post comments count 0
Post likes count 0

Introduction to Advanced PowerShell Functions

mredwilson

Summary: Guest blogger, Microsoft MVP, Adam Bertram, talks about advanced Windows PowerShell functions.Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest post by Microsoft MVP, Adam Bertram. Take it away Adam…I'm a Pluralsight author and I develop online training courses that are mostly about Windows PowerShell. I recently had the opportunity to develop a course about building advanced PowerShell functions and modules, and a big topic in that course was about advanced functions.With that topic fresh on my mind, I thought how to build advanced functions would make a great post for the Hey, S...

Jan 11, 2016
Post comments count 0
Post likes count 0

PowerTip: Identify PowerShell Version

Doctor Scripto

Summary: Learn how to easily find the version of Windows PowerShell, CLR, and WSMan.  How can I use Windows PowerShell to identify the version of Windows PowerShell that is running on my system?  Use the $PSversionTable automatic variable (you can use Tab expansion to avoid some typing).            The command and output are shown here:

Jan 11, 2016
Post comments count 0
Post likes count 0

PowerTip: Identify PowerShell Version

mredwilson

Summary: Learn how to easily find the version of Windows PowerShell, CLR, and WSMan. How can I use Windows PowerShell to identify the version of Windows PowerShell that is running on my system? Use the $PSversionTable automatic variable (you can use Tab expansion to avoid some typing).            The command and output are shown here:

Jan 10, 2016
Post comments count 0
Post likes count 0

Where’s Waldo (and Where’s Ed)?

mredwilson

Summary: Ed Wilson, Microsoft Scripting Guy, talks about the future of the Hey, Scripting Guy! Blog and other stuff. Microsoft Scripting Guy, Ed Wilson, is here. If you are a regular reader of the Hey, Scripting Guy! Blog, you will no doubt have noticed that I have not been very active these past several weeks. However, it is a testament to the Windows PowerShell community—especially to Microsoft MVP, Sean Kearny and the Scripting Editor, Dia Reeves—that the blog has not missed a single day of posts. Sean did an excellent job of rounding up guest bloggers, and Dia did a tremendous job of ensuring that...

Jan 10, 2016
Post comments count 1
Post likes count 0

PowerTip: Use PowerShell to Perform Case-Sensitive Comparison

mredwilson

Summary: Learn how to perform a case-sensitive comparison in Windows PowerShell.  I need to compare two strings while taking case sensitivity into account. I try using -eq, but it does not work.             How can I use Windows PowerShell to perform a case-sensitive comparison?  Use the -ceq operator instead of -eq. Here are two examples that compare the results of -eq and -ceq: PS C:\> 'scripting guys' -eq 'Scripting Guys' True PS C:\> 'scripting guys' -ceq 'Scripting Guys' False PS C:\>

Jan 9, 2016
Post comments count 1
Post likes count 0

Weekend Scripter: Unexpected Case Sensitivity in PowerShell

mredwilson

Summary: PowerShell MVP, Mike F Robbins, discusses case sensitivity in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Mike Robbins. Mike F Robbins is a Microsoft MVP for Windows PowerShell and a SAPIEN Technologies MVP. He is a co-author of Windows PowerShell TFM 4th Edition, and is a contributing author of a chapter in the PowerShell Deep Dives book. Mike has written guest blog posts for the Hey, Scripting Guy! Blog, PowerShell Magazine, and PowerShell.org. He is the winner of the advanced category in the 2013 PowerShell Scripting Games. Mike is also the leader and ...

Jan 9, 2016
Post comments count 0
Post likes count 0

PowerTip: Check PowerShell Scripts Against Rules

mredwilson

Summary: Learn how to easily check your Windows PowerShell scripts against various rules.  How can I quickly check my Windows PowerShell scripts with preconfigured rules?  Download the latest version of the Script Analyzer from the Microsoft PowerShell Gallery: PSScriptAnalyzer 1.2.0.            It snaps into the Windows PowerShell ISE is a good free tool.

Jan 8, 2016
Post comments count 0
Post likes count 0

PowerShell Spotlight: January 2016

mredwilson

Summary: PowerShell MVP and the Scripting Wife, Teresa Wilson, talks about upcoming events in the PowerShell community for January 2016.Microsoft Scripting Guy, Ed Wilson, is here. Today we have back guest blogger, Teresa Wilson. Teresa, as you probably know, is my real-life wife, and she is also known as the Scripting Wife. She once said that it was meant to be because her initials in real life are TSW, and if you shortened The Scripting Wife to initials it would be TSW. Take it away, TSW...Hello everyone, my apologies for not writing the PowerShell Spotlight for the last two months. I’ve been a little pre...

Jan 8, 2016
Post comments count 0
Post likes count 0

PowerTip: Automatically Enable PowerShell ISE Toolbar

Doctor Scripto

Summary: Ensure that the Windows PowerShell ISE toolbar is always enabled.  How can I use Windows PowerShell to turn on the ISE toolbar?  Turn on the toolbar with the following command: $psISE.Options.ShowToolBar=$True To turn it off, change the value to $False.