Solved

Enable users

Posted on 2011-03-17
4
679 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 70

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 500 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 Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now