Weekend Scripter: Change PowerShell Get-Help to Display Examples
Summary: Microsoft Scripting Guy, Ed Wilson, talks about changing the Get-Help cmdlet so it always displays examples.Microsoft Scripting Guy, Ed Wilson, is here. For the last several weeks, I have been...
View ArticlePowerTip: Find How Many Scripts Use Write-Host
Summary: Use Windows PowerShell to find how many scripts use the Write-Host cmdlet. I am trying to improve how I write Windows PowerShell scripts, and I want to reduce the number of times I use...
View ArticleWeekend Scripter: Give Your PowerShell Console a Glassy Theme
Summary: Boe Prox shows how to give the Windows PowerShell console a glass-like look.Honorary Scripting Guy, Boe Prox, here today filling in for my good friend, The Scripting Guy.Have you ever sat at...
View ArticlePowerTip: View All Values of an Enum
Summary: Boe Prox shows how to view all values of an enum. How can I view all of the available values of an enum? Use the [Enum]::GetNames() method, for example:PS C:\ >...
View ArticleAutomatically Create Hash Tables and Reverse Values
Summary: Learn how to automatically create hash tables and reverse keys and values.Microsoft Scripting Guy, Ed Wilson, is here. The other day, I was playing around with Windows PowerShell, and thought...
View ArticlePowerTip: Break a Word into Letters with PowerShell
Summary: Learn how to use Windows PowerShell to break a word into letters. How can I use Windows PowerShell to break a word into letters? Use the tochararray method, for example:“dog”.tochararray()
View ArticleConverting Words to ASCII Numbers and Back with PowerShell
Summary: Use Windows PowerShell to convert words to ASCII numbers and back again.Microsoft Scripting Guy, Ed Wilson, is here. Today, I am sipping a nice cup of Earl Grey tea with just a little jasmine...
View ArticlePowerTip: Put Array of Letters Back into a Word with PowerShell
Summary: Use Windows PowerShell to put an array of letters back together to form a word. I split a word by converting it to a chararray, and now I want to put it back together. How can I use...
View ArticleExtend the Encode/Decode PowerShell Script
Summary: Microsoft Scripting Guy, Ed Wilson, talks about extending his ASCII encode/decode Windows PowerShell script.Microsoft Scripting Guy, Ed Wilson, is here. I am a huge advocate of learning by...
View ArticlePowerTip: Use PowerShell to Find Information about Object Properties
Summary: Learn how to use Windows PowerShell to find information about object properties. How can I use Windows PowerShell to look at information about the properties of an object stored in a variable?...
View ArticleConvert a Script to a Function
Summary: Microsoft Scripting Guy, Ed Wilson, talks about converting a script to a Windows PowerShell function.Microsoft Scripting Guy, Ed Wilson, is here. When I have a script that I think I will use...
View ArticlePowerTip: Empty Hash Table with PowerShell
Summary: Learn how to easily empty a hash table by using Windows PowerShell. I want to write new values to a hash table, and I want to ensure that it contains none of the original keys or values....
View ArticleUse PowerShell to Identify When Hotfixes Are Installed
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to list when hotfixes are installed. Hey, Scripting Guy! Our corporate security person has tasked my manager with...
View ArticlePowerTip: Use PowerShell to Get SSL Certificate
Summary: Learn how to use Windows PowerShell to get an SSL certificate from an internal certification authority. How can I use Windows PowerShell to get an SSL certificate from an internal...
View ArticleWeekend Scripter: Use PowerShell to Calculate and Display Percentages
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to calculate and display percentages.Microsoft Scripting Guy, Ed Wilson, is here. This morning, I am sipping a cup of...
View ArticlePowerTip: Use PowerShell to Display Number Grouping and Control Decimal Places
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...
View ArticleWeekend Scripter: Glimpse into the PowerShell Future
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...
View ArticlePowerTip: Find Name of PowerShell Host
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...
View ArticleUse PowerShell to Download and Install DSC Resource Kit
Summary: Microsoft Scripting Guy, Ed Wilson, writes a Windows PowerShell script to download and install the Desired State Configuration Resource Kit.Microsoft Scripting Guy, Ed Wilson, is here. Today I...
View ArticlePowerTip: Check Version of PowerShell
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...
View Article