Forum Discussion
Moving a User to Skype for Business Online
- Jan 29, 2018
Hi Craig;
Identity is a required parameter for moving a user, sip is the actual sip address of the user ie
Move-CsUser -Identity "sip:Habib@Domain.com" Target sipfed.online.lync.com -Credential $credential -HostedMigrationOverrideUrl https://adminXY.online.lync.com/HostedMigration/hostedmigrationservice.svc
Here is the documentation on the cmdlet.
https://docs.microsoft.com/en-us/powershell/module/skype/move-csuser?view=skype-ps
Habib
When I now run the command:
$session = New-CsOnlineSession -Credential $credential - OverrideAdminDomain “domain.onmicrosoft.com”
I get the following error:
New-CsOnlineSession : A positional parameter cannot be found that accepts
argument '-'.
At line:1 char:11
+ $session =New-CsOnlineSession -Credential $credential - OverrideAdminDomain
"dom ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidArgument: (:) [New-CsOnlineSession], Para
meterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,New-CsOnlineSession
Hi Craig,
You have a space between - and OverrideAdminDomain
$session = New-CsOnlineSession -Credential $credential - OverrideAdminDomain “domain.onmicrosoft.com”