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
Solved

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

Posted on 2014-10-17
2
342 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
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This is my first article on Expert Exchange on the Manual Method of Exporting Office 365 Mailboxes to PST format by using the eDiscovery mechanism of Office. Hope you will enjoy the article.
Read this checklist to learn more about the 15 things you should never include in an email signature.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
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…

808 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