Monday, January 28, 2013

Batch Command for enabling Lync Users

Following is a very useful command for enabling Lync users in batches;

Import-Csv C:\LyncBatch.csv | ForEach-Object{$varUserId=$_.userid; Enable-CsUser -Identity $varUserid -RegistrarPool lspool01.contoso.com –SipAddressType EmailAddress -SipDomain contoso.com}

In order to run this command, there should be a CSV file present in C:\ drive named as lyncbatch.csv. This file should have aliases of all the users accounts needs to migrate in following format(List should always start with userid) ;

userid

JDoe

MTaylor

BLee

No comments: