Scripting Blog [archived]

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

Hey, Scripting Guy! Why Would I Even Want to Use Functions in My Windows PowerShell Scripts?

 (image)   (image) Hey, Scripting Guy! You have been talking about writing functions and using functions all week. To me it seems like a lot of extra work to create a function. Do I have to write functions? Or can I just write my code in a script like I used to do with VBScript?-- GB (image) Hello GB, Microsoft Scripting Guy Ed...

Hey, Scripting Guy! How Can I Use “Real Names” for Windows PowerShell Functions?

 (image)   (image) Hey, Scripting Guy! I enjoyed reading yesterday’s blog post about working with functions. I was really interested when you were talking about using “real names” for my functions. You did not say too much about why I should do that, but I guess it makes sense. I am thinking about writing a ...

Hey, Scripting Guy! How Do I Use Functions in Windows PowerShell 2.0?

 (image)   (image) Hey, Scripting Guy! I am confused about using functions in Windows PowerShell 2.0. I was also confused about using functions in Windows PowerShell 1.0. Are they like functions in VBScript, or are they something different? In addition, I have tried to create a subroutine in Windows PowerShell, and it does not seem ...

Hey, Scripting Guy! Can I Share My Microsoft Outlook Calendar via E-Mail?

(image)   (image) Hey, Scripting Guy! I really like the ability to export my calendar into a shareable format with Microsoft Outlook. It is really cool, but can I accomplish this by using a Windows PowerShell script?-- MB (image) Hello MB, Microsoft Scripting Guy Ed Wilson here. In 30 minutes, I have a Live Meeting with Karen, our ...

Hey, Scripting Guy! Can I Use Windows PowerShell to Create a New Outlook Inbox Rule?

(image)   (image) Hey Scripting Guy! I would absolutely love to see a Windows PowerShell script that would create a new inbox rule in Microsoft Outlook. I have looked all over the Internet and have come up blank. I have asked friends, and people at work and no one seems to know how to do this. I am not sure it can actually be ...