Solved

Bulk Export of Exchange On Prem to Office 365--Authentication Prompts

Posted on 2014-10-17
2
332 Views
Last Modified: 2014-10-17
I am testing an On Boarding to O365 PS script to do a bulk export of mailboxes up to my Office 365 Tenant using the following script:    Import-CSV "C:\New365users.csv" |%{New-MoveRequest -Identity $_.EmailAddress -Remote -RemoteHostName <some value here> -RemoteCredential (Get-Credential domain\admin) -TargetDeliveryDomain '<some value here>'}

Issue: I am being ask for my password for each user account being migrated to the cloud. I'm sure there is a better way to run this script w/o asking for the password for each user account. Please assist.
0
Comment
Question by:kt KTAdmin
2 Comments
 
LVL 2

Accepted Solution

by:
Jasvindar Singh earned 500 total points
Comment Utility
Try This Script:

$RemoteCred=Get-Credential                              
Import-CSV "C:\New365users.csv" |%{New-MoveRequest -Identity $_.EmailAddress -Remote -RemoteHostName <some value here> -RemoteCredential $RemoteCred -TargetDeliveryDomain '<some value here>'}

On Prompt => Provide Admin's credential.
0
 

Author Closing Comment

by:kt KTAdmin
Comment Utility
That worked!! I wonder my script didn't work.

Thank you.
0

Featured Post

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Synchronize a new Active Directory domain with an existing Office 365 tenant
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

11 Experts available now in Live!

Get 1:1 Help Now