Quick PowerShell Cmdlet to Move Computer Object

$computername='SomeComputerName'
$targetOU='OU=Computers,DC=kimconnect,DC=com'
Move-ADObject -Identity (Get-ADComputer $computername).objectguid -TargetPath $targetOU

Leave a Reply

Your email address will not be published. Required fields are marked *