<?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>PJB &#187; active directory</title>
	<atom:link href="http://www.pjbacolod.com/tag/active-directory/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pjbacolod.com</link>
	<description>PJB: TALES OF A TECH SHARK</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:10:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to configure Windows Active Directory logon scripts</title>
		<link>http://www.pjbacolod.com/2009/06/how-to-configure-windows-active-directory-logon-scripts.html</link>
		<comments>http://www.pjbacolod.com/2009/06/how-to-configure-windows-active-directory-logon-scripts.html#comments</comments>
		<pubDate>Fri, 05 Jun 2009 09:18:33 +0000</pubDate>
		<dc:creator>PJ</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.pjbacolod.com/?p=613</guid>
		<description><![CDATA[
Related posts:<ol>
<li><a href='http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html' rel='bookmark' title='How to call a batch file from within another batch file'>How to call a batch file from within another batch file</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are instances when you need to run a script or program every time a user logs into your Windows network. One way to automate this is to configure and assign a Windows logon script to a particular user or group account.</p>
<p>Enabling Windows logon scripts is a two-stage process. The first stage is to create the script itself, and the second stage is to assign the logon script to a domain user (or group) account.</p>
<p><strong>I.	Where to save the logon script:</strong></p>
<ol>
<li>Create your logon script and save it in the appropriate format (Example: logon.bat, logon.vbs).</li>
<li>Go to your domain controller and copy the script into the <strong>%SystemRoot%\SYSVOL\Sysvol\DomainName\Scripts</strong> local folder (Ex. C:\WINDOWS\sysvol\sysvol\ENTIIS.COM\SCRIPTS).</li>
</ol>
<p>This folder corresponds to the domain controller’s NETLOGON network share folder.</p>
<p>This makes the script accessible over the network via the <strong>\\ServerName\Netlogon</strong> network share folder.</p>
<p><a href="http://www.pjbacolod.com/wp-content/uploads/2009/06/screenshot-01.jpg"><img class="size-medium wp-image-614 alignnone" title="screenshot-01" src="http://www.pjbacolod.com/wp-content/uploads/2009/06/screenshot-01-300x226.jpg" alt="screenshot-01" width="300" height="226" /></a></p>
<p><strong>To summarize:</strong><br />
If your domain controller’s name “DC01”, and if you have a script named “logon.bat”, which is saved on DC01’s “C:\WINDOWS\sysvol\sysvol\ENTIIS.COM\SCRIPTS” folder, then you can access the script over the network by going to the “\\DC01\netlogon“ network share folder, or by simply running \\DC01\netlogon\logon.bat.</p>
<p class="MsoListParagraphCxSpFirst"><strong><span lang="FIL-PH"><span>II.<span> </span></span></span></strong><strong><span lang="FIL-PH">How to assign a logon script to a user or group:</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><span><span lang="FIL-PH"><span>1.<span> </span></span></span></span><span><span lang="FIL-PH">First, open &#8220;Active Directory Users and Computers&#8221; on the domain controller.</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span><span lang="FIL-PH"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/06/logonscript4.jpg"><img class="size-medium wp-image-616 alignnone" title="Active Directory Users and Computers" src="http://www.pjbacolod.com/wp-content/uploads/2009/06/logonscript4-211x300.jpg" alt="Active Directory Users and Computers" width="211" height="300" /></a><br />
</span></span>
</p>
<p class="MsoNormal"><span lang="FIL-PH"><span>2.<span> </span></span></span><span><span lang="FIL-PH">Now right click on the user you want to have the logon script and select the properties menu.</span></span></p>
<p class="MsoListParagraphCxSpFirst"><span lang="FIL-PH"><span>A properties dialog like the one shown below will appear. Select the &#8216;Profile&#8217; Tab</span><br />
</span>
</p>
<p class="MsoListParagraphCxSpMiddle">By default, if no exact network path is given, as shown in Figure 3, above, Active Directory will assume that the user profile logon script will be at the <strong>%SystemRoot%\SYSVOL\Sysvol\DomainName\Scripts</strong> folder.</p>
<p class="MsoListParagraphCxSpMiddle"><span lang="FIL-PH"><span>3.<span> </span></span></span><span lang="FIL-PH">Click <strong>Apply</strong>.</span></p>
<p class="MsoListParagraphCxSpLast"><span lang="FIL-PH"><span>4.<span> </span></span></span><span lang="FIL-PH">Click <strong>OK</strong>.</span></p>
<p class="MsoNormal"><span lang="FIL-PH">Once configured, the logon script will run (on the local machine where the user logged in) every time the user logs into the network using the corresponding account.</span></p>
<p class="MsoNormal"><span lang="FIL-PH">Note: You have to check if the user account used to log into the local machine has the appropriate rights to run or execute programs.</span></p>
<img src="http://www.pjbacolod.com/?ak_action=api_record_view&id=613&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html' rel='bookmark' title='How to call a batch file from within another batch file'>How to call a batch file from within another batch file</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.pjbacolod.com/2009/06/how-to-configure-windows-active-directory-logon-scripts.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

