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

List the Subnets in all Active Directory Sites

Language:  VBScript

Compatibility

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

Lists subnets in all Active Directory sites.

Code

Line Numbers: On  Off      Plain Text
Set objRootDSE = GetObject("LDAP://RootDSE")
strConfigurationNC = objRootDSE.Get("configurationNamingContext")
 
strSubnetsContainer = "LDAP://cn=Subnets,cn=Sites," & strConfigurationNC
 
Set objSubnetsContainer = GetObject(strSubnetsContainer)
 
objSubnetsContainer.Filter = Array("subnet")
 
Set objHash = CreateObject("Scripting.Dictionary")
 
For Each objSubnet In objSubnetsContainer
    objSubnet.GetInfoEx Array("siteObject"), 0
    strSiteObjectDN = objSubnet.Get("siteObject")
    strSiteObjectName = Split(Split(strSiteObjectDN, ",")(0), "=")(1)
 
    If objHash.Exists(strSiteObjectName) Then
        objHash(strSiteObjectName) = objHash(strSiteObjectName) & "," & _
            Split(objSubnet.Name, "=")(1)
    Else
        objHash.Add strSiteObjectName, Split(objSubnet.Name, "=")(1)
    End If
Next
 
For Each strKey In objHash.Keys
    WScript.Echo strKey & "," & objHash(strKey)
Next

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      

Posted On: 9/28/2018 1:26:13 AM

ugg outlet canada goose outlet cheap jerseys air jordan 4 polo ralph lauren ugg outlet christian louboutin outlet coach outlet online polo ralph lauren michael kors outlet pandora outlet ugg outlet canada goose outlet canada goose outlet true religion jeans vibram fivefingers adidas nmd shoes moncler jackets true religion outlet yeezy boost ugg outlet air max 90 uggs outlet nike huarache pandora jewelry ugg boots clearance michael kors outlet michael kors handbags canada goose outlet canada goose outlet pandora charms true religion jeans nfl jerseys wholesale canada goose jackets coach outlet christian louboutin outlet coach outlet christian louboutin outlet longchamp handbags michael kors outlet michael kors outlet pandora charms christian louboutin outlet christian louboutin outlet canada goose jackets adidas yeezy michael kors outlet polo ralph lauren valentino outlet coach outlet pandora jewelry pandora outlet mont blanc pens air max 90 birkenstock outlet nike trainers nike outlet lebron james shoes coach outlet adidas outlet kate spade outlet polo outlet hermes birkin kate spade outlet moncler outlet uggs outlet ray ban sunglasse mont blanc pens michael kors handbags polo ralph lauren coach outlet coach outlet coach outlet online canada goose jackets coach outlet store online coach outlet online mbt shoes polo ralph lauren coach outlet pandora jewelry moncler outlet canada goose outlet pandora jewelry michael kors outlet michael kors outlet pandora outlet coach factory outlet ray ban sunglasses canada goose outlet michael kors outlet ugg outlet canada goose jackets michael kors outlet coach outlet ralph lauren uk christian louboutin outlet michael kors outlet oakley sunglasses wholesale polo outlet coach outlet adidas outlet nfl jerseys wholesale christian louboutin outlet nike shoes canada goose jackets cheap nfl jerseys lebron james shoes coach outlet kate spade outlet polo shirts christian louboutin outlet ferragamo outlet cheap ugg boots michael kors outlet clearance superdry clothing michael kors handbags oakley sunglasses wholesale coach outlet coach outlet canada canada goose outlet michael kors outlet north face jackets kate spade outlet cheap ugg boots polo ralph lauren canada goose outlet true religion outlet store kate spade outlet michael kors outlet coach outlet online fred perry polo shirts ultra boost christian louboutin outlet prada outlet christian louboutin outlet kate spade outlet off white clothing kate spade outlet moncler jackets kate spade outlet christian louboutin outlet air jordan shoes coach outlet online kate spade outlet pandora outlet christian louboutin outlet moncler jackets polo ralph lauren mbt shoes ugg outlet coach outlet ugg outlet ralph lauren polo michael kors handbags ralph lauren outlet coach factory outlet cheap jordans chaussures christian louboutin michael kors outlet ugg outlet kate spade outlet canada goose jackets polo outlet michael kors outlet nfl jerseys pandora outlet coach outlet coach factory outlet ray ban sunglasse supreme uk michael kors outlet nfl jerseys canada goose jackets coach outlet true religion outlet scarpe mbt michael kors outlet air max 2017 nfl jerseys wholesale pandora jewelry outlet cheap jordans coach outlet online ray ban outlet nfl jerseys wholesale michael kors outlet coach factory outlet michael kors outlet christian louboutin outlet canada goose outlet coach outlet oakley sunglasses wholesale michael kors outlet clearance supreme outlet mont blanc pens coach factory outlet cheap mlb jerseys true religion jeans nba jersey mlb jerseys wholesale ray ban sunglasses canada goose outlet christian louboutin outlet oakley sunglasses nike shoes cheap nfl jerseys birkenstock shoes ed hardy clothing oakley sunglasses mulberry handbags ralph lauren shirts michael kors outlet nike outlet coach outlet michael kors outlet polo ralph lauren cheap nfl jerseys ugg boots michael kors outlet coach outlet asics running shoes pandora charms michael kors outlet nfl jerseys wholesale pandora charms pandora charms uggs outlet uggs outlet christian louboutin mbt shoes canada goose outlet tory burch outlet coach factory outlet pandora charms michael kors outlet coach outlet yeezy boost ralph lauren sale clearance mulberry handbags adidas nmd mlb jerseys canada goose outlet coach outlet michael kors outlet ugg outlet kate spade outlet ugg outlet ray ban sunglasse adidas yeezy mulberry handbags coach outlet mbt shoes nike outlet michael kors outlet pandora outlet mbt shoes ugg boots nike shoes outlet coach factory outlet michael kors outlet clearance coach outlet online coach outlet north face jackets ugg outlet polo outlet yeezy boost polo ralph lauren christian louboutin outlet polo ralph lauren ralph lauren polo shirts coach outlet online adidas nmd ugg outlet coach outlet coach outlet fitflops sale clearance pandora outlet valentino outlet nike shoes coach outlet michael kors handbags canada goose jackets michael kors handbags canada goose outlet fitflops sale clearance ray ban sunglasses cheap oakley sunglasses polo outlet moncler outlet canada goose outlet adidas yeezy shoes coach outlet nfl jerseys oakley sunglasses wholesale polo ralph lauren kate spade outlet ray ban sunglasses canada goose jackets adidas outlet coach outlet pandora outlet michael kors outlet coach outlet coach outlet online cheap ray bans sunglasses coach outlet michael kors outlet lunette ray ban michael kors taschen michael kors outlet true religion outlet nike outlet christian louboutin outlet ugg boots pandora charms air jordan retro coach outlet mont blanc pens nhl jerseys red bottom shoes true religion outlet mbt shoes louboutin shoes michael kors outlet asics shoes canada goose jackets polo ralph lauren gucci outlet christian louboutin outlet coach outlet coach outlet canada goose rolex watches michael kors handbags coach factory outlet michael kors outlet pandora charms sale clearance canada goose outlet polo ralph lauren pas cher oakley sunglasses michael kors outlet giuseppe zanotti outlet canada goose outlet polo outlet canada goose outlet moncler jackets christian louboutin outlet coach factory outlet nike outlet coach outlet online nike outlet tory burch outlet kate spade handbags fred perry polo fred perry polo shirts red bottom shoes cheap ugg boots coach outlet cheap nfl jerseys coach outlet ralph lauren shirts true religion jeans christian louboutin boutique north face jackets prada handbags christian louboutin outlet nfl jerseys christian louboutin outlet pandora jewelry polo ralph lauren mcm handbags moncler outlet true religion outlet polo ralph lauren polo outlet cheap nfl jerseys coach outlet cheap ugg boots coach outlet online pandora jewelry pandora jewelry mbt shoes pandora outlet nfl jerseys pandora charms coach outlet uggs outlet coach outlet online longchamp outlet coach outlet nike air max ugg boots ugg boots michael kors handbags canada goose jackets adidas superstar shoes cheap snapbacks giuseppe zanotti outlet adidas shoes michael kors outlet red bottom shoes fitflops sale clearance pandora charms christian louboutin outlet canada goose outlet coach outlet polo ralph lauren fitflops sale clearance christian louboutin outlet coach outlet mulberry handbags oakley sunglasses michael kors outlet michael kors handbags gucci outlet michael kors outlet moncler outlet north face jackets mcm outlet puma outlet coach outlet nhl jerseys cheap jordans uggs outlet hermes belts manolo blahnik outlet cheap ugg boots michael kors outlet ralph lauren outlet ugg outlet north face jackets adidas outlet ralph lauren outlet polo ralph lauren ed hardy kate spade outlet ugg outlet canada goose jackets ralph lauren polo christian louboutin shoes uggs outlet canada goose jackets pandora charm ugg boots clearance cheap nfl jerseys canada goose jackets pandora jewelry cheap jerseys kate spade outlet yeezy boost ugg outlet michael kors outlet uggs outlet nike kyrie 3 off-white canada goose outlet pandora outlet lacoste outlet nike shoes michael kors outlet michael kors outlet oakley sunglasses tory burch outlet coach outlet ralph lauren outlet ugg boots ralph lauren outlet kate spade outlet polo ralph lauren christian louboutin outlet pandora outlet michael kors outlet ugg outlet coach outlet red bottoms michael kors outlet uggs canada ugg boots nike outlet polo ralph lauren uggs outlet coach outlet christian louboutin outlet converse adidas nmd pandora jewelry coach outlet true religion jeans yeezy boost 350 coach outlet polo outlet christian louboutin outlet fred perry outlet michael kors handbags oakley sunglasses ray ban sunglasses polo ralph lauren uggs outlet canada goose outlet canada goose outlet canada goose jackets michael kors handbags clarks shoes adidas yeezy pandora charms oakley sunglasses kate spade outlet prada outlet ferragamo shoes tory burch outlet valentino outlet polo outlet coach outlet online uggs canada true religion jeans canada goose outlet coach outlet online christian louboutin shoes pandora outlet pandora outlet michael kors outlet kate spade outlet michael kors uk michael kors outlet michael kors outlet canada goose jackets cheap jordans polo outlet ugg boots longchamp outlet michael kors outlet christian louboutin outlet michael kors outlet pandora outlet ray ban sunglasse supreme ugg boots michael kors outlet rolex watches kobe bryant shoes moncler outlet canada goose vans shoes michael kors outlet michael kors outlet kebirong20180928

xiaoou
Posted On: 11/15/2018 8:57:50 AM

ralph lauren adidas originals supreme uk polo outlet shoe carnival canada goose jackets snapback hats nike hyperdunk cheap nfl jerseys ralph lauren canada goose jackets tods shoes true religion jeans marc jacobs handbags north face ugg outlet air max 1 nike uk skechers sandals adidas superstar air jordan vetements clothing prada sunglasses yoga pants cheap mlb jerseys reebok shoes nike outlet baseball jersey cheap nfl jerseys wholesale hats jordans hollister outlet nine west shoes ugg boots bottega veneta scarpe mbt nike sb manchester united jersey philipp plein outlet jordan pas cher jordans michael kors handbags north face outlet valentino shoes saucony running shoes swarovski rings nfl jerseys versace clothing van cleef & arpels jewelry mcm bags nike flip-flops vans outlet coach outlet online valentino shoes coach purse vans shoes fingerlings monkey nike outlet coach outlet online adidas nmd ray ban sunglasses ralph lauren air jordan 3 timberland outlet basketball shoes cristiano ronaldo jersey polo ralph lauren christian louboutin shoes supreme clothing air jordan adidas shoes birkenstock sandals herve leger dresses puma slides nike blazer longchamp handbags michael kors handbags true religion jeans adidas outlet canada goose outlet ray ban sunglasses tiffany jewelry moncler jackets fila shoes canada goose outlet tiffany jewelry ugg boots maillot de foot oakley canada ralph lauren polo shirts prada handbags ralph lauren jimmy choo cheap nba jerseys breguet watches philipp plein outlet nike air huarache adidas yeezy rayban air max uggs outlet flipflops russell westbrook shoes burberry outlet store miu miu sunglasses givenchy handbags michael kors outlet clearance hermes belt polo ralph lauren uggs outlet christian louboutin shoes tag heuer watches oakley sunglasses air max 97 ralph lauren nike shox kd 10 belstaff jackets harden vol 2 louboutin shoes tom brady jersey russell wilson jersey ugg outlet arc'teryx clothing kobe shoes sophia webster shoes cheap mlb jerseys puma outlet fitflops oakley vault ugg boots yeezy 500 adidas ultra boost lebron 15 hermes bags wholesale nfl jerseys salvatore ferragamo shoes coach outlet undefeated shoes hermes bags michael kors taschen air max 2017 marcelo burlon coach outlet online jordans birkenstock sandals kate spade handbags red bottoms montblanc adidas football boots mac makeup supreme clothing nike air force visconti pens fitflop pandora jewelry ugg shoes dansko shoes miu miu shoes ??? ????? pelikan pens moncler outlet nfl jerseys wholesale timberland boots kate spade longchamp vendita maglie calcio tom ford sunglasses ralph lauren ralph lauren jeans pandora charms ugg sale air max plus louboutin outlet ugg boots soccer jerseys soldier 9 asics running shoes burberry handbags tory burch swarovski crystal malone souliers shoes supra shoes ugg outlet vans shoes ugg for men new balance shoes stuart weitzman shoes new balance oakley sunglasses maillot de foot soldier 10 christian louboutin supreme nike outlet store nike outlet nike free ray ban sunglasses pandora jewelry kyrie 2 coach outlet store coach factory outlet timberland ugg sale ugg outlet hermes belt coach outlet online coach outlet christian louboutin outlet oakley sunglasses nike factory nicholas kirkwood shoes pandora jewelry air jordan 11 mulberry handbags kd shoes bcbg dresses polo ralph lauren victoria's secret outlet cheap oakley sunglasses ysl handbags giuseppe zanotti shoes air max jordan 8 coach outlet ugg boots ugg boots kate spade nike mercurial superfly polo ralph lauren north face jackets converse shoes timberland boots jordan 5 ray ban sunglasses nike free run air jordan ugg outlet ugg sale ugg factory outlet rolex watches michael kors outlet ugg boots pandora charms mikimoto jewelry timberland boots russell westbrook jersey canada goose sale nfl jerseys uggs x-large clothing omega watches fitflops sale clearance ralph lauren ugg boots coach factory outlet mk purse coach factory outlet online Fußballtrikots günstig adidas jeremy scott supreme paris cheap soccer jerseys adidas nmd kate spade outlet ugg outlet ugg sale longchamp outlet flip-flops moncler outlet air jordan baseball bats ray bans nike revolution kobe 11 off-white tory burch sandals air jordan pandora charms fitflop onitsuka tiger superdry kd 8 pasotti ombrelli moncler jackets mont blanc pens ferragamo outlet ambassador 10 kate spade light up shoes christian louboutin shoes nike air max coach factory outlet ugg outlet persol sunglasses ralph lauren balenciaga triple s coach handbags ralph lauren nike air max cheap nfl jerseys adidas yeezy mishka clothing ray ban sunglasses ugg boots baby uggs flops lee jeans nhl jerseys basketball shoes prada puma fenty ugg outlet store nfl jerseys mizuno running shoes cheap nfl jerseys ugg australia beats by dre michael kors outlet moose knuckles jackets hermes belt coach outlet michael kors handbags columbia sportswear spalding basketball nike free run true religion jeans air max 270 michael kors outlet online michael kors outlet nike huarache north face outlet ralph lauren ray ban nike outlet nfl jerseys ugg outlet nike outlet breitling watches coach handbags moncler outlet nike socks longchamp handbags bvlgari rings ugg australia coach outlet canada goose outlet suicoke ronaldo jersey paul george shoes coach handbags kate spade handbags michael kors handbags canada goose jackets michael kors outlet clearance michael kors outlet clearance oakley sunglasses nike kyrie 3 ray ban versace bags christian louboutin moncler outlet jordan 4 mcm handbags camisetas fútbol jordan 12 converse hundreds clothing linda farrow sunglasses soldier 11 oakley sunglasses cheap pandora jewelry hogan outlet ugg outlet coach outlet online juicy couture air max 95 lebron 14 oakley sunglasses jordan 6 ralph lauren mbt shoes air max 90 jordan retro michael kors handbags canada goose jackets ralph lauren longchamp handbags manolo blahnik birkenstock sandals burberry outlet louboutin converse shoes soccer jersey mac cosmetics nike epic react flyknit barcelona jersey ray ban sunglasses ugg boots for men ray ban sunglasses nike cortez maglie calcio jimmy choo nobis jackets coach factory online burberry canada ugg clearance prada outlet online marc jacobs bags jordan xx9 nike shoes for men levi's jeans moncler outlet air max adidas wings montblanc pen ugg boots alexander mcqueen shoes tommy hilfiger polo shirts nike dunks ugg for women lululemon cartier jewelry ugg boots nike flight bonafide north face jackets jordan shoes omega watches columbia outlet wedding shoes air jordan 14 vans shoes audemars piguet tiffany bracelet prada handbags ugg sale adidas slides ray ban sunglasses nike lunarglide ferragamo shoes cheap nhl jerseys michael kors handbags ralph lauren uk y-3 shoes adidas outlet store michael kors uk nike tn canada goose jackets mac cosmetics ugg for kids replica watches coach outlet online new balance sandals lebron 13 nike outlet oakley sunglasses curry jersey tory burch outlet fußballtrikots ermäßigung tory burch shoes cheap mlb jerseys coach outlet online ugg outlet michael kors handbags soccer jerseys christian louboutin maui jim sunglasses christian louboutin air jordan monster headphones hermes birkin bag air force 1 nike running shoes coach outlet air max 2018 adidas flip flops balenciaga sandals michael kors outlet clearance ysl sunglasses under armour outlet jordan shoes tory burch bags parajumpers jackets north face outlet harden vol 1 nike roshe canada goose jackets lebron 15 cheap replica watches nfl jerseys kate spade purse oakley sunglasses wholesale nike factory ray ban canada goose outlet pandora jewelry canada ugg outlet nike roshe canada goose outlet true religion jeans dior handbags flip flops jordan shoes pandora jewelry canada air max ugg slippers adidas uk hermes outlet jordan 1 adidas outlet birkenstock outlet nike tennis converse shoes ugg boots longchamp outlet the north face ray ban kate spade outlet curry shoes soccer shirts camisetas de futbol baratas north face outlet tiffany jewelry ray bans dolce & gabbana under armour shoes balenciaga shoes supra shoes true religion uggs on sale ugg clearance moncler outlet christian louboutin longchamp handbags lululemon sale air max woolrich jackets versace sunglasses manolo blahnik ugg boots michael kors handbags adidas outlet nike presto canada goose coats christian louboutin michael kors outlet off-white shoes north face outlet vibram fivefingers nike dunks links of london coach outlet true religion jeans lebron james jersey coach outlet ray ban outlet stussy hoodie vapormax swarovski jewelry fjallraven kanken polo outlet coach outlet north face outlet yeezy shoes nike blazer ugg outlet coach handbags outlet cheap jordan shoes nike shoes teva sandals michael kors bags stan smith ysl makeup canada goose jackets police sunglasses celine outlet running shoes nike outlet store online 201811.15wengdongdong