Move a list from skype for business users to another pool via powershell

Abstract: If you do some bigger maintenance on a Skype for business pool, you would like to move the users from that pool to another and after that you wish to move them back. But you do not wish to remember and type in all the names by hand. So you wish to perform that via powershell.

At first we need to build a list of users on the current pool. If you already have one you can skip that. To build that list run the following inside a Skype for business powershell command: