?
Solved

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

Posted on 2014-10-17
2
Medium Priority
?
353 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:Anthony K O365
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
Jasvindar Singh earned 2000 total points
ID: 40386638
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:Anthony K O365
ID: 40386734
That worked!! I wonder my script didn't work.

Thank you.
0

Featured Post

Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

770 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