• Collecting Mailbox Counts per Database Using LDAP

    Recently I have been gathering a lot of mailbox data for a customer running Exchange 2010 that is in the process of upgrading from Exchange 2007. One of the more frequent requests has been for mailbox numbers, often broken out by database. It’s...
  • Caching Objects in PowerShell – Part 2

    In my previous post about this subject, I demonstrated how to cache objects using an XML file. Let’s take a look at how to load, manipulate and save the data again. Since the Export-Clixml cmdlet retains the data type in the XML file, we can perform actions...
  • Log-Event

    Recently I had a need to write to the event logs using PowerShell. I knew there was a built in command for this action so I decided to test it out. After some time using the Write-EventLog cmdlet, I kept getting errors generated which seemed to be symptoms...
  • Caching Objects in PowerShell – Part 1

    In the first section of this two part series, I will discuss caching objects to disk in PowerShell, and reading the cache back into memory. I recently came up with this solution at a customer site where I was running a script as a scheduled task and needed...
  • Estimating/Calculating Execution Time

    Over the years, I’ve noticed that I develop a general routine depending on the needs of my current customer. When I get to work in the morning I generally check a few items that I know can develop into hot button issues. As a general rule, if I...