By utilizing the Get-CsUser command only the enabled Lync / Skype for Business users will be returned. Step #1: The first step is to get all Lync / Skype for Business users in the environment. Pre-Step: Before proceeding you may need to import the Lync / Skype for Business and Active Directory commandlets on older versions of PowerShell. Set up your profile and preferences just the way you like. If your organization does not utilize a matching user principal name you you can ignore step #4. A single username and password gets you into everything Google (Gmail, Chrome, YouTube, Google Maps). You can automate this by having the script run as a scheduled task. Presuming you are utilizing an Exchange e-mail address policy that changes the e-mail address for users according to their new name, I will show you how to automate the change of the msRTCSIP-PrimaryUserAddress and userPrincipalName attributes. For the best Lync / Skype for Business login experience it is important to keep the sign in address, e-mail address and user principal name the same. For Lync / Skype for Business and Exchange purposes the four attributes that are important are mail, proxyAddresses, msRTCSIP-PrimaryUserAddress and userPrincipalName. When a person’s name changes a lot of organizations implement different strategies of keeping relative addresses in sync.