Skip to content

Instantly share code, notes, and snippets.

@mcnemesis
Created December 21, 2015 10:40
Show Gist options
  • Save mcnemesis/033a01861b7b89350fe9 to your computer and use it in GitHub Desktop.
Save mcnemesis/033a01861b7b89350fe9 to your computer and use it in GitHub Desktop.
How to automatically import all (or some) AD users into Lync
Get-ADUser -filter {name -like "*"} | Select SamAccountname | Foreach { $username=$_.SamAccountname; enable-csuser -identity REA\${username} -RegistrarPool YOUR.POOL.FQDN -SipAddressType EmailAddress }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment