|
The default first site is usually one of
the first objects created after the sites container itself. The USNCreated
attribute should be pretty small. For Windows 2000 it should be less than 3500.
For a fresh Windows 2003 AD, it should be less than 4200. I had pretty good luck with the following
query in the config container: (&(objectclass=site)(USNCreated<=3500))
for our production Windows forest which started out life as Windows 2000. ((&(objectclass=site)(USNCreated<=4200)) Wook From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coleman, Hunter Not elegant, but fairly quick: take
Robbie's script (http://www.rallenhome.com/books/adcookbook/src/11.02-list_sites.vbs.txt),
add in objSite.WhenCreated to the output list, and write it out to a file. Then
sort by date... ' This VBScript code lists all of the site
objects. '
--------------------------------------------------------------- Const ForReading = 1, ForWriting = 2,
ForAppending = 8 wscript.echo "The script has
started" 'Create the output file set objRootDSE = GetObject("LDAP://RootDSE") From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of At
some point in the dim, dark past, the default site was renamed (I assume it was
not removed!) Does
anyone have a quick and easy way to determine which of the existing sites was
once the default site? [It has been suggested that I look at the create date
for all the sites and that the oldest one will be the default site :) I have
>100 sites so need something more elegant/quicker. ] Any
suggestions more than welcome. Thanks,
============================================================================== |
Title: How to determine which is the default site
- RE: [ActiveDir] How to determine which is the defau... Lee, Wook
- RE: [ActiveDir] How to determine which is the ... Lee, Wook
- RE: [ActiveDir] How to determine which is the ... Ruston, Neil
- RE: [ActiveDir] How to determine which is the ... Jorge de Almeida Pinto
- RE: [ActiveDir] How to determine which is the ... Lee, Wook
- RE: [ActiveDir] How to determine which is the ... Ruston, Neil
