Moving objects Active Directory
From: André Möller (andre-moller_at_procergs.rs.gov.br)
Date: 05/31/04
- Next message: Cengiz Ilerler: "How to change environment for different servers"
- Previous message: TK: "Set profile and homefolder path at logon?"
- Next in thread: Eng: "RE: Moving objects Active Directory"
- Reply: Eng: "RE: Moving objects Active Directory"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 May 2004 10:13:09 -0300
Hello, I would like to develop a script that moves a computer account from
"CN=Computers" for "OU=Workstations" but my problem is that the name of
computer couldn't be assigned because I would like to move daily every
workstations for new OU. (workstation names allways begins by "ws-")
Is the script that I have tried:
Set objNewOU = GetObject("LDAP://OU=Teste,DC=WORKGROUP")
Set objMoveComputer = objNewOU.MoveHere _
("LDAP://CN=%ws-%,CN=Computers,DC=WORKGROUP", "cn=%ws-%")
If someone knows, tell me.
Tks.
André Möller
PROCERGS - Divisão de Redes
Administração de Redes e Softwares - Grupo Windows
Fone: 55-51-3210-3108
- Next message: Cengiz Ilerler: "How to change environment for different servers"
- Previous message: TK: "Set profile and homefolder path at logon?"
- Next in thread: Eng: "RE: Moving objects Active Directory"
- Reply: Eng: "RE: Moving objects Active Directory"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|