change mailuser password using cmdlet
HI How can we change the password(not reset the password)for the mailuser using the powershell cmdlet. Using the cmdlet Set-User we can only reset the password on next log on, but i would require to change the password completely.thank you praveen kumar
January 21st, 2009 4:00pm

Hi Praveen,This is not the function of any Exchange cmdlet, this task should be handled by AD cmdlet.I would do it with Quest Active Directory PowerShell cmdlets. Which is easiest way.... Set-QADUser Display Name -UserPassword Password Quest PowerShell Commands for Active Directory http://www.quest.com/powershell/activeroles-server.aspxAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2009 4:22pm

Hi Amit, Thank you for your prompt response. i figured out there aren't any cmdlet as such but only through the cmdlet u are speaking about. In my scenario its different as we would implement in a program and i don't think how efficiently its gonna work around. the only option could be vb skripts on which we are working on. thank you.praveen kumar
January 27th, 2009 1:06pm

Hey Praveen,I am not a programmer but in this case I would say to go for Visual Studio + .net class to change the password instead of using VB script because all powershell commands are built with .net :)Something similar to....http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.changepassword.aspxAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
January 27th, 2009 1:15pm

Try this link with an example that may helphttp://computerperformance.co.uk/ezine/ezine170.htm Andrew Sword, MVP
February 15th, 2009 9:46am

prawinlives said: Hi Amit, Thank you for your prompt response. i figured out there aren't any cmdlet as such but only through the cmdlet u are speaking about. In my scenario its different as we would implement in a program and i don't think how efficiently its gonna work around. the only option could be vb skripts on which we are working on. thank you. praveen kumar Praveen,If you for some reason don't want to use the QAD cmdlets to set a user password you can still do it through powershell just as you would through vbscript by connecting to the object itself and setting the password through some vb.net methods.Example below$user = [ADSI]"LDAP://cn=user,ou=users,dc=Contoso,dc=com"$user.psbase.invoke("SetPassword","<enter password>")$user.psbase.comittchanges()Sr. Exchange Engineer - Constellation Energy
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2009 8:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics