![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Rename an Active Directory Site
|
||
' Description: Renames an Active Directory site.
strOldSiteRDN = "cn=Default-First-Site-Name" strNewSiteRDN = "cn=Ga-Atl-Sales" Set objRootDSE = GetObject("LDAP://RootDSE") strConfigurationNC = objRootDSE.Get("configurationNamingContext") strSitesContainer = "LDAP://cn=Sites," & strConfigurationNC strOldSitePath = "LDAP://" & strOldSiteRDN & ",cn=Sites," & strConfigurationNC Set objSitesContainer = GetObject(strSitesContainer) objSitesContainer.MoveHere strOldSitePath, strNewSiteRDN | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |