script to move disabled users to OU
hello,
does have powershell script move disabled users ou?
thank you
something else consider piping through out-gridview, using -outputmode multiple. this gives user opportunity manual filter before accounts moved:
$movetoou = "cn=ou name,dc=doman,dc=com" search-adaccount -accountdisabled -usersonly | select name,distinguishedname | out-gridview -outputmode multiple | foreach { move-adobject -identity $_.distinguishedname -targetpath $movetoou -whatif }
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Windows Server > Windows PowerShell
Comments
Post a Comment