blog.powershell.no

On Windows PowerShell and other admin-related topics

Generate random passwords for Active Directory users

Lately I had the need to create a random password for each user in a specified OU in an Active Directory environment.
I accomplished this by using Windows PowerShell and the system.random .Net-class combined with Quest`s ActiveRoles Management Shell for Active Directory.

The script are uploaded to PoshCode, and available from here.

What I would like to add, is the encryption of the $password variable. If you have some good ideas on how to accomplish this, suggestions are welcome in the Comments-section below.

August 22, 2009 Posted by | Active Directory management, Scripting | 2 Comments

   

Follow

Get every new post delivered to your Inbox.

Join 45 other followers