get-content c:\temp\test.txt | % {Get-ADComputer $_ | Disable-ADaccount -PassThru | Move-ADObject -Targetpath "OU=xxx,,DC=DomainName,DC=COM"}
If you find this article useful please leave me a comment or click on an ad to show your support.
get-content c:\temp\test.txt | % {Get-ADComputer $_ | Disable-ADaccount -PassThru | Move-ADObject -Targetpath "OU=xxx,,DC=DomainName,DC=COM"}
No comments :
Post a Comment