We help IT Professionals succeed at work.

Reset Exchange 2007 mailbox password with Powershell

rstorm1
rstorm1 asked
on
3,387 Views
Last Modified: 2012-05-06
Need to know how to reset mailbox passwords in Exchange 2007.  It looks like the only way to do so is through the Powershell.  Thanks a heap, MSFT!  Can anyone help with Explicit commands on how to do this?  Thanks.
Comment
Watch Question

Rajith EnchiparambilOffice 365 & Exchange Architect

Commented:
NO. Just take AD Users and Computers, find the user, right click and reset password.

That's all. There isn't anything specifc in exchange 2007. It's the same as 2003.

Author

Commented:
Please do not send me an answer that I did not ask for.  If it was possible for me to do this in AD, I would not have posted this question.  This CAN be done within the Powershell, I just need the commands in the correct syntax.
Rajith EnchiparambilOffice 365 & Exchange Architect

Commented:
You will be prompted for a password if you create a new mailbox from the shell. Otherwise, you will have to write a script to change the user password.

Author

Commented:
Okay, then I need a script to change the password(s).
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
so did u get to try this?
GusGallowsSupport Escalation Engineer
CERTIFIED EXPERT

Commented:
Try the following:
set-mailbox -identity user@domain.com -password pass1234 

Open in new window

Rajith EnchiparambilOffice 365 & Exchange Architect

Commented:
set-mailbox -identity user@domain.com -password pass1234   WONT WORK.

You can only natively reset the password at next login, otherwise you will need to write a script.

set-user -identity username -resetpasswordonnextlogon:$true
GusGallowsSupport Escalation Engineer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
gents, my post works no add on's needed or the exchange 2007 management shell ... just pure powershell .. as it should be!

Author

Commented:
Hey guys, thanks for the help, I am snowed under with another fire at the moment and will try solution(s) as soon as I can.
Rajith EnchiparambilOffice 365 & Exchange Architect

Commented:
No Problem.

Author

Commented:
Thanks for your help! Unfortunately, due to time and boss constraints, I was not able to test your solutions, but believe that either would work.  The problem is that management did not want to create users on the domain controllers for these accounts, so we just had Exchange mailboxes for them.  Therefore, any changes needing containers, domain names, org. units, etcs was problematic.  Finally had to create users on the domain just to get the problem resolved and everyone off my back.  Sorry about the delay getting back to you.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.