![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Servers in an Active Directory Site
|
||
' 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 :: |