By David Wiseman (Administrator)Created 23 Feb 2008
My Rating:
Vote
Rating:
Not Rated
Views:6564
Downloads:68

List the Subnets in an Active Directory Site

Language:  VBScript

Compatibility

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

Lists subnets in a specified Active Directory site.

Code

Line Numbers: On  Off      Plain Text
strSiteRDN = "cn=Ga-Atl-Sales"
 
Set objRootDSE = GetObject("LDAP://RootDSE")
strConfigurationNC = objRootDSE.Get("configurationNamingContext")
 
strSitePath = "LDAP://" & strSiteRDN & ",cn=Sites," & strConfigurationNC
 
Set objSite = GetObject(strSitePath)
 
objSite.GetInfoEx Array("siteObjectBL"), 0
arrSiteObjectBL = objSite.GetEx("siteObjectBL")
 
WScript.Echo strSiteRDN & " Subnets" & vbCrLf & _
    String(Len(strSiteRDN) + 8, "-")
 
For Each strSiteObjectBL In arrSiteObjectBL
    WScript.Echo Split(Split(strSiteObjectBL, ",")(0), "=")(1)
Next

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
yolo621
Posted On: 6/21/2019 3:09:53 PM

buffalo bills jersey mcm outlet store yeezy shoes uggs ugg boots clearance michael kors outlet store toms costa sunglasses sale canada goose nike outlet online michael kors outlet store coach outlet online gymshark sale true religion outlet air jordan shoes swarovski jewelry outlet kate spade outlet online vans shoes uggs outlet coach factory outlet online pandora jewelry outlet mbt shoes jaguars jersey nike air force adidas outlet online pandora rings yeezy shoes coach outlet online birkenstocks balenciaga shoes hydro flask sale coach outlet online air max 270 ed hardy outlet hermes coach factory outlet valentino outlet pandora charms sale clearance off white clothing air huarache broncos jerseys nike outlet online coach factory outlet online soccer shoes kobe shoes kate spade handbags nike outlet store gucci outlet store instyler ionic styler adidas wings shoes ugg boots coach outlet online cheap nike shoes fitflops sale clearance air max oakley sunglasses outlet adidas ultra boost mulberry handbags columbia outlet store adidas yeezy shoes clarks shoes louis vuitton outlet store coach outlet online toms shoes coach factory outlet online jordan 31 givenchy handbags north face outlet nike free run twins jerseys parajumpers jacket canada goose coats coach handbags kendra scott camisetas futbol baratas rolex watches true religion outlet coach outlet store online mlb jerseys converse shoes canada goose outlet canada goose outlet store polo outlet persol rolex replica watches for sale nike shoes juicy couture canada goose gucci bags fitflops outlet kate spade outlet online pandora charms cheap jordans hermes belt cheap handbags mont blanc pen celine outlet coach outlet online cheap ray ban sunglasses adidas yeezy boost converse???? christian louboutin outlet nhl jerseys fitflops supreme clothing ed hardy shoes ralph lauren outlet adidas nmd runner nike sneakers nike kd 10 salvatore ferragamo shoes ralph lauren uk kevin durant shoes birkenstock outlet canada goose coats air jordan retro christian louboutin sale air jordan shoes air jordan nike sneakers polo ralph lauren outlet online coach outlet online coach bags nike air force 1 coach outlet clearance hermes bags giuseppe zanotti shoes pandora canada guess clothing christian louboutin outlet michael kors bags fila shoes pandora charms sale clearance ralph lauren uk pandora outlet air jordan coach purse adidas outlet store michael kors outlet online michael kors outlet clearance coach factory outlet online oakley sunglasses outlet canada goose sale ugg boots outlet titans jersey air max 2017 kate spade outlet online louboutin shoes maui jim ray ban sunglasses cheap air jordans off white shirt canada goose outlet store fred perry coach factory outlet online adidas shoes converse shoes north face outlet online pandora charms sale clearance converse shoes air max 2015 chi flat iron prada handbags bathing ape fitflops sale clearance moncler coach handbags outlet polo outlet store coach factory outlet online uggs canada jordan retro 11 pandora outlet moncler jackets coach handbags hermes bags cheap mlb jerseys air max plus nike shoes nike outlet online jordan 12 coach outlet pandora charms mcm outlet fitflops outlet prada outlet chelsea jersey cheap mbt shoes nike factory store miu miu shoes michael kors outlet clearance christian louboutin shoes coach outlet online pandora jewelry canada nike free flyknit adidas outlet online christian louboutin outlet true religion kobe 11 canada goose coats nike outlet store nike roshe run air max kate spade outlet online gucci outlet online coach handbags cheap jordan shoes louboutin outlet coach outlet online coach outlet online ed hardy outlet true religion outlet ferragamo outlet store prada outlet nike outlet store asics running shoes mont blanc nike blazer coach factory outlet uggs outlet online bape hoodie philipp plein outlet prada outlet ugg boots moncler jackets coach outlet online ugg boots sale birkenstocks pandora jewelry outlet air jordan 3 louboutin pas cher michael kors factory outlet christian louboutin shoes gymshark sale indianapolis colts jerseys pandora jewelry outlet true religion jeans true religion jeans jordans jimmy choo shoes true religion jeans air max 2017 coach factory outlet online cheap jordan shoes coach outlet coach outlet store air max jordan shoes for sale nike shoes miu miu handbags cheap oakley sunglasses fitflops outlet fjallraven kanken converse???? falcons jerseys coach outlet online coach outlet online coach outlet online michael kors outlet canada air max outlet fred perry salomon shoes nike hyperdunk coach outlet online ugg italia stone island sale valentino shoes louis vuitton coach outlet store under armour shoes ronaldo jerseys pandora charms outlet cincinnati reds jerseys patriots jerseys coach factory outlet toms outlet online air jordan retro fitflops coach factory outlet online adidas yeezy boost 350 pandora charms pandora jewelry outlet coach outlet clearance coach outlet online ugg moncler jacken coach outlet online pandora charms canada goose jackets fitflop sale nike air max 2018 ralph lauren outlet north face outlet coach outlet store kate spade outlet sale yeezy shoes jets jersey pandora jewelry ugg outlet store true religion jeans birkenstock sandals asics shoes canada goose outlet converse???? kate spade handbags adidas nmd ralph lauren uk polo ralph lauren outlet online hydro flask lids pandora charms nike outlet store jimmy choo shoes jordan shoes coach outlet online fitflops sale clearance coach outlet store online kate spade outlet michael kors outlet oakley sunglasses outlet christian louboutin outlet kate spade outlet online coach outlet online cheap maui jim sunglasses true religion jeans outlet cazal outlet coach outlet online nba jerseys cheap air jordans kate spade outlet store adidas slides ed hardy kate spade outlet coach outlet canada david yurman bracelet coach outlet store ugg outlet clearance toms ugg boots polo ralph lauren outlet y3 shoes polo outlet store minnesota vikings jersey celine outlet yeezy shoes cheap jordans coach outlet online michael kors outlet clearance giants jerseys persol sunglasses ralph lauren outlet online converse shoes kobe 12 air max 2017 coach factory outlet online packers jersey coach outlet online fjallraven backpack costa sunglasses sale maui jim sunglasses canada goose superdry clothing coach factory outlet online adidas store puma shoes canada goose coats coach handbags clearance true religion outlet store nike air max schweiz michael kors outlet canada coach outlet store nike tn michael kors handbags outlet barcelona jersey seahawks jerseys uggs outlet coach factory outlet adidas outlet online coach outlet sale patriots jerseys cheap snapbacks coach outlet online coach outlet online north face outlet store ed hardy coach outlet jordan shoes nike blazer oakley sunglasses wholesale david yurman jordans fitflops nike outlet store online coach factory outlet online coach canada outlet nobis jackets north face jackets ysl outlet juicy couture gucci outlet online mbt shoes giuseppe zanotti outlet store mac makeup coach factory outlet ferragamo belts pandora jewelry outlet suicoke sandals mbt shoes outlet cheap jordan shoes adidas neo shoes true religion jeans hydro flask sale nike outlet store fivefingers shoes coach factory outlet online kappa clothing fjallraven kanken canada goose coats cheap ugg boots nike outlet coach outlet store online coach factory outlet store coach outlet online coach outlet online cowboys jerseys adidas shoes michael kors outlet christian louboutin shoes kate spade nike max true religion chaussures christian louboutin moncler sito ufficiale cardinals jerseys browns jerseys air jordan 4 michael kors outlet online pandora charms outlet nike factory store miu miu shoes timberland boots pittsburgh steelers jersey prada sunglasses coach factory outlet cnaada goose outlet store seattle seahawks jersey coach outlet store coach factorty outlet store nike outlet online polo ralph lauren outlet nike outlet store the north face jackets air max coach outlet store online toms shoes raiders jerseys chrome hearts outlet store ubiq shoes ralph lauren outlet online kyrie 2 kendra scott coach outlet coach outlet clearance tods outlet online louis vuitton outlet online christian louboutin outlet retro 11 nike basketball shoes ferragamo outlet canada goose coats ralph lauren pas cher pandora jewelry canada coach outlet store louboutin outlet nike outlet le coq sportif coach outlet canada cincinnati bengals jersey moncler jacka moncler pas cher marc jacobs handbags pandora charms sale lacoste polo shirts valentino outlet nike roshe coach factory outlet online rolex replica watches tigers jerseys ed hardy michael kors outlet online christian louboutin shoes ugg pas cher michael kors outlet online true religion outlet store coach outlet online converse shoes coach outlet online coach outlet store online nike air max 90 uggs outlet coach outlet online air max shoes coach factory outlet online yeezy shoes air jordan shoes coach factory outlet christian louboutin outlet louboutin outlet nike tn coach outlet sale air max 97 coach factory outlet online coach factorty outlet online ferragamo outlet ralph lauren outlet michael kors outlet clearance ralph lauren polo cheap jordans free shipping vans sneakers pandora jewelry store air jordan shoes red bottoms adidas ultra boost christian louboutin outlet adidas yeezy boost fitflops ecco outlet michael kors outlet online christian louboutin birkin handbags off-white clothing adidas sneakers coach outlet clearance gucci outlet online louboutin outlet true religion jeans sale ed hardy coach outlet store online clearance michael kors outlet clearance gucci outlet online coach outlet store adidas superstars nike factory store polo ralph lauren outlet oakley sunglasses outlet louboutin outlet air jordan 14 uggs outlet revolution 3 adidas outlet cheap mlb jerseys coach factorty outlet online kate spade handbags snapback hats yeti ugg outlet cheap air max eagles jersey uggs outlet kate spade outlet pandora charms outlet ralph lauren sale clearance uk off white clothing moncler outlet online ralph lauren outlet coach outlet online foamposite shoe louis vuitton outlet online stone island sale cheap jordan shoes yeti tumbler nike flip-flops polo ralph lauren outlet online coach factorty outlet store uggs outlet valentino jordan pas cher ugg boots coach outlet online coach outlet store lions jerseys hermes outlet store ugg outlet manolo blahnik outlet soccer jerseys san diego chargers jerseys vibram fivefingers outlet louis vuitton purses coach outlet online cardinals jerseys curry 4 shoes north face outlet store prada outlet online toms outlet store david yurman houston texans jerseys true religion outlet store true religion outlet ugg italia cheap jordans for sale asics outlet yeezy boost 350 michael kors outlet clearance coach factory outlet lacoste outlet air max pas cher michael kors outlet clearance cubs jerseys true religion outlet store persol sunglasses sale denver broncos jersey christian louboutin sale pandora charms polo ralph lauren outlet kobe shoes michael kors outlet online coach outlet store online louboutin outlet gymshark clothing cheap jordan shoes fitflops christian louboutin shoes coach outlet online versace clothing pandora charms sale pandora jewelry outlet coach outlet online kendra scott cheap snapbacks coach outlet store true religion outlet adidas uk phillies jerseys cheap soccer jerseys polo ralph lauren outlet online pandora charms curry 5 shoes mulberry bags sale air jordan uk valentino outlet store pandora jewelry outlet yeti cup suicoke sandals supra shoes hydro flask cup yankees jerseys fitflops sale clearance birkenstock outlet store moncler outlet online birkenstock shoes discount oakley sunglasses ray ban sunglasses outlet canada goose outlet store cheap snapbacks coach outlet store david yurman jewelry lebron 13 coach outlet canada coach factory outlet nba jerseys for sale moncler outlet online true religion outlet store pandora charms asics shoes ugg outlet sale malone souliers shoes pandora outlet canada goose outlet pandora sale clearance coach factory outlet stone island hoodie ravens jerseys durant shoes uboutin shoes prada outlet ralph lauren polo coach factory outlet michael kors outlet online mcm handbags coach outlet adidas nmd r1 ralph lauren polo dolce & gabbana sunglasses coach outlet store cheap jordans louboutin outlet fitflops sale clearance ralph lauren outlet ugg outlet louboutin outlet dolce & gabbana Outlet pandora charms sale clearance david yurman pandora jewelry coach outlet online mbt shoes coach outlet store online kate spade outlet online ralph lauren outlet online red sox jerseys coach outlet online coach bags coach outlet online

davidjohn
Posted On: 6/29/2019 6:53:18 PM

I don’t really like the articles on https://altorotatepdf.com/faq . They are full of facts that doesn’t even makes any sense. And also they are very long meaning a lot of repetation takes place.

davidjohn
Posted On: 6/29/2019 6:53:21 PM

I don’t really like the articles on https://altorotatepdf.com/faq . They are full of facts that doesn’t even makes any sense. And also they are very long meaning a lot of repetation takes place.

davidjohn
Posted On: 7/5/2019 3:15:15 PM

To say the truth I am very impressed by what you told. You share tons of interesting info, neat and excellent design you’ve got here. It’s certainly one of the most informative stuff on this topic I’ve ever read. make him worship you review

davidjohn
Posted On: 7/10/2019 4:58:57 PM

That gives off an impression of being brilliant anyway i am still not very beyond any doubt that I like it. At any rate will look significantly more into it and choose by and by! cheap essay writing service