As a precursor to a larger article I am writing, I wanted to at least get this little bit of code out to people and hope it is found to be useful. I’ve create a script that will examine all message tracking logs for the past month on multiple servers to find any distribution group…
Script Troubleshooting in PowerShell
While writing many of my PowerShell scripts I have found numerous helpful techniques when troubleshooting where a script is, what a certain variable has carried over or dumping the contents of an array or CSV file. I use techniques/commands like write-host, foreach loops for arrays, send-emailmessage, debug and write-eventlog. These methods come in handy when…
Admin Audit Logs – Scripted
Auditing has become the new focus in Exchange 2010. In my last article I covered Mailbox Auditing. Something new that was added to Exchange 2010 was Admin Audit logging. What is Admin Audit Logging? “You can use administrator audit logging in Microsoft Exchange Server 2010 to record actions taken by a user or administrator that…
Mailbox Audit Logs – Scripted
If you work for a firm in the financial industry (trading, insurance, etc) you know that auditing is a part of life. Sometimes this is because your company is public or required by law to do so, sometimes its because you have an internal auditing process initiated by internal procedures. Exchange 2010 has two kinds…
Quick PowerShell Stuff 5 – Message Tracking Logs
One of the things I like to do for a geographically dispersed Exchange environment is to find a way to standardize as many parts as possible. One of most useful ones to standardize is Message Tracking Logs. Let’s take a look at how we can approach this. How do we find out what our Exchange…
Special Mailboxes in Exchange 2013
Just like in Exchange 2010, there are hidden and special mailboxes in Exchange 2013. Special Mailboxes in Exchange 2013 get-mailbox -arbitration The Arbitration parameter specifies that the mailbox for which you are executing the command is an arbitration mailbox. Arbitration mailboxes are. get-mailbox -monitor [New with Exchange 2013] The Monitoring parameter specifies a list of…
PowerShell Scripts and Useful Components
When writing long scripts, I’ve come to realize several helpful tips to keep the script useful, functional and explainable. In order for me to do this, I rely on comments, functions and arrays. I find these useful for many reasons. Hopefully this article will help explain what they are good for and encourage you to…
Exchange, MessageLog Tracking, and Testing
I’d been given an assignment to create a script that would parse old message tracking logs for when distribution groups had last had an email sent to it for reporting purposes. In doing so, I needed a way to test old logs, logs that could be as much as a year old. The only issue…
PowerShell and Arrays
I am currently working on a fairly long script and have decided that I need to ditch a bad habit I have with PowerShell. This bad habit is writing CSV files that contain the results of my looped queries. The reason I consider this a bad habit, is that it leaves behind files on whatever…
NEWS – A lull and a change
For the past week I’ve been trying to get a bunch of articles out that I’ve had queued up and unfinished due to my day job. As such, I am going to cool off a bit, take a break and resume when the holidays are over. I will also be back with a brand new…