$users = get-aduser -filter * -Properties * | Select DistinguishedName $users | ForEach-Object -process {Move-ADObject $_.DistinguishedName -Server Server1.ts.local -TargetPath "SourceDN"}
Christopher Catlett Consultant | Detroit [MCTS_2013_small] Sogeti USA Office 248-876-9738 |Fax 877.406.9647 26957 Northwestern Highway, Suite 130, Southfield, MI 48033-8456 www.us.sogeti.com<http://www.us.sogeti.com/> From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Danny G Guillory Jr Sent: Friday, October 25, 2013 4:53 PM To: scripting@lists.myITforum.com Subject: [scripting] I am moving several users in ad using powershell "the LONG AND HARDWAY" I would like to do run this: get-aduser -filter * -Properties * The have the DN of each user saved as a variable so I cam pipe to: Move-ADObject "VARIABLE" -Server Server1.ts.local -TargetPath "SourceDN" Ideas?
<<inline: image001.jpg>>