By David Wiseman (Administrator)Created 14 Jan 2006, Modified 13 Aug 2006
My Rating:
Vote
Rating:
Not Rated
Views:7251
Downloads:126

List Exchange Servers

Language:  VBScript

Compatibility

Windows XP Yes Windows 2003 Yes
Windows 2000 Unknown Windows NT Unknown
Vista Unknown Windows 2008 Unknown
Description

Searches Active Directory for a list of exchange servers

Code

Line Numbers: On  Off      Plain Text
set cn = createobject("ADODB.Connection")
set cmd = createobject("ADODB.Command")
set rs = createobject("ADODB.Recordset")

set objRoot = getobject("LDAP://RootDSE")
configurationNC = objRoot.Get("configurationnamingcontext")

cn.open "Provider=ADsDSOObject;"
cmd.activeconnection = cn

cmd.commandtext = "<LDAP://" & configurationNC & _
		  ">;(objectCategory=msExchExchangeServer);name;subtree"
set rs = cmd.execute

while rs.eof<>true and rs.bof<>true
	wscript.echo rs(0)
	rs.movenext
wend

cn.close

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      

Posted On: 3/30/2018 5:50:02 AM

2018331 leilei3915 coach outlet online pandora charms kate spade outlet pandora cheap ray ban hermes outlet cheap nfl jerseys coach outlet moncler sale pandora outlet fred perry polo shirts ray-ban sunglasses michael kors outlet pandora outlet michael kors outlet oakley sunglasses ralph lauren outlet mulberry bags supreme shirts cheap ugg boots ralph lauren coach factory outlet ralph lauren uk ugg boots clearance canada goose outlet online ralph lauren lebron james shoes fitflops sale clearance michael kors outlet canada goose jackets ralph lauren outlet michael kors outlet clearance pandora jewelry polo outlet supreme hoodie michael kors official site prada outlet stores coach outlet store online ray ban wayfarer coach outlet online canada goose jackets adidas yeezy boost christian louboutin outlet canada goose jackets canada goose jackets nike outlet supreme outlet polo ralph lauren outlet oakley sunglasses canada goose jackets adidas yeezy boost michael kors outlet fred perry polo michael kors outlet clearance polo ralph lauren factory store canada goose jackets coach outlet online pandora charms outlet adidas outlet ugg outlet ugg boots coach outlet online nfl jerseys wholesale kate spade handbags pandora charms outlet ralph lauren polo michael kors outlet online pandora charms tory burch outlet online coach outlet store online mbt outlet ugg boots clearance cheap oakley sunglasses cheap jordans tory burch handbags polo ralph lauren coach outlet coach outlet pandora pandora outlet store nfl jerseys wholesale tory burch shoes pandora jewelry canada goose michael kors outlet canada goose outlet store fred perry shirts michael kors outlet michael kors outlet clearance canada goose outlet online coach factory outlet cheap ugg boots pandora jewelry cheap oakley sunglasses coach outlet canada goose jackets valentino outlet kate spade outlet online canada goose adidas outlet store

chanyuan
Posted On: 5/18/2018 5:06:23 AM

2018518 leilei3915 cheap jordans mlb jerseys wholesale mont blanc outlet polo ralph lauren coach outlet online ralph lauren outlet fred perry louis vuitton handbags coach outlet online polo pas cher supreme t shirts pandora charms sale clearance ray ban sunglasses outlet cheap ray bans mbt shoes michael kors outlet coach factory outlet coach outlet online polo outlet kate spade sale polo outlet coach outlet online ray ban sunglasse coach outlet lacoste shirts lacoste clothing michael kors purses coach outlet louis vuitton outlet stores polo ralph lauren michael kors outlet online coach outlet store online canada goose jackets coach factory outlet moncler jackets coach outlet canada goose jackets kate spade outlet online rolex replica watches for sale yeezy boost 350 giuseppe zanotti outlet ugg boots pandora outlet louis vuitton outlet coach factory outlet ray ban sunglasses outlet moncler jackets michael kors outlet michael kors outlet nike shoes outlet ralph lauren outlet michael kors outlet ugg outlet store louboutin outlet michael kors outlet store michael kors outlet coach outlet online rolex watch coach factory outlet mcm bags true religion jeans mulberry outlet polo outlet ralph lauren outlet cheap oakley sunglasses ralph lauren uk michael kors outlet clearance ralph lauren outlet christian louboutin shoes ugg outlet coach outlet ralph lauren uk pandora charms sale clearance asics shoes kate spade handbags nmd adidas michael kors outlet prada handbags pandora outlet valentino shoes giuseppe zanotti shoes coach canada ugg outlet fitflops shoes canada goose outlet ray ban sunglasses coach outlet online adidas yeezy oakley sunglasses coach outlet online coach outlet nba jerseys wholesale polo ralph lauren canada goose jackets ugg outlet online moncler coats michael kors outlet online true religion jeans coach outlet adidas nmd r1

wanglili
Posted On: 6/4/2018 6:08:58 PM

bijoux swarovski michael kors nike factory outlet mulberry handbags michael kors new balance asics gel guess factory stuart weitzman louboutin outlet tory burch lunette oakley air force furla handbags ray ban sunglasses dansko shoes kates pade outlet online mizuno beats headphones longchamp outlet brazil world cup jersey air max nike blazer adidas soccer cleats sac vanessa bruno beats by dre nike pas cher rolex watches asics gel clarks shoes prada kobe 9 elite tory burch longchamp pas cher nike roshe hermes rolex watches dolce and gabbana vans outlet burberry ray ban sunglasses nike air max 97 jordan 12 france world cup jersey ferragamo omega watches air max 2018 nike air max montre pas cher soccer jerseys nike shoes nike huarache nike air max true religion jeans michael kors handbags longchamp handbags ralph lauren outlet dansko outlet lunette ray ban lebron james shoes timberland pas cher cheap oakley sunglasses true religion jeans softball bats scarpe hogan ray ban pas cher fitflops cheap jordans polo ralph lauren jordan 11 roshe run polo lacoste pas cher hogan shoes converse uk michael jordan cheap oakley sunglasses ai max cheap jerseys marc by marc jacobs jordan timberland shoes hilfiger uk jordan 6 mizuno air jordan fendi jordan chrome hearts jewelry nike uk free running puma shoes adidas outlet store spain world cup jersey germany world cup jersey salomon shoes argentina world cup jersey christian louboutin pandora jewelry barbour jackets michael kors outlet clearance pandora bracciali nike outlet guess canada prom dresses giuseppe zanotti outlet nike air max burberry outlet hilfiger outlet adidas trainers uk nike outlet store england world cup jersey kobe bryant shoes nike air max instyler adidas running shoes new balance femme celine handbags iphone cases michael jordan cartier bracelet converse reebok shoes para jumpers hermes birkin bag belgium world cup jerseys oakley sunglasses nike mercurial true religion outlet adidas outlet store nike roshe run nike roshe run nike free balance shoes louboutin ray ban sunglasses montres ray ban sunglasses jordans nike clothing dolce and gabbana cheap wedding dresses chloe handbags kenzo clothing nike air force 1 burberry sale replica watches coach outlet sac longchamp michael kors outlet online jordans true religion supra shoes jordan 5 timberland jordan 3 nike roshe run air max 90 nike air max air max montre homme yeezy shoe links of london uk reebok outlet pandora jewelry mont blanc pens converse shoes salvatore ferragamo coach factory outlet polo ralph lauren adidas zx flux jordan adidas slides adidas outlet versace handbags nfl jerseys new balance soldes new balance longchamp lebron shoes ai max nike air max orologi rolex pandora uk air max plus christian louboutin adidas superstar michael jordan michael kors outlet nike free michael kors nike free run polo ralph lauren nike vapor max jordan 4 ray ban jordan adidas shoes nike air michael kors uk vans scarpe burberry handbags yves saint laurent adidas outlet store nike shoes jordan 1 nike roshe replica watches polo ralph lauren coach outlet online fendi handbags balenciaga sneakers asics trainers air max 95 occhiali oakley skechers sneakers jordan xx9 adidas superstar mercurial superfly ghd hair straighteners converse five finger shoes adidas outlet store iphone x case karen millen herve leger dresses hermes birkin air max michael kors outlet true religion nike soccer shoes burberry outlet guess pas cher lacoste shoes air max mac makeup michael kors outlet fitflops outlet boy london clothing beats headphones ray ban occhiali swarovski longchamp outlet sac michael kors louboutin pas cher nike outlet fitflop air max roty burch outlet oakley sunglasses mac cosmetics outlet ralph lauren outlet nike air max 2017 michael kors uk converse chuck taylor reebok shoes miu miu shoes flip flops chaussure nike polo ralph lauren cheap basketball shoes michael kors factory outlet nike free run adidas clothing timberland boots cheap jerseys tn pas cher portugal world cup jersey air max 90 michael kors nike free mac makeup blazer nike ray ban sunglasses nike kyrie 2 prada outlet prada handbags lebron 11 oakley sunglasses ray ban bottega hogan christian louboutin nike air max jordan pas cher softball bats nike air max burberry cheap jordan shoes oakley uk ralph lauren marc jacobs mont blanc pens nike air max 90 vans pas cher oakley sunglasses thomas sabo uk valentinos coach outlet cheap wedding dresses longchamp handbags mulberry mac cosmetics kate spade uk weitzman shoes nike air max adidas flip-flops christian louboutin bcbg max azria sac michael kors roshe run louboutin supra shoes kate spade timberland boots true religion outlet adidas originals bottega veneta air force jimmy choo shoes oakley pas cher michael kors canada tommy hilfiger pas cher kevin durant shoes vans outlet salvatore ferragamo pandora bijoux mizuno running shoes tods shoes nike store nike air max air jordan nike free louboutin swarovski gioielli converse all stars wedding dress bcbg oakley vault ralph lauren replica watches ed hardy goyard handbags balance shoes nike blazer swarovski jewelry asics running michael kors outlet pandora charms manolo blahnik shoes 2018.6.5xukaimin