Move-csuser does not have additional parameters

AdminAS 141 Reputation points
2021-10-21T21:30:36.733+00:00

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
 
Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
602 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,051 Reputation points Microsoft Vendor
    2021-10-22T05:26:37.8+00:00

    @AdminAS ,

    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.



0 additional answers

Sort by: Most helpful