Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A procedure for exporting installed hotfix details of remote computers using powershell
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

803 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