question

AdminAS-2566 avatar image
0 Votes"
AdminAS-2566 asked AdminAS-2566 commented

Move-csuser does not have additional parameters

I am trying to set up an unattended script for Move-csuser. I am moving our users from Skype For business 2015 to TeamsOnly mode. This requires the script

     Move-Csuser -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl $url -Identity 'XXXXX@tillamook.com' -Confirm:$False -ByPassAudioConferencingCheck -UseOAuth -Verbose

This particular script is what I run manually from the Skype Server with Admin tools installed. This script will prompt me to enter my admin credentials and MFA since that account requires it.
What I would going to do is take this script and run it on a Hybrid-worker unattended and Passing a Non-MFA account through the credential parameter. (Preferably Service Principal with a password. Advise if possible) The major issue is that the Hybrid-worker i intend to run this on does not seem to have access to many of the parameters i need ( -MoveToTeams -useOAuth -ByPassAudioConferenceingCheck). Looking at the documentation on Move-csUser it shows these as options but "get-Help" on my console does not. Even on the skype server Get-Help doesn't show these parameters as an option, even though they are.

This is very frustrating because I have looked everywhere for this answer and haven't come up with anything. PLease HELP!

Here is the error in case my explanation wasn't good enough:

 Move-CsUser : A parameter cannot be found that matches parameter name 'MoveToTeams'.
 At line:1 char:129
 + ... c.com -HostedMigrationOverrideUrl $url -Credential $cred -MoveToTeams
 +                                                              ~~~~~~~~~~~~
     + CategoryInfo          : InvalidArgument: (:) [Move-CsUser], ParameterBindingExceptio 
    n
     + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Rtc.Management.AD.Cmdlets.M 
    oveOcsUserCmdlet





office-skype-business-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered AdminAS-2566 commented

@AdminAS-2566,

This is by design.

It is no longer required to specify the -MoveToTeams switch and the behavior to move directly from on-premises to Teams Only is now automatic, regardless of which version of Skype for Business Server or Lync Server is used.

The following image capture from this official document explains it:
142843-image.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





image.png (76.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the reply @SharonZhao-MSFT , yes I came to be able to work around this. The next issue is to run this command as a service principal, but they don't support that yet.

0 Votes 0 ·