Microsoft detail how to move users from Lync On-Prem to Lync Online and how to bulk move users in an OU or with a particular AD attribute: https://technet.microsoft.com/en-us/library/jj204969%28v=ocs.15%29.aspx?f=255&MSPPError=-2147217396.
If you want to bulk move users to Lync Online from a CSV you can use the PowerShell below:
$creds=Get-Credential Import-Csv movelyncusers.csv -Header Identity | Foreach-Object {Move-CsUser -Identity $_.identity -Target sipfed.online.lync.com -Credential $creds -HostedMigrationOverrideUrl https://admin1e.online.lync.com/HostedMigration/hostedmigrationService.svc}
movelyncusers.csv should contain a list of the UPNs of the users you wish to move. No headings are required.
Technical Architect at Symity
Worked a treat when I wanted to move multiple users across to Lync Online!
The PowerShell is absolutely correct but for each user it prompt to say yes .I am writing A i.e. yes to All but it is again n again prompting after each user moved. Please suggest
The PowerShell is absolutely correct but for each user it prompt to say yes .I am writing A i.e. yes to All but it is again n again prompting after each user moved. Please suggest
Hello, try adding -confirm:$False onto the end.
I have added -Confirm:$False at the end but its still asking for confirmation for each and every user kindly help
$creds=Get-Credential
Import-Csv movelyncusers.csv -Header Identity | Foreach-Object {Move-CsUser -Identity $_.identity -Target sipfed.online.lync.com -Credential $creds -HostedMigrationOverrideUrl https://admin1e.online.lync.com/HostedMigration/hostedmigrationService.svc -confirm:$False}
great!! big thank guys
what should the csv look like.. are we left to guess??? Can you post a sample CSV.. Sorry if I sound like a newbie.
where is the sample csv? can you provide an example
Hello,
It’s been a while since I posted this but “movelyncusers.csv should contain a list of the UPNs of the users you wish to move. No headings are required.”
From memory the CSV is just a list of users, e.g. :
[email protected]
[email protected]
It’s doesn’t actually have any comma separated values, just uses the .csv extension and Import-Csv cmdlet.
i tried the above comment but get the below error “Move Csuser : A parameter cannot be found that matches parameteer name ‘credential’
Hello, did you run the first line? $creds = Get-Credential