Title: How to determine which is the default site
IF THAT SITE HAS NOT BEEN DELETED:
 
Use ADFIND from JOEWARE.NET
 
D:\TOOLS>adfind -h w2k3dc01 -b "CN=Sites,CN=Configuration,DC=W2K3DOMAIN,DC=LAN"
-f "objectcategory=Site" whencreated uSNcreated
 
AdFind V01.26.00cpp Joe Richards ([EMAIL PROTECTED]) February 2005
 
Using server: W2K3DC01.W2K3DOMAIN.LAN
Directory: Windows Server 2003
 
dn:CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=W2K3DOMAIN,DC=LAN
>whenCreated: 20041115220249.0Z
>uSNCreated: 4112
 
dn:CN=NEW-SITE,CN=Sites,CN=Configuration,DC=W2K3DOMAIN,DC=LAN
>whenCreated: 20050413160858.0Z
>uSNCreated: 92419
 

2 Objects returned
 
D:\TOOLS>
 
USE THE FOLLOWING COMMAND:
adfind -h <YOUR_DC> -b "CN=Sites,CN=Configuration,DC=<YOUR_DOMAIN>,DC=<YOUR_DOMAIN>" -f "objectcategory=Site" whencreated uSNcreated > SITES.TXT
 
* Import SITES.TXT into EXCEL (TAB delimited)
* Sort the column in ascending order
* See which uSNCreated and whenCreated has the lowest value
* Open sites.txt and search for the lowest values and you should see to which site these belong
 
Cheers
Jorge
 
 
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ruston, Neil
Sent: Wednesday, April 13, 2005 15:54
To: '[email protected]'
Subject: [ActiveDir] How to determine which is the default site

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,
neil

==============================================================================
This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Reply via email to