stev379 Posted February 28, 2008 Posted February 28, 2008 (edited) I have an old VBScript that moves PC from one OU to another. I attempted to convert to AutoIT, but am obviously missing something so simple I'll be embarrassed I asked. Any ideas?$CompName = "Testmachine01"$objNewOU = ObjGet("LDAP://OU=Computers,OU=COMPANY,OU=ad,DC=SITE,DC=gov")$objMoveComputer = $objNewOU.MoveHere _("LDAP://CN=" & $CompName & ",OU=TEST,OU=Computers,OU=COMPANY,OU=ad,DC=SITE,DC=gov", "CN=" & $CompName)EDIT: I get this error$objMoveComputer = $objNewOU^ ERROR(8) : ==> Variable must be of type "Object".:Thanks!!-Steve Edited February 28, 2008 by stev379
Legacy99 Posted February 28, 2008 Posted February 28, 2008 gov", "CN shouldn't that comma be inside your " " ? ("LDAP://CN=" & $CompName & ",OU=TEST,OU=Computers,OU=COMPANY,OU=ad,DC=SITE,DC=gov, CN=" & $CompName)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now