Showing results for November 2015 - Page 13 of 15 - Scripting Blog [archived]

Nov 6, 2015
0
0

PowerTip: Find if Variable Is Array

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find if a variable is an array.  How can I use Windows PowerShell to find if a variable contains an array?  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]

Scripting Guy!Windows PowerShellPowerTip
Nov 6, 2015
0
0

PowerTip: Find if Variable Is Array

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find if a variable is an array.  How can I use Windows PowerShell to find if a variable contains an array?  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]

Scripting Guy!Windows PowerShellISE
Nov 6, 2015
0
0

Use PowerShell to Find Palindromes

Doctor Scripto
Doctor Scripto

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 on th...

Scripting Guy!getting startedStrings
Nov 5, 2015
0
0

PowerTip: Use PowerShell to Display ASCII Characters

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to display ASCII characters.  How can I use Windows PowerShell to quickly display printable ASCII characters when I am not connected            to the Internet?  Use the range operator to create a range of numbers 1 through 128, pipe it to Foreach-Object (% is th...

Scripting Guy!Windows PowerShellPowerTip
Nov 5, 2015
0
0

Generate Random Letters with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about generating random letters with Windows PowerShell.  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, my strings s...

Scripting Guy!Windows PowerShellgetting started