To find a computer in the directory (change strDomainSuffix to match your domain), once you know where it resides you can use your existing code to remove the comp from the OU, I've just pulled this from a simular script I wrote to add a comp to a group  'Code strDomainSuffix = "DC=domain,DC=co,DC=uk" Set WshNetwork = WScript.CreateObject("WScript.Network") Const ADS_SCOPE_SUBTREE = 2 Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnection.Provider = "ADsDSOObject" objConnection.Open "Active Directory Provider" Set objCommand.ActiveConnection = objConnection ' Taylor this search to return the computers you want. objCommand.CommandText = "" _ & "select distinguishedName " _ & "from 'LDAP://" & strDomainSuffix & "' " _ & "where objectClass='computer' " _ & "and name='" & WshNetwork.ComputerName & "' " _ & "" objCommand.Properties("SearchScope") = ADS_SCOPE_SUBTREE  objCommand.Properties("Cache Results") = False  objCommand.Properties("Timeout") = 300 Set objRecordSet = objCommand.Execute objRecordSet.MoveFirst Do Until objRecordSet.EOF     'Wscript.Echo objRecordSet.Fields("distinguishedName").Value 	strCompOU = objRecordSet.Fields("distinguishedName").Value     objRecordSet.MoveNext Loop 'This should output the path of the computer within the directory wscript.echo strCompOU 'End Code