Solved

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

Posted on 2014-10-17
2
344 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:K Anthony 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 500 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:K Anthony O365
ID: 40386734
That worked!! I wonder my script didn't work.

Thank you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
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…

726 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