Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Move-Mailbox with other user credentials

Posted on 2009-02-12
5
Medium Priority
?
503 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
0
Comment
Question by:andersjensen
  • 3
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
BSonPosh earned 2000 total points
ID: 23622431
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.

0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 23622436
More Info:
help Move-Mailbox -full
0
 

Author Comment

by:andersjensen
ID: 23622560
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
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 23622635
-confirm is a parameter for move-mailbox and should be before the pipe.
0
 

Author Comment

by:andersjensen
ID: 23623762
Also had after -Confirm - just put my words in wrong order :)
0

Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my humble opinion (IMHO), TouchDown from Symantec is the best in class for this type of application, but Symantec has end-of-lifed it and although one can keep using it, it will no longer be supported or upgraded.  Time to look for alternatives t…
Welcome to 2018! Exciting things lie ahead in the world of tech. To start things off, we compiled great member articles on how to stay safe, ways to learn, and much more! Read on to start your new year right.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question