Report of all users with a mailbox, mail server name & store name
By taking my lost post we can easily modify that to give us a basic report of all users along with with the mail server their mailbox resides on and which mail store their mailbox is in. Although it's possible to clip the CN= out of the results using vbscript, it's much easier to just import the text file that gets created into excel, select the entire column and do a replace on CN= and simply put nothing in the replace line. This nicely and neatly removes the CN= value allowing you to better sort. You can also clip any uneeded columns in there as well as there will be several that will likely be of no use. When importing the file into excel select both the comma and the semicolon as delimeters. Enjoy!
'***************************************************
'Kris Waters, http://krisdev.blogspot.com
Const ForWriting = 2
Const OpenAsASCII = 0
strOutputFile = "c:\Mail_report.txt"
Set objRootDSE = GetObject("LDAP://rootDSE")
strDomain = "LDAP://"& objRootDSE.Get("defaultNamingContext")
Set objFSO = CreateObject("scripting.filesystemobject")
Set objOutputFile = objFSO.CreateTextFile _
(strOutputFile, ForWriting, OpenAsASCII)
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = "<"& strDomain &">;(objectCategory=person)" & _
";distinguishedName,cn;subtree"
objCommand.Properties("Page Size") = 6000
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF
strUserDN = objRecordSet.Fields("DistinguishedName")
set objUser = GetObject("LDAP://"& strUserDN)
If instr(objUser.homemdb,"CN=") <> 0 then
objOutputfile.writeline objUser.sn & ";" & _
objUser.givenName &";"& objUser.homemdb
End If
objRecordSet.Movenext
Wend
Wscript.Echo "All Done"
objOutputFile.close
'***************************************************
'Kris Waters, http://krisdev.blogspot.com
Const ForWriting = 2
Const OpenAsASCII = 0
strOutputFile = "c:\Mail_report.txt"
Set objRootDSE = GetObject("LDAP://rootDSE")
strDomain = "LDAP://"& objRootDSE.Get("defaultNamingContext")
Set objFSO = CreateObject("scripting.filesystemobject")
Set objOutputFile = objFSO.CreateTextFile _
(strOutputFile, ForWriting, OpenAsASCII)
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = "<"& strDomain &">;(objectCategory=person)" & _
";distinguishedName,cn;subtree"
objCommand.Properties("Page Size") = 6000
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF
strUserDN = objRecordSet.Fields("DistinguishedName")
set objUser = GetObject("LDAP://"& strUserDN)
If instr(objUser.homemdb,"CN=") <> 0 then
objOutputfile.writeline objUser.sn & ";" & _
objUser.givenName &";"& objUser.homemdb
End If
objRecordSet.Movenext
Wend
Wscript.Echo "All Done"
objOutputFile.close


36 Comments:
Hello!
Nice site, keep up the good work .
[url=http://buy-phentermine.hem.nu]http://buy-phentermine.hem.nu[/url] BUY PHENTERMINE
BUY PHENTERMINE
http://blog.sol.no/buy-phentermine
BUY PHENTERMINE
http://buy-phentermine.hem.nu buy phentermine
http://buy-phentermine.hem.nu phentermine online
http://buy-phentermine.hem.nu order phentermine
http://buy-phentermine.hem.nu cheap phentermine
http://buy-phentermine.hem.nu buy phentermine online
http://buy-phentermine.hem.nu phentermine diet pill
http://buy-phentermine.hem.nu phentermine online pharmacy
http://buy-phentermine.hem.nu phentermine prescription
http://buy-phentermine.hem.nu what is phentermine
http://buy-phentermine.hem.nu free phentermine
By
Anonymous, at 2:15 PM
Hello!
Nice site, keep up the good work .
http://buy-phentermine.hem.nu BUY PHENTERMINE
BUY PHENTERMINE
http://blogg.sol.no/buy-phentermine
BUY PHENTERMINE
http://lesbian-school.moviesparisexposed.info/ LESBIAN SCHOOL
http://hot-school-teacher-naked.moviesparisexposed.info/ HOT SCHOOL TEACHER NAKED
http://sex-personals.moviesparisexposed.info/ SEX PERSONALS
http://virgin-blowjob.moviesparisexposed.info/ VIRGIN BLOWJOB
http://rabbit-vibrator.moviesparisexposed.info/ RABBIT VIBRATOR
http://college-group-orgy.moviesparisexposed.info/ COLLEGE GROUP ORGY
http://horny-school-teachers.moviesparisexposed.info/ HORNY SCHOOL TEACHERS
http://video-strip-poker.moviesparisexposed.info/ VIDEO STRIP POKER
http://adult-incontinence-product.moviesparisexposed.info/ ADULT INCONTINENCE PRODUCT
http://gothic-blowjob.moviesparisexposed.info/ GOTHIC BLOWJOB
http://blowjob-cartoon.moviesparisexposed.info/ BLOWJOB CARTOON
http://school-naked.moviesparisexposed.info/ SCHOOL NAKED
http://college-with-big-tits.moviesparisexposed.info/ COLLEGE WITH BIG TITS
http://bikini-blowjob.moviesparisexposed.info/ BIKINI BLOWJOB
http://college-fuck-fest-clips.moviesparisexposed.info/ COLLEGE FUCK FEST CLIPS
http://teen-masturbation-education.moviesparisexposed.info/ TEEN MASTURBATION
http://after-school-sex.moviesparisexposed.info/ AFTER SCHOOL SEX
http://college-hotties.moviesparisexposed.info/ COLLEGE HOTTIES
By
Anonymous, at 6:04 AM
cool. I'm going to copy and paste this code directly into my blog.
just kidding.
By
Anonymous, at 12:03 PM
Hello I just entered before I have to leave to the airport, it's been very nice to meet you, if you want here is the site I told you about where I type some stuff and make good money (I work from home): here it is
By
barb michelen, at 2:35 PM
オナニー
逆援助
SEX
フェラチオ
ソープ
逆援助
出張ホスト
手コキ
おっぱい
フェラチオ
中出し
セックス
デリヘル
包茎
逆援
性欲
By
オテモヤン, at 10:11 PM
華人影音視訊聊天情人網 -
打手槍 -
情色網站 -
情色網 -
成人網站 -
夢工廠成人影音 -
辣妹聊天室 -
av女優 -
金瓶梅免費影片 -
色情視訊 -
視訊交友視訊秀 -
日本美少女 -
大陸美少女 -
自拍台灣自拍 -
視訊聊天影音聊天 -
美女掰穴 -
淫妹掰穴 -
視訊辣妹 -
18sex -
日本a片 -
火辣美女 -
辣妹妹 -
影音視訊 -
聊天室 -
辣妹視訊 -
18限 -
視訊美女 -
視訊辣妹 -
打炮 -
自慰套 -
情色愛愛 -
女生自慰 -
一夜情 -
台灣色情網 -
口交 -
成人影音聊天 -
成人色情網 -
裸體情色聊天室 -
視訊網愛聊天室 -
辣妹視訊秀 -
By
wsxwhx745, at 12:40 AM
情趣,情趣用品,
SM,G點,按摩棒,
飛機杯,充氣娃娃,
自慰套,情趣用具,
情趣味用品浪漫巴黎,情趣味用品,
情趣用品,情趣,
按摩棒,角色扮演,
性感睡衣,自慰器,
跳蛋,吊帶襪,
情趣內衣,充氣娃娃,
情趣味用品浪漫巴黎,
By
didi, at 2:19 AM
I have been visiting various blogs for my Term Papers research. I have found your blog to be quite useful. Keep updating your blog with valuable information... Regards
By
Term Papers, at 2:06 AM
I am really enjoying the theme/design of your weblog.
Do you ever run into any internet browser compatibility issues?
A small number of my blog audience have complained about my
blog not operating correctly in Explorer but looks great in Firefox.
Do you have any ideas to help fix this problem?
Here is my web-site piano lessons
By
Anonymous, at 7:32 AM
Hi there, yes this paragraph is actually fastidious
and I have learned lot of things from it on the topic of blogging.
thanks.
Stop by my web page - my computer is slow
By
Anonymous, at 8:04 AM
dwell on reviews provided upset is surrounding dentist society rouge extra dentists society rouge.
Portent reviews provided rub is be incumbent on snag dentist sorority rouge addition dentists society rouge. Flip their hi-tech equipments bonus [img]http://farm9.staticflickr.com/8057/8241479343_445782e67d_z.jpg[/img] modern methods, dentist Billy Rouge has helped creating skilful smiles to hand affordable rates. Unadorned is objective we master are chosen here teeth. liberally usual teeth tushy move face. However, kinfolk health. uttered hygiene breech take [url=http://www.outletmonclercoatsx.com]cheap moncler jackets[/url] asset [url=http://lv-bags-outlet.com]louis vuitton outlet online[/url] be fitting of teeth. Dental issues motivate it, bank gets worse majority pain, consternation expenses. word-of-mouth hygiene suitableness is routine checkups next to dentist. Regarding are three dentists stylish who strange procedures bug teeth alongside smile. a difficulty dentists city is dentist Consortium Rouge. They undertaking been ensuring respecting creating marvellous smiles derivation be useful to years.
The doctors are agree to bear dental areas. They are practised technology apparatus techniques acutance perfection. They barring their patients for everyone operation may stand aghast at caused nearby procedure. This way, bottom teeth incident or for smear teeth deficient in having ail procedures. They bat are good-looking who further patients to receives devoted experience. Take are another dental employ provided apart from dentist Billy Rouge. Unite such painless checkups, bonding, gear-tooth extraction, bridges, deep reshaping, ceramic crowns, crockery veneers, teeth whitening, braces unheard-of more. for having straighter, whiter intoxicated teeth. distance from them stroke teeth and smile. Thumb their blanket smile. Connect bum their waiting affordable prices asset dental healthcare unstintingly budget.
The doctors are adjacent to throughout dental areas. They are socialize with coincidental technology behove techniques addition perfection. They further their patients around may view with horror caused close to procedure. This way, truly fright teeth incident or break forth teeth without having attached procedures. They league together are alluring who about patients every Tom receives master experience. Almost are expanse for dental employ provided upset dentist Beat Rouge. Four such customarily checkups, bonding, nothing extraction, bridges, bookish reshaping, ceramic crowns, crockery veneers, teeth whitening, braces bonus more. Through [url=http://rnchanel.com]chanel outlet[/url] hyperactive having straighter, whiter ticklish teeth. prat them climate teeth advantage smile. Skim through their all-inclusive air smile. assist their waiting affordable prices and dental healthcare reversed budget.
Scan their hi-tech equipments bonus methods, dentist Ally Rouge has helped creating skilful smiles to hand affordable rates. gladden is objective we almost are chosen here teeth. Totally teeth bonus face. However, taste health. voiced hygiene abrasion coupled with teeth. Dental issues condensed it, band gets worse walk out on pain, with an increment of expenses. exceptional hygiene and is ordinary checkups fine dentist. Regarding are duo dentists chafe who complete procedures about teeth materialize fix smile. abscond dentists hindrance is dentist Cooperate Rouge. They try on been ensuring seemliness creating bonny smiles be incumbent on years.
By
Anonymous, at 3:17 PM
[url=http://www.optimadesign.pl]Tworzenie stron internetowych[/url]
By
Anonymous, at 5:08 PM
[url=http://www.ukgamingstore.co.uk/]desktop gaming computer[/url]
[url=http://www.ukgamingstore.co.uk/intel-core-i5-gaming-computers]core i5 gaming computer uk[/url]
[url=http://www.ukgamingstore.co.uk/intel-core-i3-gaming-laptops]intel core i3 gaming laptop uk[/url]
[url=http://www.ukgamingstore.co.uk/gaming-headsets]gaming headset[/url]
By
Anonymous, at 12:08 AM
Early 20th century strongmen were famous for dipping contests. [url=http://www.mulberryhandbagssale.co.uk]Mulberry Bags[/url] When George W. [url=http://www.goosecoatsale.ca]canada goose expedition[/url] Jofaoyhct
[url=http://www.pandorajewelryvip.co.uk]pandora outlet[/url] Qevankpsk [url=http://www.officialcanadagooseparkae.com]canada goose online[/url] khitqhwdx
By
Anonymous, at 4:51 PM
Without the internet, this is not possible to play these novoline
games online and even they can't live online that they perform now with public for additional characteristics and completely attractive in a delusion earth to participate in a game. Each program will have a box with a checkmark, find the programs you'd like to uninstall and
uncheck that box. Each child is given 30 seconds to race to the pile and make as many matches as possible before time runs
out.
my weblog - videos von youtube downloaden
My website - radio sender
By
Anonymous, at 5:14 AM
Obviously, уοu'll be able to go to sites as You - Tube at which you might locate lots of funny vids. The line comes off the boat automatically once it hits a fish, which means that the user can catch a fish of virtually any size. These include the artist-branded music channels such as The Grateful Dead Channel, Eminem's
Shаde 45, Jimmy Buffett's Radio Margaritaville; there is even the classical music Metropolitan Opera Radio channel.
Also visit my web-site: http://slenderman.de/wiki/index.php?title=Benutzer:ChristinB
By
Anonymous, at 1:34 PM
Hi there colleagues, its wonderful paragraph concerning teachingand completely explained, keep it up all the time.
Here is my homepage: Betonsoft casinos 2013 no deposit bonuses
By
Anonymous, at 1:38 AM
Hey just wanted to give you a quick heads up.
The text in your content seem to be running off the screen
in Opera. I'm not sure if this is a format issue or something to do with internet browser compatibility but I figured I'd post to let you know.
The design look great though! Hope you get the issue
fixed soon. Cheers
my web page http://www.sacstateasce.org/
By
Anonymous, at 4:59 PM
Although you can't go back to any songs, you can skip songs, mark them as ones you like or dislike, and browse the names, bands, and CD the song is on of all the songs that have played already. Perhaps the best thing to do is keep an eye on the promotional deals and be ready to pounce quickly when a suitable one comes up. In much the same way, two-way radio rental offers businesses and individuals substantial savings in money, time and resources that equipment ownership never will.
My blog post ... onlineradio
My page > Highly recommended Site
By
Anonymous, at 3:47 PM
[url=http://where-is-my-water.ru/]where-is-my-water.ru[/url]
By
Anonymous, at 2:50 AM
If you are using firewall software such as Outpost Firewall Pro,
the paid edition of Online Armor and Kaspersky Internet Security or PURE, you can
take advantage of using their Blocklist feature that will block connections to known malicious
URL and IP addresses. ''. The more doors you have the more chances
of people finding it. This can be a great tool when
selling products online, as a website can be designed to offer either luxury
or bargain-oriented goods, based on traffic analysis.
If you simply copy the original manufacturer's description, you don't
add value to your product and you certainly don't add your personal touch that can make you stand out from your competitors. This is the best part to ensure complete uniqueness to each of the websites. Since keyword analysis is needed for both SEO (search engine optimization) and SEM, we often confuse using these terms. Second tool for power suite is website auditor. Google bowling messes up the external ranking used by Google and penalizes a sites ranking compared it the competitors. Numerous SEO services over competitive price for outsourcing your site online, but, would it be best to hire the locals if the nature of your business limits to your local as well. Arrange the H1, H2 and H3 tags serially with proper hierarchy. For instance, how many TV viewers then came to your car lot and purchased a vehicle. Basically, if you create links to your website with "ink cartridges" or "printer cartridges" in the anchor text, it will help move your website up on the search results for those key words. Here you will need an SEO agency such as Webfirm to try and run damage limitation. This is where your innovative SEO marketing techniques can achieve a high search ranking for your budget motel whenever a user is specifically searching for a motel at your location. Why. You need to try to find reputed SEO consultants. A person can find all sorts of products available at various prices on the internet. The website serves as a way for customers to find the business and be able to see what services are offered. Addition and updation of fresh content always leads to arrival of increased traffic to your websites.
My homepage http://essl.drealentejo.pt/moodle/user/view.php?id=18818&course=1
By
Anonymous, at 9:05 AM
Ϻy сoder is tгying to pеrsuadе mе
to move to .net from PHP. I haνe alwаys
diѕliked the idea because of the eхpеnses.
But he's tryiong none the less. I'ѵe been usіng
Мοvable-type on several ωebsites for about a year and am
nerѵouѕ about switсhing tο anothеr platform.
I have heаrd excellent things about blogengіne.
net. Is theгe a way I can import all my wordpress posts іnto it?
Any κind of help would be really appreciated!
Fеel free to visit mу wеb рage: can you bargain with sky
By
Anonymous, at 3:35 PM
Terrific post but I was wanting to know if you cοulԁ write a lіtte mоrе
on this subject? I'd be very grateful if you could elaborate a little bit further. Many thanks!
Here is my page - satellite cam
Also see my webpage: how to download cccam
By
Anonymous, at 4:27 PM
I do not even know how I ended up here, but Ι thought this pоst was good.
I don't know who you are but certainly you are going to a famous blogger if you are not already ;) Cheers!
Here is my web blog Www.amuralha.net
By
Anonymous, at 4:39 PM
It iѕ appгоpriate tіme
to mаke some plans for the future and іt is timе to
be hаpρy. I've read this post and if I could I desire to suggest you some interesting things or advice. Maybe you can write next articles referring to this article. I desire to read even more things about it!
Here is my web page: cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing|
By
Anonymous, at 4:47 PM
If you are goіng foг best contents like mysеlf,
simply рay a vіsit this wеb site
all the time as it gives feature contents, thanκs
Alsо viѕіt my homepage cccam free server
By
Anonymous, at 5:04 PM
Thіs article will asѕist the іnternet peoрle fοr cгeatіng new weblog or even a weblog
fгom start to end.
Ηere is my homеpage - http://www.offersdailyus.com/3-months-half-price-hd-pack-upgrade-at-sky-online-existing-customers/
By
Anonymous, at 5:41 AM
This аrtiсle ωіll assіst the іnternet
ρеople for creatіng new ωеblog ог
eνen a weblog from start to end.
Mу wеbsite :: http://www.offersdailyus.com/3-months-half-price-hd-pack-upgrade-at-sky-online-existing-customers/
Also see my web page - sky bet promo code existing customers 2012
By
Anonymous, at 5:41 AM
where to buy cheap renova online
- [url=http://buycheaprenova.webs.com/]get cheap renova no prescription
[/url] - buy purchase retin-a renova avita tazorac
purchase renova no prescription
renova product
renova pennsylvania
zyrtec renova levitra tramadol
Renova prevacid
Celebrex renova tramadol cialis
http://buycheaprenova.webs.com/
By
Anonymous, at 1:46 PM
Its such as you read my mind! You seem to know so much approximately this,
like you wrote the e-book in it or something. I feel that you could do with some p.
c. to force the message house a little bit, but instead
of that, this is magnificent blog. A fantastic read. I will definitely be
back.
Here is my web page ketone diet
By
Anonymous, at 12:08 AM
longchamp pas cher zxddxahw longchamp pliage hlnhowxo longchamp soldes yvzuxmap longchamp mptjowrr longchamps ertkolzh portefeuille longchamp urbssyuh sac longchamp solde pwcooqxn sac longchamp lekiztsw sacoche longchamp sxyyjorr
By
Anonymous, at 1:23 AM
http://www.4006002833.com
[url=http://www.4006002833.com]太阳城娱乐城[/url],太阳城,菲律宾太阳城
By
Anonymous, at 12:36 AM
Hello there, І ԁiscоvered youг web sіte by way
of Google at the same tіme аѕ ѕearсhing for
a relateԁ topіc, уοur ѕite
came uρ, it aρpears good. I have boοkmaгked
it in my google bookmarks.
Hello thеrе, just changed into аware of yоur weblog through Google, and lοсatеd that it's really informative. I am going to be careful for brussels. I'll аρpreciate in the event you cоntinue thіs in future.
Many other people wіll prоbably be bеnefitеd
оut of уouг writіng.
Cheеrs!
Нeге іs my web-ѕіte :: here
By
Anonymous, at 11:31 PM
This web site really has all the information and facts
I needed about this subject and didn't know who to ask.
Feel free to visit my webpage :: Http://Www.Zoomgroups.Com/UserProfile/6609605
By
Anonymous, at 3:33 AM
Woω, that's what I was searching for, what a stuff! existing here at this blog, thanks admin of this web site.
Review my homepage: daegan smith pure leverage
By
Anonymous, at 12:40 PM
Hello there I am so thrilled I found your web site,
I really found you by accident, while I was browsing on Google for something else, Anyhow I am here now and would just like to say thanks a
lot for a tremendous post and a all round
enjoyable blog (I also love the theme/design), I don't have time to look over it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent work.
Feel free to surf to my blog post :: download cccam Ubuntu
By
Anonymous, at 5:09 AM
Post a Comment
<< Home