Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,117 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I want a Quest Active Directory command for moving Disabled computers from one OU to Another.
$SourceOU = "OU=IG Workstations W10,DC=igi,DC=ig,DC=local"
$TargetOU = "OU=Disabled Computers,OU=Disabled Objects,DC=igi,DC=ig,DC=local"
I would like the script to query for Disabled computers in Source OU and move Disabled Objects to Target OU
Why not use the PowerShell cmdlets (Get-ADComputer and Move-ADObject)?
To get the disabled AD computer objects using the Quest module, use this:
Get-QADComputer -ldapFilter '(userAccountControl:1.2.840.113556.1.4.803:=2)'