Can’t get a specific atribute to work with Set-ADUser

Welcome Forums General PowerShell Q&A Can’t get a specific atribute to work with Set-ADUser

Viewing 1 reply thread
  • Author
    Posts
    • #236620
      Participant
      Topics: 2
      Replies: 0
      Points: 4
      Rank: Member

      We are trying to set up a script to add user into skype. One of the settings we need is msRTCSIP-UserRoutingGroupId. Here is the command we are trying to use the rest of the script works when we don’t run this line.

       

      Set-ADUser -identity $user -Add @{‘msRTCSIP-UserRoutingGroupId’='<HEX>’;}

      This is the error message we get.

      Set-ADUser : A value for the attribute was not in the acceptable range of values
      At line:1 char:1
      + Set-ADUser -identity $user -Add @{‘msRTCSIP-UserRoutingGroupId’=’42 9 …
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : NotSpecified: (jack.yorgesen:ADUser) [Set-ADUser], ADException
      + FullyQualifiedErrorId : ActiveDirectoryServer:8322,Microsoft.ActiveDirectory.Management.Commands.SetADUser

       

      Any ideas on why this won’t work would be appreciated

    • #236644
      Participant
      Topics: 12
      Replies: 1652
      Points: 2,707
      Helping Hand
      Rank: Community Hero

      You are not showing how you are deriving the HEX. The attribute is multi-value, so it should be an array. Take a look at this:

      Manipulating the msRTCSIP-UserRoutingGroupID

Viewing 1 reply thread
  • You must be logged in to reply to this topic.