#SKYBE move user to another pool based on a csv or ad group

Import-Csv “C:\temp\users.csv” | Foreach-Object{Move-CsUser -identity $_.username -target poolfqdn}

csv format

ussername

test1

test2

 

Get-ADGroup “group name” | Get-ADGroupMember -Recursive | ForEach-Object {Move-CsUser $_.SamAccountName -Target “poolfqdn”}