Move-Mailbox with other user credentials

Posted on 2009-02-12
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
Question by:andersjensen
    LVL 18

    Accepted Solution

    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.

    LVL 18

    Expert Comment

    More Info:
    help Move-Mailbox -full

    Author Comment

    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

    LVL 18

    Expert Comment

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

    Author Comment

    Also had after -Confirm - just put my words in wrong order :)

    Featured Post

    Too many email signature changes to deal with?

    Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    apostrophe causing issues with get-aduser 2 16
    Exchange 2007 13 17
    Migration from EXCH2007 to EXCH2013 14 27
    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
    This video discusses moving either the default database or any database to a new volume.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now