My September Mr. Roboto column covers a PowerShell script you can use to create a domain password report. I also demo'd the script at the NYC Techmentor conference this past week. Since then I realized a mistake in the way that I laid out the script. I had nested a function within another function which worked fine for most of the script when I called the outer function. However, I was also calling the nested function directly which was causing the error. The solution was to move the nested function and make it the first function in the script. This way it can be used by the other function and the rest of the script.
ManageEngine ADManager Plus - Download Free Trial
Exclusive offer on ADManager Plus for US and UK regions. Claim now!
I've posted an updated version of the script at http://www.jdhitsolutions.com/scripts in the Mr. Roboto section. It will have a 1.1 version number.
Please be aware this isn't the speediest of scripts and as with all scripts, make sure you test in a non-production environment first.