I think this is what we are looking for: Get the distinguished name (DN) of a Computer