Hello there.

I have an ADSI server, and i have the following structure on it:


OU Laboratory
OU Blocked
OU PC_1
OU PC_2
OU NOTBLOCKED
OU PC_3
OU PC_4


The computers are OUs, with Computers inside OUS (in fact the PC represents a laboratory room in our university).

So i have an ASP function, that will recieve a BLOCKED pc name, and move it to the NOTBLOCKED OU, but i am not managing to do so.

This is the far i could go:

Code:
		Set ou = dso.OpenDSObject("LDAP://IP/ou=" & pcName & ",ou=Blocked,ou=Labs,dc=acd,dc=puc-campinas,dc=edu,dc=br", "user", "pass", 1)
		ou.MoveHere "LDAP://IP/ou=NotBlocked,ou=Labs,dc=acd,dc=puc-campinas,dc=edu,dc=br", "ou=" & pcName
It doesnt work Im not sure how could i make this happen.

Would really apreciate any help ! Thanks alot for the time !