<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Andy McDonald &#187; Sites</title>
	<atom:link href="http://www.andymcdonald.co.uk/tag/sites/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andymcdonald.co.uk</link>
	<description>IT Contractor and Junior Football Coach</description>
	<lastBuildDate>Fri, 10 Jun 2011 09:08:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Testing Active Directory Sites</title>
		<link>http://www.andymcdonald.co.uk/2009/03/23/testing-active-directory-sites/</link>
		<comments>http://www.andymcdonald.co.uk/2009/03/23/testing-active-directory-sites/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 14:26:07 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Active Directory 2008]]></category>
		<category><![CDATA[Sites]]></category>

		<guid isPermaLink="false">http://www.andymcdonald.co.uk/?p=96</guid>
		<description><![CDATA[OK, so you have implemented Active Directory Sites and Services, the next question is usually &#8220;How do I test it is working?&#8221;
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 [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so you have implemented Active Directory Sites and Services, the next question is usually &#8220;How do I test it is working?&#8221;</p>
<p>I do this by running a script which will determine which site the computer you are on can be located in.</p>
<p>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</p>
<p><span style="color: #15326b;">Set objADSysInfo = CreateObject(&#8221;ADSystemInfo&#8221;)<br />
WScript.Echo &#8220;Your current site name = &#8221; &amp; objADSysInfo.SiteName</span></p>
<p>I then run the vbs file using cscript</p>
<p>cscript mysite.vbs</p>
<p>here is the output from the command prompt :-</p>
<p>C:\Documents and Settings\Administrator&gt;cscript mysite.vbs<br />
Microsoft (R) Windows Script Host Version 5.6<br />
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.</p>
<p>Your current site name = Site-1</p>
<p>C:\Documents and Settings\Administrator&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.andymcdonald.co.uk/2009/03/23/testing-active-directory-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

