Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Active Directory SitesContent of List Active Directory Sites.vbsMD5 Hash: 2B203C3BF0B5AF9EF621854BCE7E6D84 |
||
' Description: Lists Active Directory sites.
Set objRootDSE = GetObject("LDAP://RootDSE") strConfigurationNC = objRootDSE.Get("configurationNamingContext") strSitesContainer = "LDAP://cn=Sites," & strConfigurationNC Set objSitesContainer = GetObject(strSitesContainer) objSitesContainer.Filter = Array("site") For Each objSite In objSitesContainer WScript.Echo "Name: " & objSite.Name Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |