How to reset all users password in specific OU in Windows Server 2008 Active Directory:

C:\>dsquery user OU=students,DC=pnc,DC=org | dsmod user -pwd new-password

 

Or you can forced users to change password at the next logon:

C:\>dsquery user OU=students,DC=pnc,DC=org | dsmod user -pwd new-password –mustchpwd
					yes
				

 

Enjoy!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s