OK. The script does work. I checked the renamed computer in Active Directory. But how do I stop the error from generating?
Set objOU = GetObject("LDAP://OU=Compute,DC=Site,DC=Com")
intReturn = objOU.MoveHere _
("LDAP://CN=Computer1,OU=Compute,DC=Site,DC=Com", "cn=Computer2")
Line: 3
Char: 1
Error: Wrong number of arguments or invalid property assignment: 'intReturn'
Code: 800A01C2
Source: Microsoft VBScript runtime error
Set objOU = GetObject("LDAP://OU=Compute,DC=Site,DC=Com")
intReturn = objOU.MoveHere _
("LDAP://CN=Computer1,OU=Compute,DC=Site,DC=Com", "cn=Computer2")
Line: 3
Char: 1
Error: Wrong number of arguments or invalid property assignment: 'intReturn'
Code: 800A01C2
Source: Microsoft VBScript runtime error