Google
Search WWW Search msexchangetips.blogspot.com

Thursday, July 06, 2006

Exchange: Exporting SMTP Proxies

One common request from Exchange administrators is how to export SMTP proxies. Below is a sample script to export SMTP proxies into a LDF file.


''''''''''''''''''''''''''''''''''''''''''''''''''''''
' DumpProxy.vbs '
' '
' James Chong, MCSE + Messaging '
' '
' (dumps existing proxy addresses to an ldf file) '
' '
''''''''''''''''''''''''''''''''''''''''''''''''''''''
Const Writable = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLog = objFSO.OpenTextFile("c:\proxydump.ldf", Writable, True)
Set cn = CreateObject("ADODB.Connection")
Set cm = CreateObject("ADODB.Command")
Set rs = CreateObject("ADODB.RecordSet")

With cn
.Provider = "ADsDSOObject"
.Open "Active Directory Provider"
End With
Set cm.ActiveConnection = cn

cm.CommandText = "<;(&(objectClass=user)(proxyAddresses=*));SAMAccountName,mail,proxyAddresses;subtree">LDAP://mydc.mydomain.com>;(&(objectClass=user)(proxyAddresses=*));SAMAccountName,mail,proxyAddresses;subtree"
Set rs = cm.Execute

While Not rs.EOF
On Error Resume Next
strUserDN = rs.Fields("samaccountname")
strMail = rs.Fields("mail")
strProxyAddress = rs.Fields("proxyAddresses")
objLog.Write "dn: " & strUserDN & vbCrLf
objLog.Write "changetype: modify" & vbCrLf
objLog.Write "replace: mail" & vbCrLf
objLog.Write "mail: " & strMail & vbCrLf
objLog.Write "-" & vbCrLf & vbCrLf
objLog.Write "dn: " & strUserDN & vbCrLf
objLog.Write "changetype: modify" & vbCrLf
objLog.Write "replace: proxyAddresses" & vbCrLf
For Each Item in strProxyAddress
strTempAddr = Item
objLog.Write "proxyAddresses: " & Item & vbCrLf
Next
objLog.Write "-" & vbCrLf & vbCrLf
rs.MoveNext
Wend

objLog.Close
msgbox "Export Complete to c:\proxydump.lfd"


James Chong (MVP)
MCITP | EMA; MCSE | M+, S+
Security+, Project+, ITIL
msexchangetips.blogspot.com

51 Comments:

Anonymous catfish said...

one particular line got screwed up, I believe it should be:

cm.CommandText = "<LDAP://mydc.mydomain.com>;(&(objectClass=user)(proxyAddresses=*));SAMAccountName,mail,proxyAddresses;subtree"

8:49 PM  
Blogger oakleyses said...

louis vuitton outlet, oakley sunglasses, michael kors handbags, cheap jordans, prada handbags, uggs outlet, michael kors outlet, oakley sunglasses, uggs on sale, ray ban sunglasses, burberry outlet, tiffany jewelry, uggs on sale, kate spade, gucci handbags, ray ban sunglasses, prada outlet, longchamp outlet, louboutin uk, burberry factory outlet, tory burch outlet, nike air max, tiffany jewelry, christian louboutin, louboutin shoes, oakley sunglasses, cheap oakley sunglasses, chanel handbags, michael kors outlet store, louis vuitton outlet, nike outlet, ralph lauren polo, louis vuitton, christian louboutin, michael kors outlet online, longchamp outlet, uggs outlet, michael kors outlet online, nike air max, longchamp bags, replica watches, ralph lauren outlet, oakley sunglasses, ray ban sunglasses, louis vuitton outlet online, nike free, michael kors

6:29 PM  
Blogger oakleyses said...

toms shoes, supra shoes, montre pas cher, ugg uk, juicy couture outlet, moncler, lancel, michael kors outlet online, ugg pas cher, michael kors handbags, barbour, doke & gabbana, michael kors outlet, coach outlet, louis vuitton uk, canada goose jackets, pandora charms, moncler, ugg,ugg australia,ugg italia, links of london uk, moncler jackets, hollister, juicy couture outlet, canada goose outlet, swarovski uk, pandora jewelry, canada goose pas cher, canada goose outlet, marc jacobs, moncler pas cher, thomas sabo uk, swarovski jewelry, karen millen uk, louis vuitton, moncler, moncler uk, sac louis vuitton, canada goose, moncler outlet, louis vuitton, canada goose, wedding dresses uk, ugg,uggs,uggs canada, canada goose uk, sac louis vuitton, moncler, replica watches, barbour jackets uk, bottes ugg pas cher, canada goose jackets

6:34 PM  
Blogger chenlina said...

oakley sunglasses
longchamp bags
hermes bag
toms shoes
jordans
jordan 8s
ralph lauren polo
jordan concords
michael kors outlet
adidas shoes
michael kors outlet
michael kors handbags
jordan retro
nike roshe run
toms
louis vuitton handbags
cheap jordan shoes
jordan shoes
michael kors outlet clearance
coach factory outlet
adidas ultra boost
christian louboutin sale
nike air max 90
louis vuitton outlet
louis vuitton bags
abercrombie and fitch
michael kors outlet online
burberry outlet
nike factory outlet
polo ralph lauren
coach outlet online
adidas uk
air jordans
fitflop sandals
kobe 11 shoes
michael kors outlet online sale
coach outlet
ray ban sunglasses
michael kors canada
juicy couture
chenlina20160803

5:48 PM  
Blogger jeje said...

longchamp handbags
michael kors outlet
adidas neo online shop
cheap jordans
nike air max 90
kobe 11
michael kors outlet online
adidas yeezy boost
michael kors outlet
patriots jersey

7:23 PM  
Blogger John said...

ferragamo shoes
epic react flyknit
pandora jewelry outlet
coach canada outlet
yeezy boost 350
mulberry uk
hermes bag
unomagli shoes
air max
kyrie 4
20180703yuanyuan

7:03 PM  
Blogger samaher said...



افضل شركة نقل عفش
ارخص شركة نقل اثاث بالرياض

2:49 PM  
Anonymous Situs Judi 13win said...

13win agen bola online terbaik dan terpercaya di Indonesia dengan pendaftaran judi bola online uang asli yang cepat dan mudah untuk anda, berikut link profile dari 13win untuk anda https://myworldgo.com/profile/situsjudi13win/

9:14 PM  
Blogger ANISA said...

https://trikpokerterbaik.blogspot.com/2019/12/cara-anti-kalah-main-sakong-online.html
https://portalinfojudiindonesia.blogspot.com/2019/12/game-poker-online-yang-terpercaya.html
https://tipsjudionline2019.blogspot.com/2019/12/teknik-yang-telah-terbukti-tentang-cara.html
https://tipsjudionline2019.blogspot.com/2019/12/empat-alasan-bermain-poker-online.html
https://artikelpanduanjudionline.blogspot.com/2019/12/mempelajari-blackjack-hanya-membutuhkan.html

3:29 AM  
Blogger Evelyn Cynthia said...

Wow, I'm excited to read your content, and it looks so informative, please come to our website, by clicking below us :)

https://www.hometalk.com/member/48452964/dwaynebrown1884652
https://www.vocabulary.com/profiles/B102Q47SUHOSUL
https://www.threadsmagazine.com/profile/dwayn1le
http://www.freecpapadvice.com/forum/memberlist.php?mode=viewprofile&u=9365
http://tupalo.com/en/users/2221878

9:49 PM  
Blogger maverick said...

Situs Domino
thx 4 sharing I see this post very usefull

8:38 AM  
Blogger maverick said...

Slot terbaru terima kasih atas informasinya

8:21 AM  
Blogger Bokir bokek said...

di tahun baru 2020 ini, kami selaku Situs Poker Online indonesia terbaik, menawarkan anda para penggemar poker online untuk bergabung. Kami menyediakan banyak sekali fasilitas permainan terlengkap dan terseru untuk para pecinta Poker338
mania dengan minimal deposit idr 10 ribu saja, segera bergabung dan menangkan jackpot ratusan juta.

9:54 PM  
Blogger Slot Online Indonesia - Joker123 said...

Situs tembak ikan online yang berpusat pada server joker123. Permainan Slot Online Indonesia, Tembak Ikan, dan Casino Online via Apk Joker123
visit : main tembak ikan

4:38 AM  
Blogger Medchirurgie said...

thank you for this wonderful article chirurgie esthétique Tunisie

1:56 AM  
Blogger Boya Kullen said...

deposit via pulsa

6:50 AM  
Blogger jemmyfred said...

very wonderful article ..thank you for sharingaugmentation mammaire Tunisie

6:46 AM  
Blogger Anggun Agen QQWIN said...


casino online

12:28 AM  
Blogger marie said...

septoplastie tunisie

4:23 AM  
Blogger marie said...

prp cheveux prix

réduction mammaire en tunisie prix

5:19 AM  
Blogger maverick said...

Agen Sv388 I really appreciate for information dude visit my link to

9:59 AM  
Blogger whatsapp plus themes said...

how to train your dragon 3 watch online

6:03 AM  
Blogger Danielrosy said...



septoplastie Tunisie

3:12 AM  
Blogger Aman Ahuja said...

how to train your dragon 3

3:34 AM  
Blogger PutriHijau said...

https://www.starship-factory.org/

4:02 AM  
Blogger Danielrosy said...

https://www.i-chirurgie-esthetique-tunisie.com/rhinoplastie-tunisie/

1:04 AM  
Blogger Judi Online said...

Penyajian artikel yang sangat bagus, saya sangat kagum sekali dengan artikel kali ini karena sangat menarik untuk dibaca. Namun kami juga memiliki beberapa artikel menarik yang juga sangat enak untuk dibaca, dan silahkan klik link dibawah ini untuk masuk ke dalam artikel kami:
daftar poker online
apk idn poker
cara daftar idnplay
situs bandarq
situs poker pulsa

6:14 AM  
Blogger Unknown said...

pose de facette dentaire Tunisie

3:01 AM  
Blogger Maria Vania said...

What a good blog to read and to enjoy!

game ikan

Bandar judi Sepak Bola

download joker123

game tembak ikan

Bandar judi Sepak Bola

sabung ayam online

12:34 PM  
Blogger Tasya Vennia said...

Don't ruin this blog because this is a masterpiece. Please give me informartion about how to blog like this site.

game ikan

Bandar judi Sepak Bola

download joker123

game tembak ikan

Bandar judi Sepak Bola

sabung ayam online

11:38 PM  
Blogger Sinta said...

Hokiplay99 Situs Judi Online Terlengkap Situs Judi Online Terpopuler Layanan Deposit Via Ovo Gopay Dana Dan Lain Lain Nya Cukup Dengan 1 User Id Anda Dapat Bermain Semua Permainan Judi Online Yang Banyak Di minatin slot88 Terbaik Di Asia. Layanan Permainan Yang Di Berikan Yaitu :

- Taruhan Bola
- Game Slot
- Live Casino
- Tembak Ikan
- Sabung Ayam
- Togel Online
- Dan Banyak Lagi

Contact Kami :

Whatsapp : +639213068999
Line : +639213068999

10:58 AM  
Blogger Molicous said...

Segera Bergabung Dengan Kami Dimposlot

5:44 AM  
Blogger juragan88 said...

ketika anda ingin bermain poker online anda pastinya mencari situs poker yang bisa di akses dengan mudah dan sudah di percaya banyak pemain, sekarang anda bisa bermain di IDN Poker telah hadir untuk anda yang ingin bermain poker dengan akses mudah, anda juga bisa mengakses pokerseleb melalui smartphone anda, dengan menyedaiakan berbagai permainan poker online terbaik yang bisa menguntungkan anda dengan uang asli.
poker deposit 10 ribu

2:03 AM  
Blogger Pokerwin13 said...

Anda bosan kalah bermain ceme online, mungkin sudah saatnya anda mempelajari Cara Menang Ceme yang bisa memberikan anda tips dan cara menang dengan mudah

3:04 AM  
Blogger IDN Poker online said...

permainan poker online kembali populer karna jaman sekarang sudah tersedianya online. Bisa bermain dimana saja dan kapan saja. Tapi bukan berarti semua situs idnpoker online di Google bisa anda percaya begitu saja, karna ada beberapa kasus yang situs nya itu menipu. Bukannya mendapatkan keuntungan malah kerugian yang calon pemain dapatkan

2:59 AM  
Blogger duetqiu said...

Situs Judi QQ Online Terpercaya
QQ Online

7:22 AM  
Blogger DuetQQ said...

DuetQQ Situs Judi Poker Domino99 Bandarq Online Terpercaya
BandarQ Online

3:03 PM  
Blogger duetqq.site said...

Situs Poker Online Terpopuler
Situs Poker Terpercaya

3:11 PM  
Blogger duetqiunet said...

Situs Poker Terpercaya
Poker QQ

3:18 PM  
Blogger ListBandarQiu said...

Situs BandarQ Terpercaya
BandarQ Online

3:44 PM  
Blogger PartaiQQlink said...

Poker Uang Asli
Dewa Poker

4:07 PM  
Blogger IDN Poker Indonesia said...

The presentation of the article is very good, every word written has a meaning and is very useful for the readers. I hope that you can write useful articles for readers like this, we also have several articles that are also interesting to read.
Daftar Judi Bola Terpercaya
Situs Judi Bola Resmi Indonesia

12:33 AM  
Blogger duetqqclub said...

ketika bermain dalam link http://188.114.232.104 dipastikan anda harus bermain dalam domino99 dimana anda bisa menjadi yang terbaik dan luar biasa.

9:39 PM  
Blogger joker123 said...

Fafaslot
I really appreciate for information And dont forget to visit my blog too thx dude

11:44 AM  
Blogger joker123 said...

S128
S1288
SV388
Agen S128
Agen S1288
Agen Sv388
Judi S128
Judi S1288
Judi Sv388
laga ayam

2:11 PM  
Blogger Betpoker303 said...

S128
S1288
SV388
Agen S128
Agen S1288
Agen Sv388
Judi S128
Judi S1288
Judi Sv388

2:27 PM  
Blogger Seira said...

IDNpoker menggunakan teknologi terbaru dalam menyediakan pengalaman game online yang luar biasa. Dengan jumlah pemain yang melebihi 600.000 setiap bulan serta 100 juta pengguna aktif yang tersebar di berbagai mitra IDNplay, kami merupakan server situs poker online terbesar di Asia. Selain poker, terdapat juga permainan lain yang mendukung semua mata uang asing untuk kenyamanan anda dalam bertransaksi. Terdapat 7 jenis permainan kartu online yang dapat anda nikmati seperti poker, ceme-keliling, domino, ceme, capsa, super-10 dan omaha.
naga77
daftar sbobet99
piala eropa
sbobet99
idn poker indonesia

11:23 PM  
Blogger maverick said...

agen capsa terbaik Great Article. Looking great work dear, I really appreciated to you on this quality work. I would like say thanks for this post.

5:50 AM  
Blogger angelvalery8899 said...

bagi anda yang bermain dalam link https://partaiqq.mobi dipastikan anda harus bermain dalam server pkv games dimana ini akan menjadi awal yang luar biasa.

9:59 AM  
Blogger joker123 said...

Great Article, just wanted to tell you, I loved this post.
It was helpful. Keep on posting!
Judi Domino QQ
Judi Domino 99
Judi Ceme Online
Judi Capsa Susun
Judi BandarQ Online
Judi AduQ Online

8:43 AM  
Anonymous Bipard said...

Your blog is filled with unique good articles! I was impressed how well you express your thoughts.

crstn.org , crstn.org birth certificate download, TN Death & Birth Certificate Download Online, RCH Id

3:04 AM  

Post a Comment

<< Home

xml:lang="en" lang="en"> MS Exchange Tips: Exchange: Exporting SMTP Proxies