Scripting Blog

A place to learn about PowerShell and share stories of automation

A PowerShell Function to Count String Length

Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating a Windows PowerShell function that counts a string length and copies it to the clipboard. Microsoft Scripting Guy, Ed Wilson, is here. It is hot and humid outside—89 degrees Fahrenheit (32 degrees Celsius) and 75% humidity. That was the great thing about Madrid. Whereas, ...

I Found This Module—What Do I Do?

Summary: Microsoft Scripting Guy, Ed Wilson, talks about how to use a Windows PowerShell module.   Hey, Scripting Guy!  I found this module in the Scripting Guys Script Repository. Now what do I do? —SH  Hello SH, Microsoft Scripting Guy, Ed Wilson, is here. This morning I have been busy booking travel to Madrid, ...

I Found this PowerShell Function—Now What Do I Do? Part 3

Summary: Microsoft Scripting Guy, Ed Wilson, talks about combining functions into a single function file, and using them in scripts. Microsoft Scripting Guy, Ed Wilson, is here. This morning is sort of mellow. It seems as if the clouds are touching the ground, and all sound is suppressed by a thick cloth batten. After seemingly weeks of rain, ...

I Found this PowerShell Function—Now What Do I Do? Part 2

Summary: Microsoft Scripting Guy, Ed Wilson, continues his discussion about what to do with a Windows PowerShell function. Microsoft Scripting Guy, Ed Wilson, is here. Last week I did not get a chance to finish answering a question from JB about how to use a Windows PowerShell function. Note   This is the second part of a multipart ...

I Found this PowerShell Function—Now What Do I Do? Part 1

Summary: A reader found needed code, but it is contained in a function. Microsoft Scripting Guy, Ed Wilson, provides the scoop about how to use functions.  Hey, Scripting Guy! I have some experience with scripting—primarily VBScript script. I also have written a lot of batch files. But recently, I have begun to learn Windows ...