Category Archives: Scripting

VMworld 2012 – Powershell dinner

My favorite part of VMworld is the people you meet. Last week I was lucky enough to meet up with many powershell/PowerCLI experts and have some awesome discussions. I wasn’t able to get everyones name/card, but I believe the first … Continue reading

Posted in Scripting, Virtualization | 1 Comment

Powershell – Measure Historical Command

Have you ever been working in a Powershell console and have a command run longer than expected? Did you wish that you had wrapped that command in a Measure-Command so that you could view execution time? This has happened to … Continue reading

Posted in Scripting | Leave a comment

Improving performance with Get-MailboxFolderStatistics

In a previous post I mentioned some performance improvements I made in an Exchange script that used Get-MailboxFolderStatistics. A portion of this script selected the size (in megabytes) of the top 5 folders in each users mailbox. I made a … Continue reading

Posted in Messaging, Scripting | Leave a comment

Improving SQL Update/Insert performance

I was recently reviewing a Powershell script that had slow performance. The script used Get-MailboxFolderStatistics to pull information from an Exchange Server environment and insert (or update) a record in a SQL database based off the email address. The code … Continue reading

Posted in Scripting | Leave a comment

Get Regular Expression matches

Recently I was given a task at work…someone pointed at a haystack and asked me to find a needle. Actually, the task involved reading the body of hundreds of email messages looking for telephone numbers. Regular expressions and powershell make … Continue reading

Posted in Scripting | 1 Comment