Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Enable users

Posted on 2011-03-17
4
Medium Priority
?
695 Views
Last Modified: 2012-06-08
Hi Experts,
I am looking for the PowerShell script to enable users to access Lync 2010. We have 500 AD users and need particular pool name which is email address, once execute the Script need the text based output file user account has been enable successful.
Thanks.
0
Comment
Question by:Jey_P
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Akhater
ID: 35162741
Here is how to enable a user

Enable-CsUser –Identity "John Doe" –RegistrarPool Pool01.domain.com –SipAddress "sip:jdoe@domain.com"


if you want to use the sip address the same as email address this will become

Enable-CsUser –Identity "John Doe" –RegistrarPool Pool01.domain.com –SipAddressType EmailAddress

you want to do it for all users in your domain ??

$users = get-user
$users | Enable-CsUser  –RegistrarPool Pool01.domain.com –SipAddressType EmailAddress


more info http://blogs.technet.com/b/csps/archive/2010/06/06/howtoenableusers.aspx


0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 35163765

I considered blogging about that for a while, but if you run the command below, Example 4 shows you exactly how to do this:

Get-Help Enable-CsUser -Examples

Chris
0
 

Author Comment

by:Jey_P
ID: 35175628
Hello Akhater

Thanks for the comment. We have only one domain and I have CSV file for number of users email address. How do I import CSV file and enable the users using Sip address then after I prepared to get the output text file that confirm indicating user account enable successfully.  Could you please help on this put together?
0
 
LVL 49

Accepted Solution

by:
Akhater earned 2000 total points
ID: 35175899
Import-csv C:\file.csv | %{$sip = "sip:" + $_.email; Enable-CsUser –Identity $_.name –RegistrarPool Pool01.domain.com –SipAddress $sip}

Where email and name are the headers in your csv file
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question