Scripting Blog [archived]

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

PowerTip: Identify PowerShell Version

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

PowerTip: Find if Variable Is Array

Summary: Use Windows PowerShell to find if a variable is an array. (image)  How can I use Windows PowerShell to find if a variable contains an array? (image)  Use the –is operator, and test to see if it is a type of [array], for example: $a = 1,2,4,5,6,7 $a -is [array] (image...

Use PowerShell to Find Palindromes

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to find palindromes. Microsoft Scripting Guy, Ed Wilson, is here. I enjoy playing around with words. I like words that sound similar to each other, such as to, too, and two. I also like words that look alike, and sound alike but have different meanings depending ...

Generate Random Letters with PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about generating random letters with Windows PowerShell. (image)  Hey, Scripting Guy! I need to generate a string of random letters. These letters need to be five characters long, and they should be either upper case or lower case. I do not need any numbers or special characters. In fact...