OK, so you have implemented Active Directory Sites and Services, the next question is usually “How do I test it is working?”
I do this by running a script which will determine which site the computer you are on can be located in.
In this example I have created my sites and configured them with the respective subnets, then added a new machine to the domain I then log on to the new server and open a command prompt and create a new vbs file (mysite.vbs) and add the following lines of text
Set objADSysInfo = CreateObject(”ADSystemInfo”)
WScript.Echo “Your current site name = ” & objADSysInfo.SiteName
I then run the vbs file using cscript
cscript mysite.vbs
here is the output from the command prompt :-
C:\Documents and Settings\Administrator>cscript mysite.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Your current site name = Site-1
C:\Documents and Settings\Administrator>