Browse by Tags

Tagged Content List
  • Blog Post: Use Function to Determine Elevation of PowerShell Console

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using a function to determine if a Windows PowerShell console is elevated. Microsoft Scripting Guy, Ed Wilson, is here. I had a friend tell me that nearly half of all the cmdlets, functions, and whatever’s in Windows PowerShell 4.0 on...
  • Blog Post: One of My Favorite PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, discusses one of his favorite functions: Get-EnumValues. Microsoft Scripting Guy, Ed Wilson, is here. Today I am working on my presentation for Atlanta TechStravaganza 2015 , which will happen on August 21. It will be a really cool event, and the Scripting...
  • Blog Post: Weekend Scripter: Replace One PowerShell Function with Another

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about replacing one Windows PowerShell function with a different one. Microsoft Scripting Guy, Ed Wilson, is here. One of the problems with writing Windows PowerShell code every day is that you eventually... No, it’s not what you think....
  • Blog Post: Understanding Advanced Functions in PowerShell

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about Windows PowerShell advanced functions. Hey, Scripting Guy! I keep hearing about advanced functions, but to be honest, I am not really sure what they are talking about. I mean, I can do a function, but when does it become advanced? Only when...
  • Blog Post: Fun with PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about basic design considerations for Windows PowerShell functions. Hey, Scripting Guy! I keep hearing about functions, but I really do not know what they are, how to create one, or even how to use one. Can you help me with this? I am not a programmer...
  • Blog Post: Weekend Scripter: Create PowerShell Graphical Help Function

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about creating a graphical Help function in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Well, I should have known. In yesterday’s post, A Graphical Tool to Explore PowerShell Help , I said it would not take too long to...
  • Blog Post: Use a PowerShell Function to Determine Miles to Go

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about a Windows PowerShell function to determine miles remaining to meet challenge. Microsoft Scripting Guy, Ed Wilson, is here. If you are friends with me on Facebook, you know that in October I accepted a challenge to run a hundred miles before...
  • Blog Post: Convert a Script to a PowerShell 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 more than once or twice, it often makes sense for me to convert it to a function. If it is something...
  • Blog Post: The Function of PowerShell Functions

    Summary: In this how to article, Microsoft Scripting Guy Ed Wilson discusses design considerations for Windows PowerShell functions. Hey, Scripting Guy! I am trying to decide how to configure my Windows PowerShell function. I have heard that functions should return objects, but I am thinking that...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: The 2011 Scripting Games Advanced Event 10: Use PowerShell to Create a Function to Create Temp Files

    Summary : Advanced Event 10 in the 2011 Scripting Games uses Windows PowerShell to create an advanced function to create temporary files. About this event Division Advanced Date of Event 4/15/2011 12:15 AM Due Date 4/22/2011 12...
  • Blog Post: 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...
  • Blog Post: Handle Formatted Output in PowerShell

    Summary : Microsoft Windows PowerShell MVP, Doug Finke, illustrates how to handle formatted output in a Windows PowerShell script. Microsoft Scripting Guy, Ed Wilson, is here. Doug Finke is our guest blogger. Doug Finke is a Microsoft PowerShell MVP working for Lab49, a company that builds...
  • Blog Post: Best Practice for Using Aliases in PowerShell Scripts

    Summary : Microsoft Scripting Guy, Ed Wilson, discusses the use of aliases in Windows PowerShell scripts. He covers the pros and cons in this blog. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. “You can have my aliases when you pry my cold dead fingers from my keyboard,”...
  • Blog Post: Use a PowerShell Function to Find Specific WMI Classes

    Summary: Use a Windows PowerShell function to find WMI classes with specific qualifiers. Microsoft Scripting Guy Ed Wilson here. In Thursday’s article , I talked about using the Set-WmiInstance cmdlet to work with WMI classes. One of the parameters, the class parameter, works with WMI singleton...
  • Blog Post: Expert Solution for 2011 Scripting Games Advanced Event 10: Use a PowerShell Proxy Function to Create Temporary Files

    Summary : Microsoft PowerShell MVP Shay Levy shows how to use a proxy function to easily create temporary files and solve Advanced Event 10 in the 2011 Scripting Games. Microsoft Scripting Guy, Ed Wilson, here. As we wrap up the 2011 Scripting Games today, we have Shay Levy as our expert commentator...
  • Blog Post: How to Reuse Windows PowerShell Functions in Scripts

    Summary : When writing a Windows PowerShell script, code reuse can speed up the process. Ed Wilson discusses best practices for reusing code. Hey, Scripting Guy! I often write Windows PowerShell scripts, and when I need to use a function that I wrote for a different script, I copy and paste the...
  • Blog Post: Create a Truly Advanced PowerShell Function

    Summary : Learn how to create a true advanced function that interacts with the Windows PowerShell pipeline. Microsoft Scripting Guy Ed Wilson here. Sean Kearney, Microsoft Windows PowerShell MVP, has been burning up the keyboard lately with ideas for guest blog posts. I hate to disappoint him by not...
  • Blog Post: Hey, Scripting Guy! Weekend Scripter: Fibonnaci Sequence This!

    Microsoft Scripting Guy Ed Wilson here, it is warming up a bit down here in Charlotte, North Carolina in the United States, and therefore I tend to gravitate outside on weekends. At least, far enough outside to make it to my woodworking shop. Today, I was thinking about building a series of boxes. One...
  • Blog Post: 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...
  • Blog Post: PowerShell Pie for Pi Day

    S ummary : Use the built in pi value in an impromptu function to get the circumference of a circle by using Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife and I are still pretty geeked out from the first ever Windows PowerShell Saturday that was held in Columbus...
  • Blog Post: Weekend Scripter: Cmdletbinding Attribute Simplifies PowerShell Functions

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using the cmdletbinding attribute to simplify Windows PowerShell functions. Microsoft Scripting Guy, Ed Wilson, is here. This morning I was sitting around playing with Windows PowerShell, and I realized that I had not written much about...
  • Blog Post: Hey, Scripting Guy! Weekend Scripter: A Function to Calculate Fuel Cost

    Microsoft Scripting Guy Ed Wilson here. The cool thing about scripting on the weekend is you can take two hours for breakfast, hang out with friends on Facebook and Twitter, and not feel bad about it all. The Scripting Wife headed out with her friend to a rodeo and left me in the kitchen unattended....
  • Blog Post: Use PowerShell Parameter Attributes to Avoid Errors

    Summary: Use Windows PowerShell parameter attributes to avoid input errors in a function. Microsoft Scripting Guy Ed Wilson here. This week is great. The Scripting Wife and I are enjoying meeting Windows PowerShell luminaries. I am working with a group of IT pros to help them to learn Windows PowerShell...