I need help with the right syntax. I am trying to populate the LDAP line with the value of
strComputer, but I can't get the right syntax. Can anyone help? See my code below.
strComputer='someone'
Set objNewOU = GetObject("LDAP://OU=Computers,OU=a state,DC=anyplace,DC=com")
Set objMoveComputer = objNewOU.MoveHere _
("LDAP://CN=strComputer,CN=Computers,DC=anyplace,DC=com", "CN=strComputer")