The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Scripting Blog [archived]
Formerly known as the "Hey, Scripting Guy!" blog
Latest posts
Introduction to Advanced PowerShell Functions
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...
PowerTip: Identify PowerShell Version
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:
PowerTip: Identify PowerShell Version
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:
Where’s Waldo (and Where’s Ed)?
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...
PowerTip: Use PowerShell to Perform Case-Sensitive Comparison
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:\>
Weekend Scripter: Unexpected Case Sensitivity in PowerShell
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 ...
PowerTip: Check PowerShell Scripts Against Rules
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.
PowerShell Spotlight: January 2016
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...
PowerTip: Automatically Enable PowerShell ISE Toolbar
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.