From http://community.spiceworks.com/scripts/show/1717-bulk-test-active-directory-credentials