Scripting Blog

A place to learn about PowerShell and share stories of automation

The 2011 Scripting Games Advanced Event 7: Map User's Names and Twitter Names with PowerShell

Summary: Advanced Event 7 in 2011 Scripting Games uses Windows PowerShell to map user's names to Twitter names. About this event Event scenario You are enjoying using Twitter. Unfortunately, Twitter usernames are not always easily understandable. You would like to be able to map a Twitter username with the person’s actual name. To do ...

Speed Up Array Comparisons in Powershell with a Runtime Regex

Summary: Learn how to speed up array comparisons in Windows PowerShell by using a runtime regular expression   Hey, Scripting Guy! I am interested in speeding up comparisons of arrays when I use Windows PowerShell. Can you help me? —CR Hello CR, Microsoft Scripting Guy, Ed Wilson, here. We are still in our Guest Blogger Week, so ...

Expert Solutions: Beginner Event 9 of the 2010 Scripting Games

  (Note: These solutions were written for Beginner Event 9 of the 2010 Scripting Games.)   Beginner Event 9 (Windows PowerShell) Daniele Muscetta’s journey with computers and software started when he began programming on a Commodore 64 at the age of 10. Daniele preferred to write programs on his Commodore 64 ...

2010 Scripting Games: Beginner Event 9–Adding Arrays

  Note: We are no longer accepting entries for this event. See the due dates page for a list of all event due dates. About This Event   Event ScenarioYou have two arrays of letters as seen here:"a","b","c","d""d","g","f","e"You need to add the two arrays, and remove duplicate letters. After you have added the two arrays, ...

Hey, Scripting Guy! How Can I Parse My Firewall Log File to See What Kind of Packets Are Being Sent?

Hey, Scripting Guy! I would like to parse the firewall log on my computer and find out the kinds of packets that are going out. You know, how many Web page packets, how many DNS lookups, how many pings. That kind of stuff. I figure that I can look at these logs and pick up diagnostic information. For example, if I see a bunch of DNS queries ...

Feedback usabilla icon