(null): 0x80005000 what is this telling me

Have a script which reads in two excell spreadsheets then would like to move computers into the correct OU.  Issue is when I try to set objTargetOU it appears to give me a null value.

WScript.Echo "Moving " & strComputerADsPath & " to " & strOUADsPath
'------Note : Echo returns expected response

Set objTargetOU = GetObject(strOUADsPath)
objTargetOU.Movehere strComputerADsPath, vbNullString

Get a (null): 0x80005000 what is this telling me
Who is Participating?
i thnk you're in the wrong zone.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.