Solved

Enable users

Posted on 2011-03-17
4
687 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

RoboForm Secure Password Management System

RoboForm Everywhere - Superb Browser Support
Windows / Apple / IOS / Android / Linux / Chrome OS
Use different complex passwords everywhere
Best Secure Password Management by far
Synchronize all of your devices instantly
Safe, Secure & Highly Recommended!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Email accounts in Outlook owa 4 46
Powershell Help -- if else trigger file 35 38
Outlook 2016 6 62
Move sub-folder contents to parent folder if it exists? 10 35
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

752 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