By David Wiseman (Administrator)Created 14 Jan 2006, Modified 13 Aug 2006
My Rating:
Not Rated

List Exchange Servers

Language:  VBScript


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

Searches Active Directory for a list of exchange servers


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") "Provider=ADsDSOObject;"
cmd.activeconnection = cn

cmd.commandtext = "<LDAP://" & configurationNC & _
set rs = cmd.execute

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



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