Exchange 2003 help

Daniel333Daniel333 Member Posts: 2,077 ■■■■■■□□□□
Alright, I have pulled a Google fail. Hoping someone in here knows.

I need to pull a user list along with all their allias from an Exchange 2003 box into a CSV. Anyone have a nifty script for this?
-Daniel

Comments

  • RTmarcRTmarc Member Posts: 1,082 ■■■□□□□□□□
    Daniel333 wrote: »
    Alright, I have pulled a Google fail. Hoping someone in here knows.

    I need to pull a user list along with all their allias from an Exchange 2003 box into a CSV. Anyone have a nifty script for this?


    ldifde -f audit.ldf -r "(&(objectclass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))" -l "displayname"

    I think this is one that I used a while back that pulls all active users. You might have to change the variable at the end. It doesn't put in in csv but it does put it into a very readable list.


    EDIT: Not sure why it is putting that space in there between "use" and "r". It doesn't display like that before saving the post.
Sign In or Register to comment.