in the following line:

quote:
$LDAPSourcePC = "LDAP://cn=" + $computer + ",cn=Computers," + $objRootDSE

isn't $objRootDSE on OBJECT and not text?
_________________________
Home page: http://www.kixhelp.com/hb/