none
Enabling users for Lync, other than powershell? RRS feed

  • Question

  • I know we can enable users in powershell, however our programmers have a hard time including powershell in our integration to HR.

    We used to have this code that worked fine (is .NET and also works in vbscript).

    mUser.Properties("msRTCSIP-PrimaryUserAddress").Value = "sip:" + mstrEmail
    mUser.Properties("msRTCSIP-FederationEnabled").Value = False
    mUser.Properties("msRTCSIP-ArchivingEnabled").Value = 0
    mUser.Properties("msRTCSIP-InternetAccessEnabled").Value = False
    mUser.Properties("msRTCSIP-OptionFlags").Value = 384
    mUser.Properties("msRTCSIP-PrimaryHomeServer").Value = "CN=LC Services,CN=Microsoft,CN=OCS-SERVER01,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=domain,DC=com"
    mUser.Properties("msRTCSIP-UserEnabled").Value = True
    mUser.CommitChanges()

    However this do not work in Lync server. We've tried changing OCS-SERVER01 to our new Lync-server. We've also tried changing PrimaryHomeServer to CN=Lc Services,CN=Microsoft,CN=1:1,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=domain,DC=com  but to no success. Users enabled using this method gets a strange error that there is currently no logon servers...

    I know I ask a bit on the side here, however it's an important question for our company to get this fixed.

    Monday, May 2, 2011 2:26 PM

Answers

  •  

    OK, I'll be that guy. Everything in Lync is relatively easy to granularly setup/control in PowerShell. So you probably won't get much traction asking about .net/VB options, as most people will take the easier/supported route.

    Could they not call a powershell script from their own setup script? the PowerShell script will take in variables, do it's work, and even output info that could be carried forward with .net/VB

    hope that helps

    Tom


    If a post is helpful, please take a second to hit the green arrow on the left, or mark as answer, thanks
    Tom Arbuthnot, Consultant Modality Systems
    Blog: Lync'd Up Blog Subscribe: RSS
    Tuesday, May 3, 2011 6:46 AM
  • Hi,

    You can go to Lync control panel,in the left panel,select 'Users'-->click 'add filter', expand the dropdown list after "AND"  and select the filter criteria and input the value-->click 'find' there will list all the qualified users,then you can enable them or move them to another pool.

    Here are the guides for enabling user and moving user in Lync Control Panel.

    http://technet.microsoft.com/en-us/library/gg429696.aspx

    http://technet.microsoft.com/en-us/library/gg398277.aspx

    Regards,

    Sharon 


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Wednesday, May 4, 2011 5:42 AM
    Moderator

All replies

  •  

    OK, I'll be that guy. Everything in Lync is relatively easy to granularly setup/control in PowerShell. So you probably won't get much traction asking about .net/VB options, as most people will take the easier/supported route.

    Could they not call a powershell script from their own setup script? the PowerShell script will take in variables, do it's work, and even output info that could be carried forward with .net/VB

    hope that helps

    Tom


    If a post is helpful, please take a second to hit the green arrow on the left, or mark as answer, thanks
    Tom Arbuthnot, Consultant Modality Systems
    Blog: Lync'd Up Blog Subscribe: RSS
    Tuesday, May 3, 2011 6:46 AM
  • Hi,

    You can go to Lync control panel,in the left panel,select 'Users'-->click 'add filter', expand the dropdown list after "AND"  and select the filter criteria and input the value-->click 'find' there will list all the qualified users,then you can enable them or move them to another pool.

    Here are the guides for enabling user and moving user in Lync Control Panel.

    http://technet.microsoft.com/en-us/library/gg429696.aspx

    http://technet.microsoft.com/en-us/library/gg398277.aspx

    Regards,

    Sharon 


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Wednesday, May 4, 2011 5:42 AM
    Moderator