How did that work out for you?
 
--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Noah Eiger
Sent: Wednesday, April 05, 2006 9:45 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Object case changes with ADMOD

Thanks. I’ll give it a try.

 


From: joe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 6:35 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Object case changes with ADMOD

 

Yeah then you want to upgrade to a newer version. Among the other fixes is a fix that stops it from normaling RDNs to lower case.

 

--

O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Noah Eiger
Sent: Wednesday, April 05, 2006 9:12 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Object case changes with ADMOD

File version says: 1.3.0.85

 


From: joe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 5:40 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Object case changes with ADMOD

 

Out of random curiosity are you using a version of ADMOD prior to V01.05.00?

 

  joe

 

--

O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Noah Eiger
Sent: Wednesday, April 05, 2006 8:20 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] Object case changes with ADMOD

Hi –

 

I have been testing a little batch file that uses adfind and admod to move some computer accounts around in AD. Based on a text file, computers move to different OU’s. The weird thing is that before being handled by admod, the accounts are in all capital letters (as seen in the DSA and in text output of DN’s). After the move, they appear in all lower case.

 

While this is not the end of the world, it is a little odd. Why is this happening? Can I keep them in the same case?

 

The batch is as follows:

 

set toolPath=C:\Sysadmin\Tools\Apps\Joeware

set compList=C:\Sysadmin\Tools\Scripts\VarFiles\complist.txt

set logFile=c:\sysadmin\logs\compMove_log.txt

 

 

for /f "tokens=1-3" %%A in (%compList%) do (

            %toolPath%\adfind -b dc=company,dc=com -f "&(objectcategory=computer)(name=%%A)" -dsq | %toolPath%\admod -move ou=%%C,ou=%%B,dc=company,dc=com

            ) >>%logFile%

 

The file format for complist.txt is:

COMPUTER1    OUX      OUY

COMPUTER2    OUZ      OUY

 

Thanks.

 

-- nme

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006

Reply via email to