$a=Read-Host "请输入账号"
remove-adgroupmember -identity group01 -members $a -confirm:$false #把用户从group01移除
Add-ADGroupMember -identity group11111 -members $a -confirm:$false #把用户加入到group11111
Set-ADUser -Identity $a -homeDirectory null #设置用户家目录
Remove-Item \serverIP 1$a –Recurse -Force #强制删除用户文件夹及子目录
Move-Item -path \serverIP 1$a -destination \serverIP 11del #移动文件夹