CDO/MAPI for mailbox size is moderately easy and can certainly be done in VBScript. See:
http://blogs.brnets.com/michael/archive/2004/07/07/172.aspx It does have a couple of issues (revolving around permissions and updating the last login date of a mailbox). The WMI solution is much better, IMHO. I have a sample online for that at: http://blogs.brnets.com/michael/archive/2004/07/26/181.aspx -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond Sent: Sunday, January 30, 2005 1:36 AM To: [email protected] Subject: RE: [ActiveDir] ldap AS far as mailbox size, don't even try to tackle the CDO for it. You need some hardcore C++ fun, and I heard somewhere that it doesn't even compile right unless you've got some weird stuff setup. Since you have E2k3, you can query WMI for mailbox size, so it's really easy. So is folder size - just make yourself a VBS that recurses through folders with FileSystemObject summing the size of the files. If you need a sample lemme know. Thanks. � --Brian Desmond [EMAIL PROTECTED] Payton on the web! www.wpcp.org � v - 773.534.0034 x135 f - 773.534.8101 > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:ActiveDir- > [EMAIL PROTECTED] On Behalf Of joe > Sent: Saturday, January 29, 2005 11:24 PM > To: [email protected] > Subject: RE: [ActiveDir] ldap > > Depends on which name attribute. If you know the attribute and the > format of the name you set up the simple filter to do it and return > the proper attributes. Without specifics you can't be given a specific > answer. > > But assuming you mean display name it could be something like > > Adfind -default -f "displayname=blah blah" samaccountname > userPrincipalName homeDirectory homeMDB > > You can't get directory size or mailbox size from AD, that info isn't > stored in AD. > > joe > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Cothern Jeff D. > Team EITC > Sent: Saturday, January 29, 2005 3:38 PM > To: [email protected] > Subject: [ActiveDir] ldap > > Say I have a list of names and I want to query AD to get back their > user name, Home directory, mail store. What would be the command to > or way to more efficiently get this information. > > Eventually I need their Home directory size and mailbox size too but > figure that I gotta do more manually. > > Jeff > > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
