We help IT Professionals succeed at work.

Move-Mailbox with other user credentials

andersjensen
andersjensen asked
on
Medium Priority
512 Views
Last Modified: 2012-05-06
Hi All,

My helpdesk is going to run the move-mailbox powershell script I created. But they dont have right for using the command - and therefore im looking for a way to run the Move-Mailbox with another useraccount and password..

Anyway to include credentials on this command ?

Please help me with a solution.

Best Regards
Anders Jensen, Denmark
Comment
Watch Question

Commented:
There are two Credentials you can pass to move-mailbox

-TargetForestCredential <PSCredential>
    The TargetForestCredential parameter specifies the credentials that are
    used when connecting to the target data base.

-SourceForestCredential <PSCredential>
    The SourceForestCredential parameter specifies the credentials that are
    used when connecting to the source mailbox.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
More Info:
help Move-Mailbox -full

Author

Commented:
Thx for the help,

I had this command after "| Format-List -Property StatusMessage" -Confirm:$false so it would only display a small bit of the move text.

This was getting me error - dont know why

regards
Anders

Commented:
-confirm is a parameter for move-mailbox and should be before the pipe.

Author

Commented:
Also had after -Confirm - just put my words in wrong order :)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*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.