Search found 9 matches

by yokoyoko
03 Jan 2013 03:53
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

Hi All, Managed to solve this issue using ldifde -f Exportuser.ldf -s Server1 -d "dc=Export,dc=com" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l "cn,givenName,objectclass,samAccountName" Thanks to DigitalSnow and the rest for help. Ha...
by yokoyoko
30 Dec 2012 20:04
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

abc0502 wrote:
only print on the cmd.
what do you mean by that ?
does that mean the code show the correct result on the screen :?:


Meaning it shows the code/texts created in myNamesIndex.TXT on the cmd. There is no information from the OUs.

Tks.
by yokoyoko
30 Dec 2012 18:56
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

abc0502 wrote:Have you tried Ed Dyreen 's Code ?


Hi,

Sorry for the late reply. I have tried that as well, it did not capture the infiormation from the OUs, only print on the cmd.
by yokoyoko
27 Dec 2012 21:59
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

DigitalSnow wrote:Have you looked at or are you using Ldifde?

More Ldifde Examples: http://support.microsoft.com/kb/555636
Organizational Units (OU): http://technet.microsoft.com/en-us/libr ... 8565(WS.10).aspx


Hi,

I tried this but CMD shows no entries found. Not sure why it didnt work.
by yokoyoko
27 Dec 2012 21:57
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

ok , then how these data : 1. Name 2. Type 3. Description 4. Pre-Windows 2000 Logon Name exist in the files? if it possible to post a samble for each file so we can see how will these data be extracted. as Foxidrive said I need to know what multiple OU's look like when they are exported - so the ba...
by yokoyoko
27 Dec 2012 07:08
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

Basically, there are multiple Organization Units (OUs) in the Domain controller. OU with naming like marketing, HR, IT (basically the department name). These OUs contain the following details: 1. Name 2. Type 3. Description 4. Pre-Windows 2000 Logon Name Current process is that i need to go into ind...
by yokoyoko
27 Dec 2012 03:49
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

Actually i have no idea how it will look like too.

Current way of doing is manually export one by one from the OU to different txt or csv files. The format is what i have pasted earlier on.
by yokoyoko
27 Dec 2012 02:59
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Re: Batch file to extract user profile from OU

Hi foxidrive,

To export something like below from multiple OUs.

Name Type Description Pre-Windows 2000 Logon Name
Lucy Camp User HR LucyCa
Vince Porter User HR VincePo

Thank you.
Regards,
Manu
by yokoyoko
26 Dec 2012 21:00
Forum: DOS Batch Forum
Topic: Batch file to extract user profile from OU
Replies: 27
Views: 21159

Batch file to extract user profile from OU

Hi guys, I am new here and new to batch scripting. I will need to extract all the user list (user name, id, type, description) from the OU in the DC by using batch file to automate this process as there are many different OUs in the DC which will be timing consuming to manually export one by one. An...