Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Servers in an Active Directory SiteContent of List Servers in an Active Directory Site.vbsMD5 Hash: 26E3C26450B08905FEEE9B19231B7495 |
||
' Description: Lists servers in a specified Active Directory site.
strSiteRDN = "cn=Ga-Atl-Sales" Set objRootDSE = GetObject("LDAP://RootDSE") strConfigurationNC = objRootDSE.Get("configurationNamingContext") strServersPath = "LDAP://cn=Servers," & strSiteRDN & ",cn=Sites," & _ strConfigurationNC Set objServersContainer = GetObject(strServersPath) For Each objServer In objServersContainer WScript.Echo "Name: " & objServer.Name Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |