<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>4sysops &#187; Tips</title>
	<atom:link href="http://4sysops.com/archives/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://4sysops.com</link>
	<description>For Windows Administrators</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:23:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<image>
    <title>4sysops</title>
    <url>http://4sysops.com/4sysops-rss.png</url>
    <link>http://4sysops.com</link>
    <width>143</width>
    <height>49</height>
    <description>4sysops.com</description>
    </image>		<item>
		<title>Troubleshooting Group Policy &#8211; Part 6: Common problems</title>
		<link>http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/</link>
		<comments>http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 20:20:00 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7950</guid>
		<description><![CDATA[In troubleshooting Group Policy issues over the years, I tend to see the same problems over and over. In the last part of this <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">series</a> I will share some of those experiences.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In troubleshooting Group Policy issues over the years, I tend to see the same problems over and over. In the last part of this <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">series</a> I will share some of those experiences.</i></strong></p>
<h2>DNS</h2>
<p>Your DCs should be pointing to each other for DNS and your clients should be pointing to the DCs. If your clients are using other DNS servers, you’re going to have problems at some point. If you are, for some reason, required to use third-party DNS for external lookups, put those DNS servers in as Root Hints servers instead of pointing clients or DCs at them.</p>
<h2>Just Say NO to top level policies</h2>
<p>The Default Domain Policy should be your only top level GPO unless you have a really good reason to add more. In addition, the Default Domain Policy should be edited very sparingly. Why? Anything you link at the top level applies to EVERYTHING in your Domain. Do you really want all of your servers and Admin accounts locked down with the same policies you give to everyday workstations and standard user accounts? Decide on an organizational structure for your OUs where you can link your GPOs instead of linking them at the top level.</p>
<h2>Group Policy doesn’t apply to Groups</h2>
<p>Despite the name, you can’t apply Group Policy to a Group directly. GPOs can only apply to users and computers. If you need it to apply to a group of users or computers, you’ll need to remove Authenticated Users from the Security Filtering for the GPO and then put your group there to apply it to your subset of objects.</p>
<h2>Getting a 5 minute hang at logon?</h2>
<p>You’ve got a logon script problem. The default timeout for scripts is 5 minutes.</p>
<h2>Group Policy Preferences not applying in XP (or other older OS’es)?</h2>
<p>Is the CSE installed? Pre-Windows 7 OS’es will ignore Group Policy Preferences unless the <a href="http://www.microsoft.com/download/en/details.aspx?id=3628">Client Side Extensions</a> are installed.</p>
<h2>Enforced policies &amp; block inheritance</h2>
<p>If there are GPOs at a higher level that you don’t want to apply, you can use the Block Inheritance option on an OU to stop those GPO’s from applying. To combat this, a GPO can be set as Enforced so that it can’t be overridden at a lower level. If you can avoid both of these options, do so. They can cause major headaches.</p>
<h2>Is something disabled?</h2>
<p>This is something you’ll see in gpresult.exe output. When you right-click on a GPO, the Link Enabled option should be checked. If it isn’t, the icon next to the GPO will be lighter than other GPO’s. Also, make sure that the GPO Status in the Details tab of a GPO is set to Enabled.</p>
<h2>Are you applying settings to the right OS version?</h2>
<p>If you’re running a mixed environment of XP, Vista, and 7 like just about everyone, make sure that the policy that you’re trying to apply wasn’t intended to a different OS. When you’re editing a GPO, each option will have a “Supported on” area that tells you which operating systems are supported.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/Group-Policy-Supported-Windows-version.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/Group-Policy-Supported-Windows-version.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="Group Policy - Supported Windows version" src="http://4sysops.com/wp-content/uploads/2012/02/Group-Policy-Supported-Windows-version_thumb.png" alt="Group Policy - Supported Windows version" width="604" height="552" border="0" /></a></p>
<p align="center"><em>Group Policy &#8211; Supported Windows version</em></p>
<h2>Permissions</h2>
<p>This is also something that will show up in gpresult.exe (seeing a trend here?). By default, the Security Filtering for a new GPO is set to Authenticated Users; that’s everybody including Domain Users and Domain Computers. There’s no reason to change it unless you only want that GPO to apply to a subset of objects. You can put Deny’s in the Delegation, but I won&#8217;t usually recommend it.</p>
<h2>File/share permissions</h2>
<p>If you’re storing scripts outside of Sysvol, deploying software, mapping drives/printers, or using Folder Redirection, file and share permissions are your biggest enemies. Double, triple, and quadruple check them and they could still be wrong. If you’re having problems accessing a network resource, try connecting to it manually to see if you still can’t connect. The Event Log will also tell you if your user/computer can’t access the resource.</p>
<h2>Precedence</h2>
<p>Lowest linked GPO wins. If there is a top level policy set by a Domain Admin and 16 sub-OUs down there is a conflicting policy set by a departmental Admin, the lowest linked policy will win out unless the Enforced option has been checked. When in doubt, go to the OU in the GPMC and check the Group Policy Inheritance tab and you’ll be able to see the order they are processed.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/Group-Policy-Precedence.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/Group-Policy-Precedence.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Group Policy - Precedence" src="http://4sysops.com/wp-content/uploads/2012/02/Group-Policy-Precedence_thumb.png" alt="Group Policy - Precedence" width="604" height="338" border="0" /></a></p>
<p align="center"><em>Group Policy Precedence </em></p>
<h2>Slow links</h2>
<p>I’ve seen a few networks where the clients would detect that they were on slow links even if they weren’t. You’ll see in your gpresult.exe output if the client thinks it is on a slow link. If this is a continuing problem, you can disable slow link detection in Group Policy in Computer Config, Policies, Administrative Templates, System, Group Policy, Group Policy slow link detection, and set it to 0.</p>
<h2>Loopback processing</h2>
<p>No user polices? Check to see if <a href="http://4sysops.com/archives/group-policy-loopback-processing-part-1-usage-scenarios/">Loopback processing</a> is set to Replace.</p>
<h2>Misplaced Objects</h2>
<p>Is the user or computer where they&#8217;re supposed to be? I helped someone troubleshoot a problem for three days only to discover that the user account was in the wrong OU. Moved the user, refreshed the policy, problem resolved.</p>
<h2>Apply policy to the correct object type</h2>
<p>Make sure that you’re applying user polices to users and computer policies to computers. Separating your users and computers into separate OUs makes this easier to keep track of.</p>
<h2>Folder Redirection oddities</h2>
<p>Folder Redirection can do some weird things if you don’t watch out your settings. If you’re migrating to a new server name and moving all of the files yourself, make sure that you disable the option to move the users’ files to the new location. If not, you’re going to wind up with some angry users with missing files.</p>
<p>If the move option is disabled in Windows 7, the old folders will still be left behind even if a user logs in to the computer for the first time. You’ll either need to delete those folders or change the option to move the contents of the folder.</p>
<p>If you’re redirecting the My Documents folder, make sure that you mind the naming convention that the GPMC uses. If your file server is still using the old “My Documents,” the GPMC may try to change that to just “Documents.”</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/" title="Troubleshooting Group Policy &#8211; Part 1: User communication (January 30, 2012)">Troubleshooting Group Policy &#8211; Part 1: User communication</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</title>
		<link>http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/</link>
		<comments>http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 18:25:11 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7943</guid>
		<description><![CDATA[Of course, Group Policy relies on Active Directory. Part 5 in your <a href="https://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">Group Policy troubleshooting series</a> covers typical Active Directory problems that prevent Group Policy from working properly.]]></description>
			<content:encoded><![CDATA[<p><strong><i>Of course, Group Policy relies on Active Directory. Part 5 in your <a href="https://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">Group Policy troubleshooting series</a> covers typical Active Directory problems that prevent Group Policy from working properly.</i></strong></p>
<h2>DNS</h2>
<p>If you’ve gotten to the point where it looks like Active Directory (AD) is the problem, you’re most likely looking at some kind of replication issue. By far, the most common cause of AD replication problems (short of failed DCs) is DNS. Are you using AD integrated DNS? Are your DCs pointing to each other for DNS? Are the firewalls between each DC open on the correct ports?</p>
<h2>Event Log</h2>
<p>So the obvious place to look first is the Event Log. If you’re having replication problems, you’ll have errors in the Event Log, most likely a lot of them. Take a look here first for anything actionable.</p>
<h2>GPOTool</h2>
<p>GPOTool.exe is a handy utility that Microsoft puts into the <a href="http://www.microsoft.com/download/en/details.aspx?id=24745">Microsoft Product Support Reports suite</a> of utilities. It is buried a bit, but after extracting the executable before installing the tools, <a href="http://www.verboon.info/index.php/2011/07/get-the-latest-version-of-the-gpotool-exe/">GPOTool.exe</a> can be found in your computer’s temp.</p>
<p>Running GPOTool.exe from one of your DCs without any switches will run through all of your GPOs and verify that your Group Policy Templates and Containers are synced and consistent across all of the DCs. You can also use the /gpo option if you just want to check one specific GPO.</p>
<p align="center"><em><a href="http://4sysops.com/wp-content/uploads/2012/02/GPOTool.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/GPOTool.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="GPOTool" src="http://4sysops.com/wp-content/uploads/2012/02/GPOTool_thumb.png" alt="GPOTool" width="604" height="388" border="0" /></a></em></p>
<p align="center"><em>GPOTool</em></p>
<h2>Sysvol Replication</h2>
<p>Are you still using FRS for Sysvol replication? Move to <a href="http://blogs.technet.com/b/askds/archive/2009/05/01/sysvol-migration-from-frs-to-dfsr-whitepaper-released.aspx">DFSR</a>.</p>
<p>If you’re stuck on FRS, Microsoft has a great tool for troubleshooting FRS replication issues called <a href="http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&amp;id=3660">Ultrasound</a>.</p>
<p>If you’ve moved on to DFSR, you can run diagnostics by running the DFS Management snap-in, go to Replication, Domain System Volume, right-click and choose Create Diagnostic Report. Choose Health Report and you can stick mostly to the defaults. On the Options tab, make sure to change your Reference Member to the PDC Emulator (or the machine you typically connect to for editing Group Policy).</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/DFS-Diag.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/DFS-Diag.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="DFS Diag" src="http://4sysops.com/wp-content/uploads/2012/02/DFS-Diag_thumb.png" alt="DFS Diag" width="604" height="410" border="0" /></a></p>
<p align="center"><em>DFS Diag</em></p>
<p>As you can see, my one DC isn’t having replication problems (thank goodness!). If it was, you would get some nice errors or warning that you could use to track down the root cause of the problem.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/DFS-Diag-Report.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/DFS-Diag-Report.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="DFS Diag Report" src="http://4sysops.com/wp-content/uploads/2012/02/DFS-Diag-Report_thumb.png" alt="DFS Diag Report" width="604" height="434" border="0" /></a></p>
<p align="center"><em>DFS Diag Report</em></p>
<p>In the last post of this series I will cover a few common problems.</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/" title="Troubleshooting Group Policy &#8211; Part 1: User communication (January 30, 2012)">Troubleshooting Group Policy &#8211; Part 1: User communication</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Troubleshooting Group Policy]]></series:name>
	</item>
		<item>
		<title>Troubleshooting Group Policy &#8211; Part 4: Client problems</title>
		<link>http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/</link>
		<comments>http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 18:55:52 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7935</guid>
		<description><![CDATA[Client issues are often cause for Group Policy problems. In part 4 of this <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">series</a>, I will discuss tools such as gpupdate and gpresult which helo you to tacke these problems.]]></description>
			<content:encoded><![CDATA[<p><strong><i>Client issues are often cause for Group Policy problems. In part 4 of this <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">series</a>, I will discuss tools such as gpupdate and gpresult which helo you to tacke these problems.</i></strong></p>
<h2>When all else fails, reboot!</h2>
<p>There are a few changes in Group Policy that require a reboot for the computer or a logoff/logon for the user. If you have clients that go long periods without rebooting or users that just lock their computers at the end of the day, this could be why some policies aren’t updating. If you’re deploying software to computers, using Folder Redirection, or have startup/shutdown scripts, you’ll need your computers to restart occasionally. The same goes for logon/logoff scripts, if you’re relying on scripts in your policy for changes, users will need to actually log out on occasion to get changes. If you can, time your policy changes that require a reboot with Patch Tuesday since the computers will, most likely, reboot to apply patches.</p>
<h2>Wait… or run gpupdate</h2>
<p>Group Policy refreshes every 90 minutes with a randomized offset of 30 minutes. If you change a policy right now, it could be as much as 2 hours before all of your clients get the policy. (Depending on how long Sysvol replication takes in your AD (or if you have a DC on the other side of a slow connection), it could possibly be longer.) If you made the change an hour ago and clients aren’t getting the setting, that’s completely normal. On the client, you can run gpupdate.exe to update changes that have been made to Group Policy. Running a gpupdate.exe /force will ignore any processing optimizations and reapply all of the Group Policy. Or, you can just keep on waiting until all of your computers complete their regular refresh.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/gpupdate.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/gpupdate.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="gpupdate" src="http://4sysops.com/wp-content/uploads/2012/02/gpupdate_thumb.png" alt="gpupdate" width="604" height="301" border="0" /></a></p>
<p align="center"><em>gpupdate</em></p>
<p>Group Policy should refresh on its own without you having to manually run gpupdate.exe on every computer. Running the command manually is a great way for testing or to make sure a user/computer gets the change immediately, but shouldn’t be a necessity on every system. If gpupdate.exe hangs or generates an error, you may need to move on to the Event Log.</p>
<h2>Gpresult</h2>
<p>Gpresult.exe is a <s>great</s> invaluable tool for troubleshooting Group Policy that has been improved in Windows 7 and Windows Server 2008 R2. The output of gpresult.exe contains a wealth of information like what GPOs are applying to the computer/user, if the GPO was filtered, if the GPO is empty, whether or not the computer is on a slow link, security group memberships, OS version, site name, roaming and local profile locations, which DC the policy was retrieved from, and much more. Basically, gpresult.exe takes the RSoP data and turns it into something that a human being can actually read.</p>
<p>If you’re running the latest and greatest, you can run <strong>gpresult.exe /h nameofyourreport.html </strong>and get a pretty HTML report about what GPO’s are applying to the current user that looks just like the Setting tab in the GPMC. You may notice that the Computer area will be blank. Run the same command with an Elevated Command Prompt to see the Computer Area.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/gpresult.exe-HTML-output.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/gpresult.exe-HTML-output.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="gpresult.exe HTML output" src="http://4sysops.com/wp-content/uploads/2012/02/gpresult.exe-HTML-output_thumb.png" alt="gpresult.exe HTML output" width="604" height="504" border="0" /></a></p>
<p align="center"><em>gpresult HTML output</em></p>
<p>If you don’t want pretty reports or want the output as text, you can run gpresult.exe with different options to get the output in text. The /r option will give you a pretty limited report that includes everything except the actual settings that are being applied. Personally, I like the verbose output with the /v option. By default, the output will be shown in the Command Prompt window. You can run <strong>gpresult.exe /v &gt;&gt; verbose_output.txt</strong> to save the output into a text file. If you want total information overload, /z provides “super-verbose” information.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/02/gpresult.exe-text-output.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/02/gpresult.exe-text-output.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="gpresult.exe text output" src="http://4sysops.com/wp-content/uploads/2012/02/gpresult.exe-text-output_thumb.png" alt="gpresult.exe text output" width="604" height="410" border="0" /></a></p>
<p align="center"><em>gpresult verbose text output</em></p>
<h2>Resultant Set of Policy (Logging)</h2>
<p>Resultant Set of Policy (Logging) is available in the GPMC by right-clicking on a user or computer object, click All Tasks, and click Resultant Set of Policy (Logging). I personally prefer running gpresult.exe on the client side. RSoP Logging requires that the management station that you’re using have the ability to communicate with the remote computer which isn’t always available in every environment. Even if I don’t have physical access to or the ability to remote control the computer, I can have the end user email me the output of gpresult.exe for troubleshooting. I’ve even known people to stick a script on the computer that the user just has to click on to get the output without any pesky command line typing. RSoP Logging also gives the same output as RSoP planning, so it can be a little hard to look at. The output of gpresult.exe is much easier to look at and search.</p>
<h2>Next steps</h2>
<p>So now you know you have a problem and you have enough information to hopefully track it down. First, did the GPO apply? And, if it wasn’t, was it denied? You can get some of this in the Event Log, but it is usually easier to check your gpresult.exe output since both pieces of information should be there. If it didn’t apply or got denied, check the Event Log for more information about why the GPO didn’t apply or was denied. The potential number of possible possibilities you’ll see there are too great to discuss here, but you should get something good enough to search for online to resolve the problem. The typical causes are things like the Security Filtering, link not being enabled, GPO Status may have user or computer disabled, and issues with <a href="http://4sysops.com/archives/how-to-scope-group-policy-with-wmi-filters/">WMI filtering</a>.</p>
<p>If the GPO did apply, but you’re missing settings, try a gpupdate.exe just to see if the client hasn’t refreshed. You’ll also want to refer to the gpresult.exe output here too. You may have a system on a slow link, a setting that isn’t applicable to the current OS, another setting taking precedence, loopback processing that is disabling the setting, or client side extension (usually Group Policy Preferences or third-party products) problems. If the output from gpresult.exe doesn’t tell you where the problem is, the Event Log should.</p>
<p>In the next post I will discuss <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/">Group Policy Active Directory problems</a>.</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/" title="Troubleshooting Group Policy &#8211; Part 1: User communication (January 30, 2012)">Troubleshooting Group Policy &#8211; Part 1: User communication</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Troubleshooting Group Policy]]></series:name>
	</item>
		<item>
		<title>Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</title>
		<link>http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/</link>
		<comments>http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 19:20:42 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7927</guid>
		<description><![CDATA[Group Policy settings are not applied? In this third part of our <a href="https://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">Group Policy troubleshooting series</a> you will learn how to identify the source of the problem.]]></description>
			<content:encoded><![CDATA[<p><strong><i>Group Policy settings are not applied? In this third part of our <a href="https://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">Group Policy troubleshooting series</a> you will learn how to identify the source of the problem.</i></strong></p>
<p>So you’ve got computers or users with Group Policy problems. Where do you start? Troubleshooting any problem is usually a process of elimination. A lot of people want to run directly to the Event Log of the computer having the problem. Before jumping on the first computer where Group Policy is not applied, I suggest asking a few questions first so you can eliminate possible causes. A little detective work up front can make tracking down the actual problem much easier and may save you some time digging through logs.</p>
<h2>Is this a local system or a remote (probably VPN-connected) system?</h2>
<p>Some policies behave differently depending on whether a user/computer is connected directly to a LAN or remotely over a slower connection. For a remote user, the computer may have identified the connection as a slow link and may not be enforcing all settings properly. Additionally, some settings like Folder Redirection and scripts only run during a reboot and may require pre-logon VPN access to network resources like file servers or they won’t run. If the user is connected remotely, you may need to recommend that they connect to the VPN prior to logging into AD so their policy can process.</p>
<h2>Were any changes made to Group Policy recently?</h2>
<p>So this is probably the biggest no-brainer of all of the questions. If someone made a change, did the reported problem matched the change that was made? Was the change tested before it was rolled out to everyone?</p>
<h2>Are there other cases where Group Policy is not applied?</h2>
<p>If the issue is isolated to one person or one computer, you may be looking at an individual client issue. Do you have some users/computers getting the policy and others that aren’t? You may be looking at a clients that haven’t refreshed yet or a possibly even an AD issue.</p>
<h2>If it is a subset, is there something unique about them?</h2>
<p>Do any of the users/computer have anything in common that may relate to the problem they are having? Are all of the users/computers located at a specific AD Site? Are all of the computers running the same OS? Are all of the computers on the same subnet? Are they in the same building? Are all the users assigned to the same file server?</p>
<h2>Does the user have Admin rights?</h2>
<p>I haven’t seen it a lot, but a user with Admin rights can cause problems for Group Policy processing. Did the user change the assigned DNS servers? If you can’t get to the DCs, you can’t process Group Policy. Did the user go into the Registry Editor and make changes to any of the Registry keys related to Group Policy? Did the user make changes to the local firewall? Has the user installed any other kind of application that could be interfering with Group Policy?</p>
<h2>Is the computer having hardware problems?</h2>
<p>A bad stick of memory or a failing hard drive can play all sorts of tricks on a computer. I can’t say I’ve personally seen Group Policy processing issues because of hardware problems, but I have had someone try to blame a problem on Group Policy that ended up being a bad stick of memory.</p>
<h2>Can you replicate the problem?</h2>
<p>If someone else logs into the computer, do they have the same issue? If the user logs into another computer, does that person still have the same problem? If you drop a test user or test computer into the same OU and refresh the policy, are the Group Policy settings applied correctly?</p>
<h2>Are there any outages known to IT?</h2>
<p>This is another no brainer&#8230; If you’re having replication issues between your DCs that you or someone else is trying to resolve, it makes no sense to spend time troubleshooting Group Policy problems until the replication issues are resolved. If there are network issues that are disabling clients&#8217; access to DCs, those network issues need to be resolved first.</p>
<h2>Have IT infrastructure changes been made recently?</h2>
<p>Was a file or print server replaced? Were any DCs upgraded or replaced recently? Has any network hardware like switches or firewalls been replaced/upgraded recently? All of these can potentially cause issues with Group Policy processing.</p>
<p>At this point, you are hopefully armed with enough information to help you track down the source of the problem if Group Policy settings were not applied. In my upcoming articles, I’ll discuss what you can do on the client and server side to track down and resolve your problem.</p>
<p>In my next post I will cover <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/">Group Policy problems that are related to client issues</a>.</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/" title="Troubleshooting Group Policy &#8211; Part 1: User communication (January 30, 2012)">Troubleshooting Group Policy &#8211; Part 1: User communication</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Troubleshooting Group Policy]]></series:name>
	</item>
		<item>
		<title>Troubleshooting Group Policy &#8211; Part 2: Test and deploy</title>
		<link>http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/</link>
		<comments>http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 20:05:34 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7923</guid>
		<description><![CDATA[You test your Group Policy changes before you push them out, right? This second part of <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">six</a> shows you how you can test Group Policy settings before you deploy them.]]></description>
			<content:encoded><![CDATA[<p><strong><i>You test your Group Policy changes before you push them out, right? This second part of <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/">six</a> shows you how you can test Group Policy settings before you deploy them.</i></strong></p>
<p>I can’t stress enough how important it is to test out your new Group Policy settings before you start pushing them out to end users. How do you know they will work correctly in the real world if you haven’t tested them in a controlled lab setting first?</p>
<h2>Creating a Group Policy test environment</h2>
<p>In larger environments, IT departments may have a Test Active Directory Forest just for testing things like Group Policy. Unless you’re applying Group Policy to thousands or tens of thousands of computers, that may be overkill for your organization. Here’s what I typically do to test:</p>
<p>In my Active Directory (AD) organization, I like to keep a “Test” Organizational Unit (OU) that mimics a typical OU for a department. In that OU, I keep the same sub-OU layout, a few test user accounts, and test computers (usually virtual machines) where I can put any of my test Group Policy before I make it available to end users.</p>
<p>Within the Group Policy Management Console (GPMC), it is very easy to make copies of Group Policy Objects (GPOs) by going to the Group Policy Objects container in the Group Policy Management Console (GPMC), right-click on the GPO, choose Copy, and then right-click again, and choose Paste. I usually make a copy of the original GPO and include “TEST” in the name and link it inside of my Test OU. This gives me an OU where I can make changes to my policy without causing problems for existing users or computers.</p>
<p align="center"><a href="http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-GPMC-with-Test-GPOs1.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-GPMC-with-Test-GPOs1.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Test Group Policy - GPMC with Test GPOs" src="http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-GPMC-with-Test-GPOs_thumb1.png" alt="Test Group Policy - GPMC with Test GPOs" width="604" height="448" border="0" /></a></p>
<p align="center"><em>GPMC with Test GPOs</em></p>
<p>Should I use physical computers for testing Group Policy or virtual machines? Personally, I prefer to test with VM’s. Why? If you mess up and lock down a computer to the point that it becomes unusable, you may have to re-image the computer. With a VM, you can rely on snapshots to go back in time without having to spend time or effort fixing the problem. Just be aware that if you decide to use Microsoft Virtual PC, the Undo Disks functionality is limited to rolling back to the last state of the VM. If you’re running Hyper-V, that is typically my choice for VM testing. If not, you can either spend the money for <a href="http://www.vmware.com/products/workstation/">VMware Workstation</a> or get <a href="http://www.virtualbox.org/">VirtualBox</a> for free.</p>
<h2>Test real world scenarios</h2>
<p>When you test your new policies, ensure that you’re also testing against computers and/or users that had the old policies applied and that have been in use by real people. In a lab setup, operating systems have this habit of having cleanly applied images that have never been used. User accounts and the files and settings that account have access to are pristine and haven’t been customized or changed. Some user policies can be affected by previous settings in the user’s profile. The biggest place where this happens is Folder Redirection. You’ll want to make sure that the settings that you’re changing take both new logons and existing logons into consideration. A good way to do this is to have some users that can test your changes when you’re almost ready to roll them out to everyone.</p>
<h2>Stage changes</h2>
<p>Depending on the change you’re making, you may not want to roll it out to every user or computer at the same time. For major changes, I usually like to drop a few user and/or computer objects into the Test OU and allow those objects to run for a few days. In addition to being a good way to test how the change works in the real world, it gives me the chance to see if anything is going to break or cause problems for end users before the change is rolled out to everyone. It is much easier to deal with a few unhappy customers that are having problems than a lot!</p>
<h2>“Dog food” your Group Policy</h2>
<p>As an IT department, I highly recommend “eating your own dog food.” From a Group Policy perspective, that means that you should have the same GPO’s applied to your day-to-day user account and computer that all of the other users in the organization are getting. It should also mean that new policies should get applied to you first. The quickest way to see how a Group Policy change will impact end users is to use it yourself every day. How do you know that a particular script makes logons slow if it doesn’t apply to you every day? How do you know that the screensaver timeout is too low unless you’re constantly having to log back in because you have the setting, too? How do you know that disabling certain settings hamper a user’s ability to work unless you have to deal with the same issue?</p>
<h2>Resultant Set of Policy (Planning)</h2>
<p>I’m mentioning the RSoP in Planning mode last because I personally have never gotten much usage out of it. In Active Directory Users and Computers, you can right-click on a User or Computer object, click All Tasks, and click Resultant Set of Policy (Planning) to see how policies will apply to users and computers. RSoP Planning will let you pick a user and computer and then select options like Site, slow network, Loopback mode, group memberships, and WMI filters to see what policies will be applied to a user and computer.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-RSoP-Wizard1.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-RSoP-Wizard1.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Test Group Policy - RSoP Wizard" src="http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-RSoP-Wizard_thumb1.png" alt="Test Group Policy - RSoP Wizard" width="528" height="457" border="0" /></a></p>
<p align="center"><em>RSoP Planning Wizard</em></p>
<p>The problem? The output that you’re given makes it impossible to see the results of your policies. You’ll have to manually dig through everything. It is probably quicker to have a VM, drop it into your Test OU, and just test out the policies yourself to see if you’re getting the results you want. The gpresults.exe tool (which we’ll get to in a later article) gives much easier to read results.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-RSoP-Planning-Results1.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-RSoP-Planning-Results1.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Test Group Policy - RSoP Planning Results" src="http://4sysops.com/wp-content/uploads/2012/01/Test-Group-Policy-RSoP-Planning-Results_thumb1.png" alt="Test Group Policy - RSoP Planning Results" width="604" height="417" border="0" /></a></p>
<p align="center"><em>RSoP Planning Results</em></p>
<p>In the next part of this series I will outline how you can identify a Group Policy problem.</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/" title="Troubleshooting Group Policy &#8211; Part 1: User communication (January 30, 2012)">Troubleshooting Group Policy &#8211; Part 1: User communication</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<series:name><![CDATA[Troubleshooting Group Policy]]></series:name>
	</item>
		<item>
		<title>Troubleshooting Group Policy &#8211; Part 1: User communication</title>
		<link>http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/</link>
		<comments>http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 18:25:45 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7905</guid>
		<description><![CDATA[In this series of six parts, I will show you how to prevent and solve Group Policy problems. In this first part, I will outline why communication with your users is important.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this series of six parts, I will show you how to prevent and solve Group Policy problems. In this first part, I will outline why communication with your users is important.</i></strong></p>
<p>Group Policy is a great tool that can make your life a lot easier as a systems administrator. But, what do you do when computers or users aren’t getting the correct policies? In this series, we’ll take a look at things you can do to prevent problems, common problems people have with Group Policy, and steps you can take to troubleshoot misbehaving Group Policy.</p>
<p>“An ounce of prevention is worth a pound of cure.” &#8212; Benjamin Franklin. Those words definitely ring true for deploying new Group Policy settings. There are a number of things you can do before deploying changes that may cost you some time up front, but will definitely save you time and grief down the road.</p>
<h2>Know your customer</h2>
<p>How well do you know the business processes of the group that will be getting your Group Policy changes? If you’re planning on implementing Group Policy for the first time or making significant changes, these changes can potentially have ramifications on the business operations of the group that will be receiving the policy.</p>
<p>Take <a href="http://4sysops.com/archives/set-the-default-forced-screen-saver-in-group-policy-logon-scr-in-windows-7/">screensaver settings</a> for example. Turning on the screensaver and locking the computer after 15 minutes may be perfectly reasonable in an office setting, but could cause major problems on a warehouse or factory floor where employees need to constantly see something on a screen, but don’t necessarily interact with the keyboard or mouse. On the other hand, 15 minutes could be way too high for a computer in a public location like a reception or customer service desk where someone could potentially walk in off the street and start using a computer that has been idle for a few minutes.</p>
<p>Engage your customer and find out how their department operates. Do they have software they use that no other department uses that could be affected by what you do? Are there things their employees are doing on their computers that they want stopped like setting personal wallpapers? Are the settings that you’re planning to implement going to cause problems for their business operations? Asking a few questions up front can potentially prevent things from breaking because of the unforeseen consequences of changes.</p>
<h2>Communicating changes</h2>
<p>If you’re making a change that is going to be noticed by your customers, you may need to prepare them for that. I helped someone roll out a company logo wallpaper and screensaver to around a hundred computers over a weekend. The change had been requested by the owner of the company to standardize their computers. Unfortunately, the change wasn’t communicated to the employees. On Monday morning, things were crazy for the lone IT person. Numerous employees logged support requests and several even complained to the company owner about the change. Ultimately, the policy change was left in place; but, a quick email from the owner about the change before it was made would have eliminated a lot of confusion from the employees and support requests to IT.</p>
<p>Even if the change isn’t necessarily going to be noticed by the typical user, you still need to let someone know that a change is taking place. Most Group Policy changes are fairly silent when they occur; the average user probably won’t know that something has been changed even if they are having problems. Having a few insiders in the office that are aware of the change can be very helpful once end users start encountering problems and may give you the opportunity to tweak the policy before the problem spreads to other users.</p>
<p>In my next post I will give some tips of how to <a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/">test Group Policy deployments</a>.</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshooting-group-policy-part-1-user-communication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Troubleshooting Group Policy]]></series:name>
	</item>
		<item>
		<title>How to scope Group Policy with WMI filters</title>
		<link>http://4sysops.com/archives/how-to-scope-group-policy-with-wmi-filters/</link>
		<comments>http://4sysops.com/archives/how-to-scope-group-policy-with-wmi-filters/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 18:40:08 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[wmi]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7903</guid>
		<description><![CDATA[In this article you will learn how to create Group Policy Objects (GPOs) by leveraging the power of Windows Management Instrumentation (WMI).]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this article you will learn how to create Group Policy Objects (GPOs) by leveraging the power of Windows Management Instrumentation (WMI).</i></strong></p>
<p>The traditional method for scoping Group Policy Objects (GPOs) in Windows Server 2008 Active Directory is to perform the following actions:</p>
<ul>
<li>Ensure that the GPO is <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa374339(v=vs.85).aspx">linked</a> to the appropriate Active Directory object (for instance, site, domain, OU)</li>
<li>Use <a href="http://www.windowsnetworking.com/articles_tutorials/group-policy-security-filtering.html">security filtering</a> to ensure that the GPO affects only specified user and/or computer accounts</li>
</ul>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Security-filtering-a-GPO.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Security-filtering-a-GPO.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Security filtering a GPO" src="http://4sysops.com/wp-content/uploads/2012/01/Security-filtering-a-GPO_thumb.png" alt="Security filtering a GPO" width="492" height="336" /></a></p>
<p align="center"><em>Security filtering a GPO</em></p>
<p>What many Windows systems administrators do not know (or may not want to know due to the learning curve involved) is that we can also use <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394582(v=vs.85).aspx">Windows Management Instrumentation (WMI)</a> filtering to dynamically scope <a href="http://technet.microsoft.com/en-us/windowsserver/bb310732">Group Policy</a>.</p>
<p>WMI is extremely powerful in GPO application because we can target systems based upon hardware and software attributes such as CPU architecture, operating system, free disk space, BIOS version, and so forth.</p>
<p>It should be noted that because your WMI filters are parsed during every Group Policy refresh, WMI filters in GPOs are best reserved for time-limited scenarios to avoid undue performance impact on your domain controllers.</p>
<p>For instance, you may want to deploy a GPO with a WMI filter that scopes the policy for Windows 7 clients that have a particular hotfix applied in order to undo the installation. After your machines have ingested and processed the GPO, you can simply unlink the WMI filter or disable the GPO entirely.</p>
<h2>Creating a WMI filter</h2>
<p>To build your first WMI filter, fire up the Group Policy Management Console and expand your domain to expose the <strong>WMI Filters</strong> container. Next, right-click <strong>WMI Filters</strong> and select <strong>New</strong> from the shortcut menu.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Creating-a-New-WMI-Filter.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Creating-a-New-WMI-Filter.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Group Policy - Creating a New WMI Filter" src="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Creating-a-New-WMI-Filter_thumb.png" alt="Group Policy - Creating a New WMI Filter" width="362" height="350" /></a></p>
<p align="center"><em>Creating a New WMI Filter</em></p>
<p>In the <strong>New WMI Filter</strong> dialog box, add a name and (optionally) a description for your new WMI filter. Next, we can build the actual <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394606(v=vs.85).aspx">WMI Query Language (WML)</a> query by clicking <strong>Add</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/New-WMI-Filter.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/New-WMI-Filter.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="New WMI Filter" src="http://4sysops.com/wp-content/uploads/2012/01/New-WMI-Filter_thumb.png" alt="New WMI Filter" width="491" height="356" /></a></p>
<p align="center"><em>New WMI filter</em></p>
<p>WMI filters consist of two components: (a) the WMI namespace; and (b) the WQL query. The vast majority of Windows systems administration-related WMI classes are contained within the <strong>root\CIMv2</strong> namespace.</p>
<p>If you have used the <a href="http://www.w3schools.com/sql/default.asp">Structured Query Language (SQL)</a> before, then you will be instantly comfortable with the basic syntax of the WQL language. If not, then you have a bit of a learning curve in front of you.</p>
<p>Please check out the following links for some useful assistance in writing WQL:</p>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/cc779036%28WS.10%29.aspx">WMI Filtering using GPMC</a></li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&amp;id=12028">Scriptomatic 2.0 Utility</a></li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&amp;id=24045">WMI Administrative Tools</a></li>
</ul>
<p>In the following example screenshot, my WQL query targets domain systems that run Windows XP Professional.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/A-WQL-query.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/A-WQL-query.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="A WQL query" src="http://4sysops.com/wp-content/uploads/2012/01/A-WQL-query_thumb.png" alt="A WQL query" width="406" height="289" /></a></p>
<p align="center"><em>A WQL query</em></p>
<p>Note that a single WMI filter can consist of more than one WQL query statement. Once you’ve saved your work, your new filter(s) will appear in the <strong>WMI Filters</strong> node in Group Policy Management Console.</p>
<p><strong>NOTE</strong>: Active Directory replication ensures that both your WMI filters as well as your GPOs are available on all domain controllers.</p>
<h2>Linking a WMI filter to a GPO</h2>
<p>To link a WMI filter to a GPO using the GPMC, view the properties of the target GPO. Next, open the WMI Filtering drop-down list, which is now populated with any previously created WMI filters. Select the appropriate filter from the list—once you propagate the GPO to your domain, you are finished!</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Linking-a-WMI-filter-to-a-GPO.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Linking-a-WMI-filter-to-a-GPO.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Linking a WMI filter to a GPO" src="http://4sysops.com/wp-content/uploads/2012/01/Linking-a-WMI-filter-to-a-GPO_thumb.png" alt="Linking a WMI filter to a GPO" width="571" height="125" /></a></p>
<p align="center"><em>Linking a WMI filter to a GPO</em></p>
<p>You are probably familiar with the old carpenter’s aphorism “Measure twice, cut once.” This truism is especially relevant for us Windows systems administrators with respect to Group Policy application.</p>
<p>We are faced with the frightening question: How can we know in advance if our WMI filter works? Well, to that end I would like to point you to a nifty free utility by the GPO Guy called the <a href="http://www.gpoguy.com/FreeTools/FreeToolsLibrary/tabid/67/agentType/View/PropertyID/93/Default.aspx">WMI Filter Validation Utility</a>.</p>
<p>The way this tool works is simple: we first have it analyze our GPO infrastructure and report metadata concerning any linked and unlinked WMI filters. This interface is shown in the next screen capture.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/The-WMI-Filter-Validator.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/The-WMI-Filter-Validator.png','',event,300,75)"><img style="margin: 0px 6px; display: inline;" title="The WMI Filter Validator" src="http://4sysops.com/wp-content/uploads/2012/01/The-WMI-Filter-Validator_thumb.png" alt="The WMI Filter Validator" width="600" height="454" /></a></p>
<p align="center"><em>The WMI Filter Validator</em></p>
<p>We can then test a WMI filter by right-clicking its entry in the tool’s interface and selecting Validate from the shortcut menu. This launches a wizard whereby we can target a specific domain member computer.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Validating-a-WMI-filter.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Validating-a-WMI-filter.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Validating a WMI filter" src="http://4sysops.com/wp-content/uploads/2012/01/Validating-a-WMI-filter_thumb.png" alt="Validating a WMI filter" width="496" height="388" /></a></p>
<p align="center"><em>Validating a WMI filter</em></p>
<p>We must remember that a WMI filter is essentially a Boolean True/False test in order for Active Directory to determine whether to apply a given GPO to a given computer. The WMI Filter Validation Utility works wonderfully to test this equation in advance.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/WMI-validation-results.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/WMI-validation-results.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="WMI validation results" src="http://4sysops.com/wp-content/uploads/2012/01/WMI-validation-results_thumb.png" alt="WMI validation results" width="306" height="154" /></a></p>
<p align="center"><em>WMI validation results</em></p>
<h2>Conclusion</h2>
<p>At this point you should have a solid idea as to what WMI filters are and how we can use them to dynamically scope our GPOs. You also know how to test WMI filter application prior to GPO deployment.</p>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/how-to-scope-group-policy-with-wmi-filters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Group Policy Preferences best practices</title>
		<link>http://4sysops.com/archives/group-policy-preferences-best-practices/</link>
		<comments>http://4sysops.com/archives/group-policy-preferences-best-practices/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 19:10:40 +0000</pubDate>
		<dc:creator>Kyle Beckman</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[group policy]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7885</guid>
		<description><![CDATA[This article introduces Group Policy Preferences, explains how they differ from Group Policy settings, compares Preferences to logon scripts, and covers a few Group Policy Preferences gotchas.]]></description>
			<content:encoded><![CDATA[<p><strong><i>This article introduces Group Policy Preferences, explains how they differ from Group Policy settings, compares Preferences to logon scripts, and covers a few Group Policy Preferences gotchas.</i></strong></p>
<p>The introduction of Group Policy Preferences into Group Policy seems to have quite a few people confused. I think that confusion has been compounded by all of the people who skipped Windows Vista, stayed with Windows XP, and are just now starting to implement Windows 7 on the desktop.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Preferences.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Preferences.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Group Policy Preferences" src="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Preferences_thumb.png" alt="Group Policy Preferences" width="604" height="472" border="0" /></a></p>
<p align="center"><em>Group Policy Preferences</em></p>
<p>So what’s all the excitement about anyway? Assuming you’re one of those organizations that skipped Windows Vista, you’ve probably been living in the Windows XP Group Policy Management Console (GPMC) for a while. The first time you fire up the GPMC in Windows 7 and edit a Group Policy Object (GPO), you probably notice a new section under both Computer Configuration and User Configuration. In addition to Policies, you now have Preferences. What are these new “Preferences” and what do they have to do with Policies? First, let’s start by talking about Group Policy.</p>
<h2>Group Policy introduction</h2>
<p>Group Policy is a way for you to control most of the settings and configurations that exist for a computer or for any user that can log into the computer. Screensaver settings? There’s a <a href="http://4sysops.com/archives/set-the-default-forced-screen-saver-in-group-policy-logon-scr-in-windows-7/">Policy</a> for that. Logon/logoff scripts? There’s a Policy for that too! Just about any setting or change you can make by hand can be made in a Group Policy. If you’re using Active Directory and are hand-configuring options for every computer and/or user that you support, or hand-mapping drive letters or printers, or even doing something simple like changing the wallpaper, you should seriously consider putting some of that effort toward learning how to use Group Policy so that your computers and users can be configured automatically.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Group-Policy.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Group Policy" src="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy_thumb.png" alt="Group Policy" width="604" height="395" border="0" /></a></p>
<p align="center"><em>Group Policy</em></p>
<p>Adding the computer to Active Directory gives you the ability to edit these Policies at the Domain level and assign them to computer and user objects in AD. So what do you need to do to start managing Group Policy for your Windows 7 and Windows 2008 R2 systems? Install the <a href="http://www.microsoft.com/download/en/details.aspx?id=7887">latest GPMC</a> and start editing.</p>
<h3>Group Policy Preferences</h3>
<p>Group Policy Preferences was originally a product called PolicyMaker from Desktop Standard. Microsoft acquired Desktop Standard back in 2006 and, starting with Windows Server 2008, began integrating PolicyMaker into Windows. Windows Server 2008, Windows 7, and Windows Server 2008 R2 already have what they need to use Preferences out of the box. If you still have Windows XP, Vista, or Server 2003, the Client Side Extension (CSE) that will allow you to use Preferences is available as a <a href="http://technet.microsoft.com/en-us/library/cc731892(WS.10).aspx">download</a>. Still running Windows 2000? Sorry, there’s no CSE download for Windows 2000.</p>
<p>Assuming you’re using AD, have the latest GPMC, and are running the latest Windows OS or have installed the CSE for the older version of Windows, here are some of the things you can do with Group Policy Preferences:</p>
<ul>
<li>Create and make changes to environment variables</li>
<li>Copy files to the local file system</li>
<li>Create/delete folders on the file system</li>
<li>Make changes to .ini files</li>
<li>Modify the Registry</li>
<li>Create/modify/delete network shares</li>
<li>Map network drives</li>
<li>Create/modify/delete shortcuts</li>
<li>Create ODBC entries</li>
<li>Make changes to devices in the Device Manager</li>
<li>Make changes to file associations</li>
<li>Create and make changes to local user accounts</li>
<li>Create and make changes to local groups</li>
<li>Create VPN and dial-up connections</li>
<li>Manage user application settings (requires plug-in written for the application)</li>
<li>Modify power options</li>
<li>Manage local printers</li>
<li>Map network printers</li>
<li>Manage scheduled tasks</li>
<li>Manage services</li>
<li>Manage Regional Options</li>
<li>Make changes to Start Menu settings</li>
<li>Make changes to some IE settings</li>
</ul>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Preferences-Settings.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Preferences-Settings.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Group Policy Preferences - Settings" src="http://4sysops.com/wp-content/uploads/2012/01/Group-Policy-Preferences-Settings_thumb.png" alt="Group Policy Preferences - Settings" width="604" height="432" border="0" /></a></p>
<p align="center"><em>Group Policy Preferences &#8211; Settings</em></p>
<h3>Group Policy Preferences vs. logon scripts</h3>
<p>If you’re experienced with Group Policy, you’re probably noticing that a lot of the options mentioned above are also available in the Policy area of a GPO or can be managed by logon scripts. One of the great things about Windows is there’s always more than one way to do something. If you or your IT shop’s expertise is in scripting, you don’t need to reinvent the wheel and start from scratch if you already have infrastructure that is working for you. But what if you don’t have all of those scripts already written? Preferences are a great way to accomplish the same goal without having to spend a lot of time or money learning something completely new.</p>
<p>Scripting isn’t something you can usually learn overnight. It’s a big hurdle for a lot of people. It’s also something that doesn’t usually have a standard. Ask three people to write a script to map a few drives based on group membership, fix permissions on a folder, and make a registry edit, and you’re probably going to end up with three wildly different scripts. Is that bad? Not necessarily, but if your scripts have a thousand lines of code (or more), you probably sweat every time someone makes an edit. One misplaced character or typo and the whole thing can stop working. And you do have every line of those scripts documented in the event that the person who wrote them is unavailable, right?</p>
<p>Preferences also follow the same refresh rules for Group Policy (every 90 minutes with a random offset of up to 30 minutes). With scripts, they only run at system startup/shutdown and user logon/logoff. Group Policy Preferences also have built-in logging to the Windows Event Log, another area where scripts can lag behind unless the scripts are very robust.</p>
<h3>Group Policy Preferences vs. Group Policy settings</h3>
<p>How do Group Policy Preferences compare to comparable Group Policy settings? The biggest difference between the two is enforcement. With a Policy, settings are enforced; in most cases, the user interface is either grayed out or gone completely so that the user can’t change the setting. With Preferences, the setting is applied once and can be changed later by the user. One caveat: if you’re using Replace a lot in your Preferences, your users are probably going to figure out that if they make a change to certain settings, those settings are going to change back in an hour or so when Policy refreshes for the computer.</p>
<p>Preferences also aren’t limited by the need for <a href="http://4sysops.com/archives/group-policy-templates-in-windows-vista-admx-files-replace-adm-files/">ADM or AMDX files</a>. If you have an application that requires a license file to be copied to the computer, all you need to do is configure a Preference to copy the file. If you need to set an option that is stored in the Registry, such as the network name for a database server, you can browse the local Registry and create a Preference with the setting. Preferences don’t require your applications to have any awareness of Group Policy. As long as the configuration can be edited in the Registry, be made by copying a file over, you can use Preferences.</p>
<h3>Group Policy Preferences gotchas</h3>
<p>Policies are stored in a separate Policy area of the Registry. If you remove a setting in Policy, it will revert back to the original setting on the computer (or in the user’s account). With Preferences, the setting will stay unless you explicitly create a Preference that deletes it.</p>
<p>Mapping printers? Make sure you set the options for the Point and Print Restrictions for either the Computer (at Computer Configuration &gt; Policies &gt; Administrative Templates &gt; Printers) or the User (at User Configuration &gt; Policies &gt; Administrative Templates &gt; Control Panel &gt; Printers). If you don’t, your printer mappings will fail if the computer is unable to copy print drivers to the local system.</p>
<p>Make sure the <a href="http://technet.microsoft.com/en-us/library/cc731892(WS.10).aspx">Client Side Extension for Group Policy Preferences</a> is installed for XP, Vista, and 2003. If the CSE isn’t installed, those versions of Windows will completely ignore the settings in your Preferences when processing Group Policy.</p>
<p>Replace mode isn’t necessarily your friend. I’ve been burned by Replace mode several times. <span style="text-decoration: underline;">I can’t underscore enough that you should use Replace sparingly</span>. Replace usually has the effect of running a Delete and then a Create. For example, if you map printers with the Replace option, Group Policy will delete the connection and reconnect to the printer. That may not sound like a big deal, but if your user wants that printer to be his/her default, you’ll have problems. Every time the Replace command runs, the user will lose that printer as the default if they have other printers on the system. I’ve also found that using Replace when you’re creating a local user account causes that user account’s SID to be regenerated.</p>
<p>If user options aren’t working correctly, you might need to check the “Run in logged-on user’s security context (user policy option).” Preferences run as the System account. Preferences that use network resources, such as mapping printers or network drives, need the user’s privileges to run properly. Checking this box ensures that the proper credentials are used.</p>
<p>Copying files? Check your network share permissions. If the local computer is getting the file, you’ll need to make sure that the Domain Computer has at least read access to the network share. The same is true if the user’s security context will be copying the file; make sure the user has at least read access.</p>
<p>Last, but not least, Microsoft maintains a list of currently available <a href="http://support.microsoft.com/kb/2590914/">hotfixes for Group Policy</a>. There is a section specifically for Preferences that may be of help if you’re having issues with a specific feature.</p>
Author: Kyle Beckman
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-6-common-problems/" title="Troubleshooting Group Policy &#8211; Part 6: Common problems (February 6, 2012)">Troubleshooting Group Policy &#8211; Part 6: Common problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-5-active-directory-problems/" title="Troubleshooting Group Policy &#8211; Part 5: Active Directory problems (February 3, 2012)">Troubleshooting Group Policy &#8211; Part 5: Active Directory problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-4-client-problems/" title="Troubleshooting Group Policy &#8211; Part 4: Client problems (February 2, 2012)">Troubleshooting Group Policy &#8211; Part 4: Client problems</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-3-group-policy-not-applied/" title="Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied? (February 1, 2012)">Troubleshooting Group Policy &#8211; Part 3: Group Policy not applied?</a> (0)</li>
	<li><a href="http://4sysops.com/archives/troubleshooting-group-policy-part-2-test-and-deploy/" title="Troubleshooting Group Policy &#8211; Part 2: Test and deploy (January 31, 2012)">Troubleshooting Group Policy &#8211; Part 2: Test and deploy</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/group-policy-preferences-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MDT Workbench and Windows deployment</title>
		<link>http://4sysops.com/archives/mdt-workbench-and-windows-deployment/</link>
		<comments>http://4sysops.com/archives/mdt-workbench-and-windows-deployment/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 19:05:45 +0000</pubDate>
		<dc:creator>Mike Taylor</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[deployment]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7865</guid>
		<description><![CDATA[The third part in this <a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/">series about MDT (Microsoft deployment toolkit)</a> covers the basics of Windows deployment.]]></description>
			<content:encoded><![CDATA[<p><strong><i>The third part in this <a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/">series about MDT (Microsoft deployment toolkit)</a> covers the basics of Windows deployment.</i></strong></p>
<h2>MDT Workbench</h2>
<p>MDT has two main sections within the Workbench: Information Center and Deployment Shares. Information Center contains links to documentation, online links (news), and components, where you download software. The other section is where you can create, populate, and manage deployment shares.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MDT-2012-workbench.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MDT-2012-workbench.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="MDT 2012 workbench" src="http://4sysops.com/wp-content/uploads/2012/01/MDT-2012-workbench_thumb.png" alt="MDT 2012 workbench" width="604" height="184" border="0" /></a></p>
<p align="center"><em>MDT 2012 workbench</em></p>
<p>The first task you do is right-click the Deployment Share node and create a new deployment share, using the Deployment Share Wizard. The path must exist already, but you can use a network UNC, local disk, or USB drive. Completing the wizard will share the path, create the following sub-directories, and copy files into tools, scripts, and control:</p>
<ul>
<li>$OEM$</li>
<li>Applications</li>
<li>Backup</li>
<li>Boot</li>
<li>Captures</li>
<li>Control</li>
<li>Operating Systems</li>
<li>Out-of-Box Drivers</li>
<li>Packages</li>
<li>Scripts</li>
<li>Tools</li>
<li>USMT</li>
</ul>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MDT-Windows-deployment-Deployment-Share-Wizard.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MDT-Windows-deployment-Deployment-Share-Wizard.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="MDT Windows deployment - Deployment Share Wizard" src="http://4sysops.com/wp-content/uploads/2012/01/MDT-Windows-deployment-Deployment-Share-Wizard_thumb.png" alt="MDT Windows deployment - Deployment Share Wizard" width="604" height="497" border="0" /></a></p>
<p align="center"><em>Deployment Share Wizard</em></p>
<p>In the Workbench itself, you will see the following elements appear underneath your new deployment share:</p>
<ul>
<li>Applications for importing productivity software</li>
<li>Operating Systems for each OS</li>
<li>Out-of-box drivers to provide drivers not available in the native OS</li>
<li>Packages updates and hotfixes</li>
<li>Task-sequences where you create step-by-step rules to automate the build</li>
<li>Advanced configuration where you can create a database with more granular rules</li>
</ul>
<p>Applications, operating systems, packages, and out-of-box drivers are all empty and link directly to the directories of the same name. Task-sequences links to the control directory, which is where MDT keeps all the rules and configuration files for your deployment using XML files and two INI files called customsettings.ini and boot.ini.</p>
<p>If using a virtual machine for your build, you need to enable “file and printer sharing” on the host machine. You are now ready to build your OS deployment.</p>
<h2>Building a deployment</h2>
<p>The steps to build an OS deployment are simple and involve lots of right-clicking! The process is:</p>
<ol>
<li>Right-click “Operating systems” and import your OS. It will import with a long name, so rename it to whatever you want.
<a href="http://4sysops.com/wp-content/uploads/2012/01/Step-1-Import-Operating-System-wizard.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Step-1-Import-Operating-System-wizard.png','',event,300,75)"><img style="background-image: none; margin: 5px auto 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Step 1 - Import Operating System wizard" src="http://4sysops.com/wp-content/uploads/2012/01/Step-1-Import-Operating-System-wizard_thumb.png" alt="Step 1 - Import Operating System wizard" width="554" height="456" border="0" /></a></li>
<li>Right-click “Task-sequences” and choose “standard client” in the wizard.
<a href="http://4sysops.com/wp-content/uploads/2012/01/Step-2-Standard-client-task-sequence.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Step-2-Standard-client-task-sequence.png','',event,300,75)"><img style="background-image: none; margin: 5px auto 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Step 2 - Standard client task-sequence" src="http://4sysops.com/wp-content/uploads/2012/01/Step-2-Standard-client-task-sequence_thumb.png" alt="Step 2 - Standard client task-sequence" width="554" height="455" border="0" /></a></li>
<li>Edit the task-sequence to allow updates from both Windows update steps (under State Restore.
<a href="http://4sysops.com/wp-content/uploads/2012/01/Step-3-Standard-client-task-sequence.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Step-3-Standard-client-task-sequence.png','',event,300,75)"><img style="background-image: none; margin: 5px auto 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Step 3 - Standard client task-sequence" src="http://4sysops.com/wp-content/uploads/2012/01/Step-3-Standard-client-task-sequence_thumb.png" alt="Step 3 - Standard client task-sequence" width="554" height="492" border="0" /></a></li>
<li>VirtualPC 2007 has a bug that reports the CPU speed as 2-4MHz. The default requirement is 800MHz, so the deployment will fail at the “Validate” step. To fix this, enter the minimum speed as 12 (MHz), and un-tick the check box. (See page 7 of the <a href="http://download.microsoft.com/download/b/3/a/b3a89fae-f7bf-4e7c-b208-223b991e9c30/Release%20Notes.docx">release notes</a>).
FYI: ZTIBIOS checks the BIOS against a BIOS blacklist, ztibioscheck.xml.
<a href="http://4sysops.com/wp-content/uploads/2012/01/Step-4-Validate-hardware.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Step-4-Validate-hardware.png','',event,300,75)"><img style="background-image: none; margin: 5px auto 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Step 4 - Validate hardware" src="http://4sysops.com/wp-content/uploads/2012/01/Step-4-Validate-hardware_thumb.png" alt="Step 4 - Validate hardware" width="554" height="492" border="0" /></a></li>
<li>Right-click the deployment share and choose “Update Deployment Share” to generate the source.
<a href="http://4sysops.com/wp-content/uploads/2012/01/Step-5-Update-deployment-share.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Step-5-Update-deployment-share.png','',event,300,75)"><img style="background-image: none; margin: 5px auto 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="Step 5 - Update deployment share" src="http://4sysops.com/wp-content/uploads/2012/01/Step-5-Update-deployment-share_thumb.png" alt="Step 5 - Update deployment share" width="496" height="353" border="0" /></a></li>
</ol>
<p>The result is a bootable ISO in the boot directory of your share. Boot a new virtual machine with this ISO attached; it will connect to the share and run your task-sequence, as in the screenshot below:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Windows-installation-with-MDT.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Windows-installation-with-MDT.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Windows installation with MDT" src="http://4sysops.com/wp-content/uploads/2012/01/Windows-installation-with-MDT_thumb.png" alt="Windows installation with MDT" width="294" height="216" border="0" /></a><a href="http://4sysops.com/wp-content/uploads/2012/01/MDT-task-sequence-wizard.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MDT-task-sequence-wizard.png','',event,300,75)"><img style="background-image: none; margin: 0px 6px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="MDT task sequence wizard" src="http://4sysops.com/wp-content/uploads/2012/01/MDT-task-sequence-wizard_thumb.png" alt="MDT task sequence wizard" width="294" height="216" border="0" /></a></p>
<p align="center"><em>MDT task sequence wizard</em></p>
<p>Note that deployment shares are entirely independent. This means you can create new shares for different departments, for example.</p>
Author: Mike Taylor
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/how-to-install-the-mdt-microsoft-deployment-toolkit/" title="MDT (Microsoft Deployment Toolkit) prerequisites and add-ons (January 20, 2012)">MDT (Microsoft Deployment Toolkit) prerequisites and add-ons</a> (0)</li>
	<li><a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/" title="Introduction to the Microsoft Deployment Toolkit (MDT) (January 19, 2012)">Introduction to the Microsoft Deployment Toolkit (MDT)</a> (0)</li>
	<li><a href="http://4sysops.com/archives/raffle-manageengine-desktop-central-part-2-features/" title="Raffle: ManageEngine Desktop Central &#8211; Part 2: Features (December 7, 2011)">Raffle: ManageEngine Desktop Central &#8211; Part 2: Features</a> (2)</li>
	<li><a href="http://4sysops.com/archives/deployment-toolkit-part-2-driver-deployment-tools/" title="Deployment toolkit Part 2: Driver deployment tools (December 2, 2011)">Deployment toolkit Part 2: Driver deployment tools</a> (0)</li>
	<li><a href="http://4sysops.com/archives/deployment-toolkit-part-1-os-deployment-tools/" title="Deployment toolkit &#8211; Part 1: OS deployment tools (November 28, 2011)">Deployment toolkit &#8211; Part 1: OS deployment tools</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/mdt-workbench-and-windows-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MDT (Microsoft Deployment Toolkit) prerequisites and add-ons</title>
		<link>http://4sysops.com/archives/how-to-install-the-mdt-microsoft-deployment-toolkit/</link>
		<comments>http://4sysops.com/archives/how-to-install-the-mdt-microsoft-deployment-toolkit/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 18:30:33 +0000</pubDate>
		<dc:creator>Mike Taylor</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[deployment]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7846</guid>
		<description><![CDATA[The second part of the <a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/"> Microsoft Deployment Toolkit (MDT) series</a> describes all the things you need to get started with OS deployment.]]></description>
			<content:encoded><![CDATA[<p><strong><i>The second part of the <a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/"> Microsoft Deployment Toolkit (MDT) series</a> describes all the things you need to get started with OS deployment.</i></strong></p>
<p>Before you even bother installing MDT, I suggest you install the MDT prerequisites listed in the following table, in order. For XP, you also need to install PowerShell.</p>
<h2>MDT requirements</h2>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="168"><strong>Requirements</strong></td>
<td valign="top" width="84"><strong>Size</strong></td>
<td valign="top" width="316"><strong>Download Link</strong></td>
</tr>
<tr>
<td valign="top" width="168"><strong>WAIK 3.0</strong></td>
<td valign="top" width="84">1.3GB</td>
<td valign="top" width="316"><span style="text-decoration: underline;"><a href="http://www.microsoft.com/download/en/details.aspx?id=5753">KB3AIK_EN.ISO</a></span></td>
</tr>
<tr>
<td valign="top" width="168"><strong>WAIK Supplement for Windows 7 SP1 only</strong></td>
<td valign="top" width="84">1.3GB</td>
<td valign="top" width="316"><span style="text-decoration: underline;"><a href="http://www.microsoft.com/download/en/details.aspx?id=5188">waik_supplement_en-us.iso</a></span></td>
</tr>
<tr>
<td valign="top" width="168"><strong>PowerShell 2.0 – new since MDT Update 1</strong></td>
<td valign="top" width="84">1MB</td>
<td valign="top" width="316"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=60cb5b6c-6532-45e0-ab0f-a94ae9ababf5">Management framework</a> (for XP only)</td>
</tr>
<tr>
<td valign="top" width="168"><strong>Configuration Manager 2007 toolkit</strong></td>
<td valign="top" width="84">1MB</td>
<td valign="top" width="316"><a href="http://www.microsoft.com/download/en/details.aspx?id=9257">ConfigMrgTools.msi</a></td>
</tr>
<tr>
<td valign="top" width="168"><strong>MDT print-ready docs</strong></td>
<td valign="top" width="84"></td>
<td valign="top" width="316"><a href="http://www.microsoft.com/download/en/details.aspx?id=25175">Word versions of the help file</a></td>
</tr>
<tr>
<td valign="top" width="168"><strong>MDT 2010 update 1</strong></td>
<td valign="top" width="84">1GB</td>
<td valign="top" width="316"><a href="http://www.microsoft.com/download/en/details.aspx?id=25175">MDT</a></td>
</tr>
<tr>
<td valign="top" width="168"><strong>%temp% drive space</strong></td>
<td valign="top" width="84">5GB</td>
<td valign="top" width="316">n/a</td>
</tr>
</tbody>
</table>
<p>Note that you only need the WAIK supplement if you are deploying Windows 7 SP1 or Windows Server 2008 R2, SP1. Sadly, there is no install feature for it. You have to resort to the command line:</p>
<p>xcopy &lt;source path&gt; &#8220;C:\Program Files\Windows AIK\Tools\PETools&#8221; /ERDY</p>
<p>I recommend mounting the ISO or just extracting the files to avoid burning a DVD. If you installed the WAIK elsewhere, change the path.</p>
<h2>Build content</h2>
<p>Finally, there’s the build content to obtain and organize, which you will import into MDT. It’s best to do this first, according to the breakdown in the following table.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="149"><strong>Image component</strong></td>
<td valign="top" width="103"><strong>Size</strong></td>
<td valign="top" width="316"><strong>Comment</strong></td>
</tr>
<tr>
<td valign="top" width="149"><strong>Applications</strong></td>
<td valign="top" width="103">10GB</td>
<td valign="top" width="316">Without apps, you’re stuck with Notepad and Microsoft Paint.</td>
</tr>
<tr>
<td valign="top" width="149"><strong>Drivers</strong></td>
<td valign="top" width="103">2GB per model</td>
<td valign="top" width="316">Even Windows 7 needs extra drivers.</td>
</tr>
<tr>
<td valign="top" width="149"><strong>Language packs</strong></td>
<td valign="top" width="103">Optional</td>
<td valign="top" width="316">Apply non-English updates as required.</td>
</tr>
<tr>
<td valign="top" width="149"><strong>Updates</strong></td>
<td valign="top" width="103">2GB</td>
<td valign="top" width="316">I strongly recommend adding security updates.</td>
</tr>
<tr>
<td valign="top" width="149"><strong>OS</strong></td>
<td valign="top" width="103">3GB per OS</td>
<td valign="top" width="316">Choose from XP through Windows 2008. Count 32-bit and 64-bit as a new OS.</td>
</tr>
<tr>
<td valign="top" width="149"><strong>Total space needed</strong></td>
<td valign="top" width="103">25GB</td>
<td valign="top" width="316">This space requirement is a rough figure, but it’s the bare minimum I recommend. A total of 50GB is ideal.</td>
</tr>
</tbody>
</table>
<p>The MDT setup program installs a few shortcuts to the Windows Start Menu, but the main ones are the “Deployment Workbench” MMC snap-in and the help files. You only need the other programs for network deployment or for integrating into SCCM.</p>
<h2>MDT add-ons</h2>
<p>When you launch the MDT Workbench, it immediately presents you with a window containing a workflow and directs you to the <strong>components</strong> tab. This is where you download various add-on tools from within the MDT (albeit outdated versions). The following table describes these add-ons.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="300"><strong>Add-on</strong></td>
<td valign="top" width="312"><strong>Comment</strong></td>
</tr>
<tr>
<td valign="top" width="300"><strong>User State Migration Tool v3.0.1</strong></td>
<td valign="top" width="312">V4 is now live and already integrated into the WAIK, so don’t get this!</td>
</tr>
<tr>
<td valign="top" width="300"><strong>Microsoft Application Compatibility Toolkit v5.6</strong></td>
<td valign="top" width="312">Use for remediating software to work with Windows 7.</td>
</tr>
<tr>
<td valign="top" width="300"><strong>Office Environment Assessment Tool (OEAT) v8.0</strong></td>
<td valign="top" width="312">Allows you to assess the compatibility of existing Office add-ins. <a href="http://www.microsoft.com/download/en/details.aspx?id=5857">Version 2.2 is available</a>.</td>
</tr>
<tr>
<td valign="top" width="300"><strong>Windows Automated Installation Kit (WAIK)</strong></td>
<td valign="top" width="312">See the MDT prerequisites table above</td>
</tr>
<tr>
<td valign="top" width="300"><strong>Office Migration Planning Manager (OMPM)</strong></td>
<td valign="top" width="312">Planning tools for deploying Office. <a href="http://www.microsoft.com/download/en/details.aspx?id=11454">2010 version 2.2 is here.</a></td>
</tr>
<tr>
<td valign="top" width="300"><strong>Microsoft Assessment and Planning (MAP) Toolkit v4.0</strong></td>
<td valign="top" width="312">MAP is a powerful inventory, assessment, and reporting tool to help you plan an OS migration. <a href="http://www.microsoft.com/download/en/details.aspx?id=7826">V6 is now live, here</a>.</td>
</tr>
<tr>
<td valign="top" width="300"><strong>Microsoft Security Compliance Manager (SCM)</strong></td>
<td valign="top" width="312">Lets you access and automate all security baselines in one central store. <a href="http://www.microsoft.com/download/en/details.aspx?id=16776">V2.0.20 is here</a>.</td>
</tr>
</tbody>
</table>
<p>The WAIK will take a while to download, so if you haven’t already installed it, wait for it to download and install. Downloads save to “C:\Program Files\Microsoft Deployment Toolkit\Components\” in directories as appropriate.</p>
<p>In the next part of this<a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/"> MDT series</a> I will discuss <a href="http://4sysops.com/archives/mdt-workbench-and-windows-deployment/">Windows deployment</a>.</p>
Author: Mike Taylor
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/mdt-workbench-and-windows-deployment/" title="MDT Workbench and Windows deployment (January 23, 2012)">MDT Workbench and Windows deployment</a> (0)</li>
	<li><a href="http://4sysops.com/archives/introduction-to-the-microsoft-deployment-toolkit-mdt/" title="Introduction to the Microsoft Deployment Toolkit (MDT) (January 19, 2012)">Introduction to the Microsoft Deployment Toolkit (MDT)</a> (0)</li>
	<li><a href="http://4sysops.com/archives/raffle-manageengine-desktop-central-part-2-features/" title="Raffle: ManageEngine Desktop Central &#8211; Part 2: Features (December 7, 2011)">Raffle: ManageEngine Desktop Central &#8211; Part 2: Features</a> (2)</li>
	<li><a href="http://4sysops.com/archives/deployment-toolkit-part-2-driver-deployment-tools/" title="Deployment toolkit Part 2: Driver deployment tools (December 2, 2011)">Deployment toolkit Part 2: Driver deployment tools</a> (0)</li>
	<li><a href="http://4sysops.com/archives/deployment-toolkit-part-1-os-deployment-tools/" title="Deployment toolkit &#8211; Part 1: OS deployment tools (November 28, 2011)">Deployment toolkit &#8211; Part 1: OS deployment tools</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/how-to-install-the-mdt-microsoft-deployment-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the local administrator password on multiple computers with PowerShell</title>
		<link>http://4sysops.com/archives/change-the-local-administrator-password-on-multiple-computers-with-powershell/</link>
		<comments>http://4sysops.com/archives/change-the-local-administrator-password-on-multiple-computers-with-powershell/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 19:50:09 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7810</guid>
		<description><![CDATA[The PowerShell script discussed here allows you to change the local administrator password on multiple remote computers. You can also use the script to change the password of other accounts.]]></description>
			<content:encoded><![CDATA[<p><strong><i>The PowerShell script discussed here allows you to change the local administrator password on multiple remote computers. You can also use the script to change the password of other accounts.</i></strong></p>
<p>I still remember the days (way back in 2003-2004) when we were asked to change the local administrator password manually on all 2000+ computers in a weekend. Back then, system administrators in my region were pretty far removed from automation. But things evolved greatly after that, and system administrators started using programming languages (like VBScript) to automate tasks. Automation tasks have become much easier these days with the introduction of PowerShell.</p>
<p>So, let us see how we can change the local administrator password for a given list of computers using a PowerShell script.</p>
<h2>Changing the administrator password with PowerShell</h2>
<p><code>$password = Read-Host &quot;Enter the password&quot; -AsSecureString     <br />$confirmpassword = Read-Host &quot;Confirm the password&quot; -AsSecureString      <br />$pwd1_text = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($password))      <br />$pwd2_text = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($confirmpassword))      <br />if($pwd1_text -ne $pwd2_text) {      <br />&#160;&#160;&#160; Write-Error &quot;Entered passwords are not same. Script is exiting&quot;      <br />&#160;&#160;&#160; exit      <br />}</code></p>
<p>As you will notice in the above code, I am prompting to confirm the password twice so that it won’t be entered wrong and cause the script to run again. I am also reading the password in a secure manner so that no one else can see it when it is being typed. Once the password is confirmed, the next two lines of dotnet code convert the password into plain text for comparison. If the comparison fails, the script exits; otherwise, it continues.</p>
<p>Now that we have the password, it is time to read the list of computers from a text file.</p>
<h2>Reading list of computers</h2>
<p><code>if(!(Test-Path $InputFile)) {   <br />&#160;&#160;&#160; Write-Error &quot;File ($InputFile) not found. Script is exiting&quot;    <br />&#160;&#160;&#160; exit    <br />}</code></p>
<p>$Computers = Get-Content -Path $InputFile</p>
<p>Before reading the text file, I am doing a small check to see if that file exists or not. If the file is not found, the script exits. Otherwise, the script reads the contents of the file using the <strong>Get-Content</strong> cmdlet and stores the list in an array called $computers.</p>
<p>Now that we have the list of computers, we can start changing the password for each computer. That is what the below code does.</p>
<h2>Chaging the password on multiple computers</h2>
<p><code>foreach ($Computer in $Computers) {   <br />&#160;&#160;&#160; $Computer&#160;&#160;&#160; =&#160;&#160;&#160; $Computer.toupper()    <br />&#160;&#160;&#160; $Isonline&#160;&#160;&#160; =&#160;&#160;&#160; &quot;OFFLINE&quot;    <br />&#160;&#160;&#160; $Status&#160;&#160;&#160;&#160;&#160;&#160;&#160; =&#160;&#160;&#160; &quot;SUCCESS&quot;    <br />&#160;&#160;&#160; Write-Verbose &quot;Working on $Computer&quot;    <br />&#160;&#160;&#160; if((Test-Connection -ComputerName $Computer -count 1 -ErrorAction 0)) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Isonline = &quot;ONLINE&quot;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Verbose &quot;`t$Computer is Online&quot;    <br />&#160;&#160;&#160; } else { Write-Verbose &quot;`t$Computer is OFFLINE&quot; }</p>
<p>&#160;&#160;&#160; try {   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $account = [ADSI](&quot;WinNT://$Computer/Administrator,user&quot;)    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $account.psbase.invoke(&quot;setpassword&quot;,$pwd1_text)    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Verbose &quot;`tPassword Change completed successfully&quot;    <br />&#160;&#160;&#160; }    <br />&#160;&#160;&#160; catch {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $status = &quot;FAILED&quot;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Verbose &quot;`tFailed to Change the administrator password. Error: $_&quot;    <br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; $obj = New-Object -TypeName PSObject -Property @{   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ComputerName = $Computer    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; IsOnline = $Isonline    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; PasswordChangeStatus = $Status    <br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; $obj | Select ComputerName, IsOnline, PasswordChangeStatus   <br />&#160;&#160;&#160; <br />&#160;&#160;&#160; if($Status -eq &quot;FAILED&quot; -or $Isonline -eq &quot;OFFLINE&quot;) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $stream.writeline(&quot;$Computer `t $isonline `t $status&quot;)    <br />&#160;&#160;&#160; }    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />}</code></p>
<p>I am looping through each computer account in the array and first checking if it is online or not by using the <strong>Test-Connection</strong> cmdlet. This cmdlet does a ping check by sending one ICMP packet to the computer. If the ping is successful, the script changes the password. To do that, I am using the WinNT interface, which is pretty famous from VBScript days. After I get the reference to the administrator account, I invoke a method called <strong>SetPassword</strong> to change the password. If the password change fails, the respective error will be recorded using the <strong>catch</strong> block.</p>
<p>That’s it. The script has done its job and you will see the result in the console.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Change-administrator-password-PowerShell.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Change-administrator-password-PowerShell.png','',event,300,75)"><img style="background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Change administrator password PowerShell" border="0" alt="Change administrator password PowerShell" src="http://4sysops.com/wp-content/uploads/2012/01/Change-administrator-password-PowerShell_thumb.png" width="604" height="146" /></a></p>
<p>As you’ll notice in the output, the script creates a list of computers where the password has failed. The file &quot;failed-computers.txt&quot; is stored in the directory where the script picked up the computers list. If you want to provide a different directory where you want to store files, just pass the directory name to the <strong>-OutputDirectory</strong> parameter while executing the script.</p>
<p><strong>Download the complete script from <a href="http://4sysops.com/wp-content/uploads/2012/01/Change-admin-password-on-multiple-computers-with-PowerShell.ps1">here</a>.</strong></p>
<h2><strong>A few tips for using this script</strong></h2>
<p>Type “Get-Help .\Update-LocalAdministratorPassword.ps1 -Detailed” in a PowerShell console for help.</p>
<ul>   
<li>Use the -Verbose switch from the command line if you want to see the debug information and error messages at each stage. </li>
<li>Passing the file name to the script is optional. The script will prompt you for the file if you don’t pass it. </li>
<li>Using this script, you can change the password of any local account. Just replace “administrator” with the account name for which you want to change the password. </li>
</ul>
Author: Sitaram Pamarthi
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/query-and-kill-a-process-on-a-remote-computer-using-powershell-and-wmi/" title="Query and kill a process on a remote computer using PowerShell and WMI (December 9, 2011)">Query and kill a process on a remote computer using PowerShell and WMI</a> (0)</li>
	<li><a href="http://4sysops.com/archives/vbscript-vs-powershell/" title="VBScript vs. PowerShell (September 20, 2011)">VBScript vs. PowerShell</a> (0)</li>
	<li><a href="http://4sysops.com/archives/powershell-tutorial-for-admins-part-6-managing-server-roles-and-features/" title="PowerShell tutorial for admins &#8211; Part 6: Managing server roles and features (July 14, 2011)">PowerShell tutorial for admins &#8211; Part 6: Managing server roles and features</a> (0)</li>
	<li><a href="http://4sysops.com/archives/powershell-tutorial-for-admins-part-5-using-powershell-scriptomatic/" title="PowerShell tutorial for admins &#8211; Part 5: Using PowerShell Scriptomatic (July 7, 2011)">PowerShell tutorial for admins &#8211; Part 5: Using PowerShell Scriptomatic</a> (0)</li>
	<li><a href="http://4sysops.com/archives/powershell-tutorial-for-admins-part-4-obtaining-server-metadata/" title="PowerShell tutorial for admins &#8211; Part 4: Obtaining server metadata (July 4, 2011)">PowerShell tutorial for admins &#8211; Part 4: Obtaining server metadata</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/change-the-local-administrator-password-on-multiple-computers-with-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visualizing your server rack with Microsoft Visio 2010</title>
		<link>http://4sysops.com/archives/visualizing-your-server-rack-with-microsoft-visio-2010/</link>
		<comments>http://4sysops.com/archives/visualizing-your-server-rack-with-microsoft-visio-2010/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 19:02:59 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7804</guid>
		<description><![CDATA[In this blog post I will provide you with the basics of using Visio 2010 to create a server room rack diagram.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this blog post I will provide you with the basics of using Visio 2010 to create a server room rack diagram.</i></strong></p>
<p>As a Windows systems administrator, you may be required to document the contents of your server racks. The reasons for this documentation are myriad and manifold:</p>
<ul>
<li>Compliance with industry/governmental regulations</li>
<li>Compliance with organizational IT policy</li>
<li>Theft protection/insurance reimbursement</li>
<li>Accountability to stakeholders</li>
<li>General industry best practice</li>
</ul>
<p><a href="http://office.microsoft.com/en-us/visio/visio-2010-buy-page-FX101836377.aspx">Microsoft Visio 2010</a> is a part of the <a href="http://office.microsoft.com/en-us/products/">Microsoft Office System suite</a> that is optimized for the visualization of all business processes. Visio is especially well-suited to our work in IT.</p>
<h2>Background information</h2>
<p>First of all, it should be said that unlike many core members of the Office System suite, Visio 2010 is a Windows-only application.</p>
<p><strong>NOTE</strong>: Mac OS X users tend to get a lot of mileage from <a href="http://www.omnigroup.com/products/omnigraffle/">Omnigraffle</a> for their business process visualization needs.</p>
<p>Second, only two of the three Visio 2010 stock keeping units (SKUs) include the rack diagram template. Thus, if you are a systems administrator you will want to avoid Visio Standard 2010 and instead purchase a license for Visio Professional 2010 or Visio Premium 2010.</p>
<ul>
<li><a href="http://office.microsoft.com/en-us/visio/visio-edition-comparison-FX101838162.aspx">Visio 2010 Edition Comparison</a></li>
<li><a href="http://office.microsoft.com/en-us/visio/visio-2010-buy-page-FX101836377.aspx">Visio 2010 Retail Pricing</a></li>
</ul>
<p>Third, you need to know that Microsoft Visio 2010 includes vendor-neutral shapes in its built-in stencil set. Thus, if you need or want to model real-world gear, you will need to obtain original equipment manufacturer (OEM)-provided Visio stencils.</p>
<p>The good news is that these are amazingly easy to come by. Most IT hardware vendors are overjoyed to provide you with detailed Visio shapes that model their equipment. Most of these shapes have associated shape data such that you can track details regarding each element in your infrastructure.</p>
<ul>
<li><a href="http://www.cisco.com/en/US/products/hw/prod_cat_visios.html">Cisco Stencils</a></li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?id=4604">Network Equipment Shapes for Microsoft Visio</a></li>
<li><a href="http://www.visiocafe.com/">Visio Café</a></li>
<li><a href="http://www.ishapes.com/">NetZoom Visio Stencils</a></li>
<li><a href="http://www.visguy.com/visio-links/">Visio Guy Visio Links</a></li>
<li><a href="http://www.routerfreak.com/visio-files/">Router Freak Visio Stencil Files</a></li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?id=20891">Lync Server 2010 Visio Stencil</a></li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?id=6977">Exchange 2010 Visio Stencil</a></li>
<li><a href="http://h40060.www4.hp.com/procurve/customercare/services/design_center/index.php?cc=uk&amp;lc=en">HP Visio Stencils</a></li>
</ul>
<h2>Building the Visio diagram</h2>
<p>Open Visio 2010, and from the default Backstage view, select the <strong>Network</strong> template category, and then the <strong>Rack Diagram</strong> template.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-The-rack-diagram-Visio-2010-template.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-The-rack-diagram-Visio-2010-template.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Visio 2010 server rack - The rack diagram Visio 2010 template" src="http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-The-rack-diagram-Visio-2010-template_thumb.png" alt="Visio 2010 server rack - The rack diagram Visio 2010 template" width="600" height="447" /></a></p>
<p align="center"><em>The rack diagram Visio 2010 template</em></p>
<p>Once you have the template loaded, you can bring out the <strong>Rack</strong> shape from the <strong>Quick Shapes</strong> or <strong>Rack-mounted Equipment</strong> stencils. The default size of the rack is 42 <a href="http://en.wikipedia.org/wiki/Rack_unit">rack units</a> (<strong>U</strong>s); however, you can resize the rack to adjust for your preferred dimension.</p>
<p>Next, you can load up your custom third-party stencils by clicking <strong>More Shapes &gt; Open Stencil</strong> from the <strong>Shapes</strong> window. Browse to your downloaded <strong>.vss</strong> file, and away you go!</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-Loading-an-external-stencil.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-Loading-an-external-stencil.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Visio 2010 server rack - Loading an external stencil" src="http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-Loading-an-external-stencil_thumb.png" alt="Visio 2010 server rack - Loading an external stencil" width="350" height="497" /></a></p>
<p align="center"><em>Loading an external stencil</em></p>
<p>Next, select a shape from a stencil and drag it into the rack. Look at the next screenshot: do you see the little red squares? This denotes a <em>glue to connection point</em> operation. In Visio shape connection points are denoted by blue <strong>X</strong>s; when you glue a shape to a connection point, this effectively links the shapes together.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-Gluing-shapes-in-Visio-2010.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-Gluing-shapes-in-Visio-2010.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Visio 2010 server rack - Gluing shapes in Visio 2010" src="http://4sysops.com/wp-content/uploads/2012/01/Visio-2010-server-rack-Gluing-shapes-in-Visio-2010_thumb.png" alt="Visio 2010 server rack - Gluing shapes in Visio 2010" width="400" height="155" /></a></p>
<p align="center"><em>Gluing shapes in Visio 2010</em></p>
<p>Finally, navigate to the <strong>Data</strong> ribbon tab and select <strong>Shape Data Window</strong>. You can now attach metadata to each network shape in the diagram. Visio 2010 gives us tremendous flexibility in storing and reporting on shape metadata.</p>
<p>For that matter, the subject of pipelining in external data into a Visio 2010 diagram warrants one or more blog posts on its own. Let me know in the comments portion of this post if you’d like a tutorial on this subject.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Visio-server-rack-The-finished-product.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Visio-server-rack-The-finished-product.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Visio server rack - The finished product" src="http://4sysops.com/wp-content/uploads/2012/01/Visio-server-rack-The-finished-product_thumb.png" alt="Visio server rack - The finished product" width="350" height="392" /></a></p>
<p align="center"><em>The finished product</em></p>
<h2>Conclusion</h2>
<p>Admittedly, we only scratched the surface in terms of what Visio 2010 is capable of doing with respect to visualizing your IT infrastructure. As I mentioned earlier, I am more than happy to walk you through more advanced operations; let me know what you think.</p>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/free-driverview-view-drivers/" title="FREE: DriverView &#8211; View drivers (April 29, 2011)">FREE: DriverView &#8211; View drivers</a> (0)</li>
	<li><a href="http://4sysops.com/archives/free-speccy-system-information-for-windows/" title="FREE: Speccy &#8211; System information for Windows (April 8, 2011)">FREE: Speccy &#8211; System information for Windows</a> (0)</li>
	<li><a href="http://4sysops.com/archives/free-novabench-free-benchmark-software/" title="FREE: NovaBench &#8211; Free benchmark software (April 4, 2011)">FREE: NovaBench &#8211; Free benchmark software</a> (1)</li>
	<li><a href="http://4sysops.com/archives/memtest86-free-memory-test-software/" title="FREE: Memtest86+ &#8211; Memory test software (April 1, 2011)">FREE: Memtest86+ &#8211; Memory test software</a> (4)</li>
	<li><a href="http://4sysops.com/archives/free-memtest86-a-memory-diagnostic-tool/" title="FREE: Memtest86 &#8211; A memory diagnostic tool (March 30, 2011)">FREE: Memtest86 &#8211; A memory diagnostic tool</a> (5)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/visualizing-your-server-rack-with-microsoft-visio-2010/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to synchronize Windows Server 2008 with an external time server</title>
		<link>http://4sysops.com/archives/how-to-synchronize-windows-server-2008-with-an-external-time-server/</link>
		<comments>http://4sysops.com/archives/how-to-synchronize-windows-server-2008-with-an-external-time-server/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 10:52:10 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[active directory]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7786</guid>
		<description><![CDATA[In this tutorial you will learn how to point the authoritative time server in your Active Directory domain at an Internet-based atomic time source.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this tutorial you will learn how to point the authoritative time server in your Active Directory domain at an Internet-based atomic time source.</i></strong></p>
<p>As you probably already know, the Kerberos authentication protocol has limited tolerance for time skew between client and server. Specifically, the time difference between domain computers needs to be less than five minutes.</p>
<p>Some Windows administrators want to synchronize their Windows Server 2008 system clocks to an external atomic time source. How can we accomplish this goal? Well, read on!</p>
<h2>The Windows Time Service: Basic operation</h2>
<p>The <a href="http://technet.microsoft.com/en-us/library/cc773013(v=ws.10).aspx">Windows Time (W32Time) service</a> exists in both Windows Server 2008 R2 as well as Windows 7, and is the “engine” that drives system time synchronization within an Active Directory domain.</p>
<p>By default, the domain controller that holds the PDC Emulator <a href="http://www.petri.co.il/understanding_fsmo_roles_in_ad.htm">FSMO role</a> is the authoritative time source for the domain. More broadly, the PDC Emulator in the forest root domain holds the authoritative time for the entire forest. Check out the following Visio diagram:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Default-time-sync-behavior-in-Active-Directory.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Default-time-sync-behavior-in-Active-Directory.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Windows time server - Default time sync behavior in Active Directory" src="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Default-time-sync-behavior-in-Active-Directory_thumb.png" alt="Windows time server - Default time sync behavior in Active Directory" width="500" height="473" /></a></p>
<p align="center"><em>Default time sync behavior in Active Directory</em></p>
<p>In the above diagram, the forest root PDC Emulator (A) serves time for the entire forest. Other domain controllers within the domain (B) synchronize their time with the PDC Emulator. In turn, domain member servers (D) and domain workstations (E) synchronize their time with any available domain controller. PDC Emulators and domain controllers from other domains (C) synchronize their clocks with either forest root domain controllers or the forest root PDC Emulator.</p>
<p><strong>NOTE:</strong> You can ascertain the domain controller that holds the PDC Emulator role by opening an administrative command prompt on any domain controller and issuing the command <strong>dsquery server –hasfsmo pdc</strong>.</p>
<p>All of the previously described behavior happens “out of the box,” with no special configuration required on the part of the Windows systems administrator. A bit of complexity comes in when we want our authoritative server to synchronize its system clock with an external time source. Let’s do that now.</p>
<h2>Configuring the authoritative time server for the domain</h2>
<p>Pointing our domain authoritative time server (the PDC Emulator role holder, recall) at an external time source requires some tinkering with the Windows Registry. To this end, you might want to create a Registry backup before proceeding with this work.</p>
<p>All of the following value changes are stored in the following Registry root path:</p>
<p><strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time</strong></p>
<p>First, we must <strong>change the server type to NTP</strong> by modifying the <strong>Type</strong> value at <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type.</strong> Change the value data to NTP. This setting reflects use of the Network Time Protocol, an industry standard protocol for time synchronization and management.</p>
<p>Second, we need to <strong>set the proper NTP announce flag</strong>. Change the <strong>AnnounceFlags</strong> value at <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags</strong> to 5.</p>
<p>&nbsp;</p>
<p>Third, we will <strong>enable NTPServer</strong>. To do this we must change the value data of the <strong>Enabled</strong> value at <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\
TimeProviders\NtpServer</strong> to <strong>1</strong>.</p>
<p>Fourth, we need to specify our external time sources. To do this, we modify the <strong>NtpServer</strong> value at <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters</strong>.</p>
<p>This is where things get a little hairy. Windows expects a space-delimited list of DNS host names with the hexadecimal value 0&#215;1 appended to each one (don’t even ask).</p>
<p>You can obtain a list of candidate atomic clock servers by visiting the <a href="http://www.pool.ntp.org/en/use.html">NTP Pool Project Web site</a>. The following screen shot shows my own value data:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Configuring-external-time-sources.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Configuring-external-time-sources.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Windows time server - Configuring external time sources" src="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Configuring-external-time-sources_thumb.png" alt="Windows time server - Configuring external time sources" width="399" height="178" /></a></p>
<p align="center"><em>Configuring external time sources</em></p>
<p>Fifth, we’ll set the NTP polling interval by modifying the <strong>SpecialPollInterval</strong> value at <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\
NtpClient\SpecialPollInterval</strong>. The recommended value here (<a href="http://support.microsoft.com/kb/816042">reference from Microsoft</a>) is 900 Decimal.</p>
<p>Sixth and finally, we need to configure time correction settings. Start by modifying the <strong>MaxPosPhaseCorrection</strong> value at <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\
Config\MaxPosPhaseCorrection; </strong>set the value data to a “reasonable” decimal value such as 1800 or 3600 seconds.</p>
<p>You’ll also want to set the corresponding <strong>MaxPosPhaseCorrection</strong> value to the same value you used for positive time phase correction.</p>
<p>Quit the Registry Editor, open an administrative command prompt, and submit the following command in order to bounce the Windows Time service:</p>
<p><strong>net stop w32time &amp;&amp; net start w32time</strong></p>
<h2>Pointing domain devices to a time server</h2>
<p>As I mentioned earlier, as long as your domain member servers and workstations are legitimate domain members and have the Windows Time service running, they will automatically synchronize their clocks with a domain controller.</p>
<p>You can always verify from where a particular Windows box is synchronizing its time by using the “Swiss Army Knife” <a href="http://technet.microsoft.com/en-us/library/bb491016.aspx">w32tm command-line tool</a>.</p>
<p>As you can see in the below screen shot, the statement <strong>w32tm /monitor</strong> gives you the core information at a glance:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Monitoring-NTP-in-Windows-7.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Monitoring-NTP-in-Windows-7.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Windows time server - Monitoring NTP in Windows 7" src="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-Monitoring-NTP-in-Windows-7_thumb.png" alt="Windows time server - Monitoring NTP in Windows 7" width="500" height="220" /></a></p>
<p align="center"><em>Monitoring NTP in Windows 7</em></p>
<p>The screenshot also references UDP port 123; this is the well-known port that belongs to the Network Time Protocol. Please be sure to allow traffic on UDP 123 in your domain so that you do not inadvertently block NTP communications between your servers and client devices.</p>
<p>Finally, you should now (if you don’t already) that we can fully customize the NTP client behavior by using Group Policy. From the Group Policy Editor, navigate to <strong>\Computer Configuration\Administrative Templates\System\Windows Time Service\Time Providers</strong>.</p>
<p>As you can see in the following screenshot, you can edit the<strong> Configure Windows NTP Client</strong> policy to tweak (and enforce) any and all NTP client settings.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-NTP-client-customization-via-Group-Policy.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-NTP-client-customization-via-Group-Policy.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Windows time server - NTP client customization via Group Policy" src="http://4sysops.com/wp-content/uploads/2012/01/Windows-time-server-NTP-client-customization-via-Group-Policy_thumb.png" alt="Windows time server - NTP client customization via Group Policy" width="500" height="458" /></a></p>
<p align="center"><em>NTP client customization via Group Policy</em></p>
<h2>Conclusion</h2>
<p>Whew! We certainly covered a lot of ground in this tutorial. I wish that Microsoft made it easier to manage the Windows Time service, don’t you? Please feel free to leave your questions and observations in the comments portion of this post.</p>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/microsoft-exam-70-640-active-directory-trusts/" title="Microsoft Exam 70-640 &#8211; Active Directory trusts (February 7, 2012)">Microsoft Exam 70-640 &#8211; Active Directory trusts</a> (0)</li>
	<li><a href="http://4sysops.com/archives/microsoft-exam-70-640-configuring-active-directory-forests-and-domains-sample-practice-question/" title="Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains &#8211; Sample question (January 18, 2012)">Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains &#8211; Sample question</a> (5)</li>
	<li><a href="http://4sysops.com/archives/microsoft-exam-70-640-configuring-active-directory-forests-and-domains/" title="Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains (January 17, 2012)">Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains</a> (0)</li>
	<li><a href="http://4sysops.com/archives/how-to-disable-usb-drive-use-in-an-active-directory-domain/" title="How to disable USB drive use in an Active Directory domain (January 2, 2012)">How to disable USB drive use in an Active Directory domain</a> (0)</li>
	<li><a href="http://4sysops.com/archives/managed-service-accounts-and-read-only-domain-controllers/" title="Managed Service Accounts and Read-Only Domain Controllers (RODC) (December 22, 2011)">Managed Service Accounts and Read-Only Domain Controllers (RODC)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/how-to-synchronize-windows-server-2008-with-an-external-time-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Troubleshoot slow logon &#8211; Part 2: The 3-headed monster</title>
		<link>http://4sysops.com/archives/troubleshoot-slow-logon-part-2-the-3-headed-monster/</link>
		<comments>http://4sysops.com/archives/troubleshoot-slow-logon-part-2-the-3-headed-monster/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 18:55:51 +0000</pubDate>
		<dc:creator>Aaron Denton</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7776</guid>
		<description><![CDATA[There are many reasons for slow performance immediately following logon. In my last post I explained how you can <a href="http://4sysops.com/archives/troubleshoot-slow-logon-part-1-profile-size/">troubleshoot slow logon by limiting the user profile size</a>. This post explains how to keep the 3-headed monster from becoming one of them.]]></description>
			<content:encoded><![CDATA[<p><strong><i>There are many reasons for slow performance immediately following logon. In my last post I explained how you can <a href="http://4sysops.com/archives/troubleshoot-slow-logon-part-1-profile-size/">troubleshoot slow logon by limiting the user profile size</a>. This post explains how to keep the 3-headed monster from becoming one of them.</i></strong></p>
<p>While constantly checking Task Manager and Resource Manager, I would sometimes notice high CPU utilization due to what I call the 3-headed monster. Here’s the definition for that:</p>
<h2>3-headed monster</h2>
<p>The user experience of Windows Indexing, System Restore, and/or Windows Error Reporting causing less than desirable states of desktop responsiveness especially during logon process. These are three Windows “features” I would consider disabling to improve performance immediately following logon. Disabling these will also improve overall performance.</p>
<p><span class="Apple-style-span" style="font-size: 20px; font-weight: bold;">Indexing</span></p>
<p>Let’s start with indexing. The theory of indexing is sound and I think can be applicable to home desktop users. However; on workstations in the business environment, I’m not so sure.</p>
<p>I’ve seen indexing cause slow performance when the Users directory is included in indexing. If you read my previous post, you learned how to reduce the size of the user’s roaming profile. That is helpful for the profile synchronization process but doesn’t reduce the size of the local profile. This local profile can be very large and could contain a very large number of files. I’ve found that removing this directory from indexing can greatly improve performance.</p>
<p><strong>Here’s how to disable it.</strong></p>
<p>From the Control Panel search for Indexing. Click Change how Windows searches. The Indexing Options dialog box will display showing you the number of items indexed. Click Modify to disable Indexed Locations.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Indexing-Options-and-Indexed-Locations.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Indexing-Options-and-Indexed-Locations.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="Slow logon - Indexing Options and Indexed Locations" src="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Indexing-Options-and-Indexed-Locations_thumb.png" alt="Slow logon - Indexing Options and Indexed Locations" width="604" height="381" border="0" /></a></p>
<p align="center"><em>Indexing Options and Indexed Locations</em></p>
<h2>System Restore</h2>
<p>Now on to System Restore. This is another feature that I feel has a better place in the home environment. It allows you to recover easily should something go wrong. But again, I have seen this cause massive system lagging when it’s running. I recommend disabling it and here’s why. Most shops have at least one spare machine lying around. Keep that as a hot spare and replace that machine that took a nose dive into the concrete-filled swimming pool. Roaming profiles and server data storage mean that in this case that machine is just a dumb terminal anyways. Turn off the extra services in favor of performance for your users and they’ll be much happier.</p>
<p><strong>Here’s how to disable it.</strong></p>
<p>Right-click <em>Computer</em> and select <em>Properties</em>. Click <em>Advanced system settings</em> and then the <em>System Protection</em> tab. Select a drive and then click <em>Configure</em>. Select radio option to <em>Turn off system protection</em>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Disable-System-Restore.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Disable-System-Restore.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="Slow logon - Disable System Restore" src="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Disable-System-Restore_thumb.png" alt="Slow logon - Disable System Restore" width="604" height="281" border="0" /></a></p>
<p align="center"><em>Disable System Restore</em></p>
<h2>Windows Error Reporting</h2>
<p>Just a quick disclaimer, I’m a big fan of Microsoft. They’re aren’t perfect but they sell good products that are universally recognized by anyone. In fact, I think they’re so great that I’m willing to bet they don’t really need every one of my workstations reporting every little problem. As with System Restore, I’m interested in removing anything that is going to cause lagginness (if that’s a word) for my end user.</p>
<p>Very rarely, I’ve seen the WER directory grow very large. Disabling indexing on the Users directory should mean that a large WER directory isn’t too big of a deal. The location of the WER directory is typically C:\Users\%username%\AppData\Local\Microsoft\Windows\WER.</p>
<p><strong>Here’s how to disable it.</strong></p>
<p>Windows Error Reporting can be disabled using group policy. If you want to disable by computer, create a GPO and configure <strong><em>Computer Configuration\Administrative Templates\System\Internet Communication Management\Internet Communication settings</em></strong>. To disable by user, customize the GPO section <strong><em>User Configuration\Administrative Templates\System\Internet Communication Management\Internet Communication settings</em></strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Slow-Logon-Turn-of-Windows-Error-Reporting.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Slow-Logon-Turn-of-Windows-Error-Reporting.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="Slow Logon - Turn of Windows Error Reporting" src="http://4sysops.com/wp-content/uploads/2012/01/Slow-Logon-Turn-of-Windows-Error-Reporting_thumb.png" alt="Slow Logon - Turn of Windows Error Reporting" width="604" height="554" border="0" /></a></p>
<p align="center"><em>Turn off Windows Error Reporting</em></p>
<p>In both the computer and user settings, there are also several other communication settings that I would highly recommend you review and consider disabling.</p>
<p>For additional information please refer to this <a href="http://technet.microsoft.com/en-us/library/cc749503(WS.10).aspx">TechNet article</a>.</p>
<p>A couple other reminders that I may be helpful: Make sure that anti-virus and anti-malware are set to scan at times when user’s are not active. Also make sure that server backup activity is not affecting user performance.</p>
<p>Also read <a href="http://4sysops.com/archives/windows-is-so-slow-105-ways-how-to-speed-up-windows-xp-or-vista/">10.5 ways how to speed up a slow Windows</a></p>
Author: Aaron Denton
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshoot-slow-logon-part-1-profile-size/" title="Troubleshoot slow logon &#8211; Part 1: Profile size (January 4, 2012)">Troubleshoot slow logon &#8211; Part 1: Profile size</a> (0)</li>
	<li><a href="http://4sysops.com/archives/how-to-disable-the-shutdown-event-tracker-in-windows-server-2008-r2/" title="How to disable the Shutdown Event Tracker in Windows Server 2008 R2 (December 27, 2011)">How to disable the Shutdown Event Tracker in Windows Server 2008 R2</a> (0)</li>
	<li><a href="http://4sysops.com/archives/free-smart-defrag-a-defragmentation-tool/" title="FREE: Smart Defrag &#8211; A defragmentation tool (May 9, 2011)">FREE: Smart Defrag &#8211; A defragmentation tool</a> (9)</li>
	<li><a href="http://4sysops.com/archives/free-novabench-free-benchmark-software/" title="FREE: NovaBench &#8211; Free benchmark software (April 4, 2011)">FREE: NovaBench &#8211; Free benchmark software</a> (1)</li>
	<li><a href="http://4sysops.com/archives/turn-off-indexing-in-windows-7-and-windows-vista/" title="Turn off indexing in Windows 7 and Windows Vista? (January 5, 2011)">Turn off indexing in Windows 7 and Windows Vista?</a> (5)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshoot-slow-logon-part-2-the-3-headed-monster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to share a folder in Mac OS X for Windows users</title>
		<link>http://4sysops.com/archives/how-to-share-a-folder-in-mac-os-x-for-windows-users/</link>
		<comments>http://4sysops.com/archives/how-to-share-a-folder-in-mac-os-x-for-windows-users/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 19:55:58 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7769</guid>
		<description><![CDATA[In this tutorial I will show you how to share a folder in Apple Mac OS X and access those shared resources from Windows.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this tutorial I will show you how to share a folder in Apple Mac OS X and access those shared resources from Windows.</i></strong></p>
<p>In a previous article, you learned how to <a href="http://4sysops.com/archives/connecting-to-windows-shares-from-mac-os-x/">connect to Windows-based Server Message Block (SMB) shares from Mac OS X</a>. Here we turn the tables and discover how we can share file resources in Mac OS X Snow Leopard with Windows-based client computers.</p>
<p>If you are like me, then you are accustomed to the enterprise-class file sharing and access control that are afforded to us in Windows. This being said, you are likely to find the Mac OS X file sharing options to be rather limited.</p>
<h2>Setting up a Mac for Windows Sharing</h2>
<p>From your Mac OS X Snow Leopard desktop, open the Apple menu and select <strong>System Preferences</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Opening-System-Preferences.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Opening-System-Preferences.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Opening System Preferences" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Opening-System-Preferences_thumb.png" alt="MAC Windows sharing - Opening System Preferences" width="416" height="326" /></a></p>
<p align="center"><em>Opening System Preferences</em></p>
<p>In the System Preferences panel, in the <strong>Internet &amp; Wireless</strong> icon group, open the <strong>Sharing</strong> item.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Mac-OS-X-Preferences-pane.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Mac-OS-X-Preferences-pane.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Mac OS X Preferences pane" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Mac-OS-X-Preferences-pane_thumb.png" alt="MAC Windows sharing - Mac OS X Preferences pane" width="447" height="424" /></a></p>
<p align="center"><em>Mac OS X Preferences pane</em></p>
<p>In the Sharing preference pane, enable <strong>File Sharing</strong>.</p>
<p><strong>NOTE</strong>: In previous versions of Mac OS X, the relevant option was named <strong>Windows Sharing</strong>.</p>
<p>When you enable File Sharing, you simultaneously enable the Samba server service. Next, click <strong>Options</strong> (shown as “A” in the next screenshot).</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Sharing-pane.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Sharing-pane.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Sharing pane" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Sharing-pane_thumb.png" alt="MAC Windows sharing - Sharing pane" width="516" height="424" /></a></p>
<p align="center"><em>Sharing pane</em></p>
<p>Select the option <strong>Share files and folders using SMB (Windows)</strong>, and then check any local Mac OS X accounts that you want to enable for sharing. What this option does is to allow you to populate your shared folders’ access control lists (ACLs), explained further on in this article.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Enabling-SMB-server-on-Mac-OS-X.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Enabling-SMB-server-on-Mac-OS-X.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Enabling SMB server on Mac OS X" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Enabling-SMB-server-on-Mac-OS-X_thumb.png" alt="MAC Windows sharing - Enabling SMB server on Mac OS X" width="515" height="424" /></a></p>
<p align="center"><em>Enabling SMB server on Mac OS X</em></p>
<p>Click the plus sign (<strong>+</strong>) beneath the Shared Folders list (marked “B” in Figure 3) and browse to your desired directory. When you’ve located that directory, select it and then click <strong>Add</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Browsing-for-a-folder-to-share.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Browsing-for-a-folder-to-share.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Browsing for a folder to share" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Browsing-for-a-folder-to-share_thumb.png" alt="MAC Windows sharing - Browsing for a folder to share" width="515" height="424" /></a></p>
<p align="center"><em>Browsing for a folder to share</em></p>
<p>You will now see the name of that selected folder in the Shared Folders list. Next, click the plus sign below the Users: field (marked “C” in Figure 3) and select the Mac OS X user account(s) that you want to add to the ACL.</p>
<p>The <strong>New Person</strong> button allows you to create a special type of Mac OS X user account known as a Sharing-Only account. You should protect these accounts with (of course) a strong password.</p>
<p>The main difference between Sharing Only accounts and standard Mac OS X user accounts is that Sharing Only accounts cannot be used to log on interactively to a Mac OS X computer. Therefore, using these identities is a good idea from a security standpoint.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Browsing-for-a-folder-to-share1.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Browsing-for-a-folder-to-share1.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Browsing for a folder to share" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Browsing-for-a-folder-to-share_thumb1.png" alt="MAC Windows sharing - Browsing for a folder to share" width="515" height="424" /></a></p>
<p align="center"><em>Enabling sharing for Mac users</em></p>
<p>The specific access options for shared folders in Mac OS X is either quite straightforward or needlessly basic, depending upon your perspective. Your choices are: <strong>Read &amp; Write</strong>,<strong> Read Only</strong>, and <strong>Write Only (Drop Box)</strong>.</p>
<p>The default permissions for a given folder are inherited from the folder’s underlying UNIX directory permissions.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Share-access-control-options.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Share-access-control-options.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Share access control options" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Share-access-control-options_thumb.png" alt="MAC Windows sharing - Share access control options" width="327" height="227" /></a></p>
<p align="center"><em>Share access control options</em></p>
<p>The following exhibit shows the completed configuration for our shared folder named <strong>script</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-The-script-folder-is-now-shared.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-The-script-folder-is-now-shared.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - The script folder is now shared" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-The-script-folder-is-now-shared_thumb.png" alt="MAC Windows sharing - The script folder is now shared" width="515" height="424" /></a></p>
<p align="center"><em>The script folder is now shared</em></p>
<p>One more thing before we switch over to Windows: to make the Mac’s discoverability by Windows-based clients as transparent as possible, we will want to set a NetBIOS workgroup name for the Mac.</p>
<p>To do this, re-open System Preferences and open the <strong>Network</strong> item. Select your Ethernet connection and then click <strong>Advanced</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Network-preference-pane.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Network-preference-pane.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Network preference pane" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Network-preference-pane_thumb.png" alt="MAC Windows sharing - Network preference pane" width="515" height="447" /></a></p>
<p align="center"><em>Network preference pane</em></p>
<p>From the Ethernet configuration dialog, navigate to the WINS tab and set both a NetBIOS name as well as a workgroup name. For discoverability in Active Directory domains, just add the NetBIOS “short name” of the domain (for instance, 4Sysopslab.com would be 4SYSOPSLAB, as shown in the following figure).</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Configuring-the-Mac-for-workgroup-membership.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Configuring-the-Mac-for-workgroup-membership.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Configuring the Mac for workgroup membership" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Configuring-the-Mac-for-workgroup-membership_thumb.png" alt="MAC Windows sharing - Configuring the Mac for workgroup membership" width="515" height="441" /></a></p>
<p align="center"><em>Configuring the Mac for workgroup membership</em></p>
<h2>Making a client connection from Windows</h2>
<p>I trust that you are familiar with the myriad methods by which we can establish an SMB-based client connection to a file server:</p>
<ul>
<li>The <strong>Map Network Drive</strong> command in Windows Explorer</li>
<li>Universal Naming Convention (UNC) path from the <strong>Run</strong> box</li>
<li>The <strong>net use</strong> command</li>
<li><strong>Network</strong> Control Panel item</li>
</ul>
<p>The following exhibit demonstrates the process of mapping a Windows drive letter to a Mac-based SMB share by using the archaic <strong>net use</strong> command.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Connecting-to-Mac-OS-X-share-from-Windows.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Connecting-to-Mac-OS-X-share-from-Windows.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Connecting to Mac OS X share from Windows" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Connecting-to-Mac-OS-X-share-from-Windows_thumb.png" alt="MAC Windows sharing - Connecting to Mac OS X share from Windows" width="515" height="345" /></a></p>
<p align="center"><em>Connecting to Mac OS X share from Windows</em></p>
<p>In observing the previous exhibit, the question probably arose in your mind, “What about authentication? What is going on here, exactly?” Well, the reason why I was able to run the above net use command without specifying Mac credentials is because I allowed access to the Everyone special identity. This identity works the same way in Mac OS X as it does in Windows—the same security precautions apply regarding its use, too.</p>
<p>If you want to make an authenticated connection to a Mac share by specifying credentials, then we should map a network drive using Windows Explorer.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Mapping-a-network-drive-in-Windows.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Mapping-a-network-drive-in-Windows.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Mapping a network drive in Windows" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Mapping-a-network-drive-in-Windows_thumb.png" alt="MAC Windows sharing - Mapping a network drive in Windows" width="515" height="494" /></a></p>
<p align="center"><em>Mapping a network drive in Windows</em></p>
<p>In the <strong>Map Network Drive</strong> dialog box, type the UNC path to the Mac share, and be sure to enable the <strong>Connect using different credentials</strong> option. Next, click <strong>Finish</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Configuring-a-mapped-drive.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Configuring-a-mapped-drive.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Configuring a mapped drive" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Configuring-a-mapped-drive_thumb.png" alt="MAC Windows sharing - Configuring a mapped drive" width="515" height="369" /></a></p>
<p align="center"><em>Configuring a mapped drive</em></p>
<p>You are now prompted for your “workgroup” credentials. Type in your desired Mac OS X account creds and then click <strong>OK</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Providing-Mac-OS-X-credentials.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Providing-Mac-OS-X-credentials.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Providing Mac OS X credentials" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Providing-Mac-OS-X-credentials_thumb.png" alt="MAC Windows sharing - Providing Mac OS X credentials" width="445" height="267" /></a></p>
<p align="center"><em>Providing Mac OS X credentials</em></p>
<p>If all goes well, then the new mapped volume will appear in Windows Explorer:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Connection-to-Mac-from-Windows-Explorer.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Connection-to-Mac-from-Windows-Explorer.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="MAC Windows sharing - Connection to Mac from Windows Explorer" src="http://4sysops.com/wp-content/uploads/2012/01/MAC-Windows-sharing-Connection-to-Mac-from-Windows-Explorer_thumb.png" alt="MAC Windows sharing - Connection to Mac from Windows Explorer" width="515" height="400" /></a></p>
<p align="center"><em>Connection to Mac from Windows Explorer</em></p>
<h2>Conclusion</h2>
<p>At this point you might be thinking, “Wow, I’m disappointed. I thought that Mac OS X had more enterprise-level networking built into it.” Well, as it happens, it really does. In future installments of this series I will show you how we can link Open Directory, the Mac’s enterprise LDAP directory service, with Microsoft’s Active Directory Domain Services. At that point we really get closer to “big time” leveraging of Mac OS X in business.</p>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshooting-the-network-accounts-are-unavailable-error-in-mac-os-x-lion/" title="Troubleshooting the &#8220;Network accounts are unavailable&#8221; error in Mac OS X Lion (November 9, 2011)">Troubleshooting the &#8220;Network accounts are unavailable&#8221; error in Mac OS X Lion</a> (2)</li>
	<li><a href="http://4sysops.com/archives/active-directory-login-scripts-in-mac-os-x-part-3-third-party-alternatives/" title="Active Directory login scripts in Mac OS X &#8211; Part 3: Third-party alternatives (September 8, 2011)">Active Directory login scripts in Mac OS X &#8211; Part 3: Third-party alternatives</a> (0)</li>
	<li><a href="http://4sysops.com/archives/active-directory-login-scripts-in-mac-os-x-part-2-using-open-directory/" title="Active Directory login scripts in Mac OS X &#8211; Part 2: Using Open Directory (September 6, 2011)">Active Directory login scripts in Mac OS X &#8211; Part 2: Using Open Directory</a> (0)</li>
	<li><a href="http://4sysops.com/archives/active-directory-login-scripts-in-mac-os-x-part-1-basic-approaches/" title="Active Directory login scripts in Mac OS X &#8211; Part 1: Basic Approaches (September 1, 2011)">Active Directory login scripts in Mac OS X &#8211; Part 1: Basic Approaches</a> (1)</li>
	<li><a href="http://4sysops.com/archives/connecting-to-windows-shares-from-mac-os-x/" title="Connecting to Windows shares from Mac OS X (July 20, 2011)">Connecting to Windows shares from Mac OS X</a> (11)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/how-to-share-a-folder-in-mac-os-x-for-windows-users/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshoot slow logon &#8211; Part 1: Profile size</title>
		<link>http://4sysops.com/archives/troubleshoot-slow-logon-part-1-profile-size/</link>
		<comments>http://4sysops.com/archives/troubleshoot-slow-logon-part-1-profile-size/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 18:33:13 +0000</pubDate>
		<dc:creator>Aaron Denton</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[roaming profiles]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7731</guid>
		<description><![CDATA[One of the reasons a user may experience a slow logon are problems with a large roaming user profile. This post explains how to troubleshoot slow logon in Active Directory domain in those cases.]]></description>
			<content:encoded><![CDATA[<p><strong><i>One of the reasons a user may experience a slow logon are problems with a large roaming user profile. This post explains how to troubleshoot slow logon in Active Directory domain in those cases.</i></strong></p>
<p>I recently spent some time troubleshooting slow logons. I had several complaints and had also personally witnessed some very slow logons. After some investigation, I found that nearly all of the user’s had either a very large profile or had directories with extremely high file count. Rather than just delete and hope the problem didn’t happen again, I decided to seek out a solution that would prevent this from happening in the future.</p>
<p>As you may know, just before discovering a solution, there’s usually a key discovery that lowers your blood pressure and allows your confidence level to return to normal. For me, that moment was discovering the power of using the <strong>Exclude directories in roaming profile</strong> and <strong>Limit Profile size</strong> Group Policy settings together.</p>
<h2>Exclude directories in roaming profile and limit profile size</h2>
<p>The Group Policy Object (GPO) setting <em>Exclude directories in roaming profile</em> is one of those settings that is unusually self explanatory. It allows you to create a list of directories, from the root of the user roaming profile location, that should be excluded from roaming profile synchronization.</p>
<h2>How do I configure it?</h2>
<p>This group policy setting is located in the User Configuration/Policies/Administrative Templates/System/User Profiles section of a GPO. To add multiple folders, separate them in the list using a semi-colon. For example, to exclude the Cookies directory and the Mozilla directory use this for your value:</p>
<p><strong>AppData\Roaming\Microsoft\Windows\Cookies;AppData\Roaming\Mozilla</strong></p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Exclude-directories-in-roaming-profile.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Exclude-directories-in-roaming-profile.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="Slow logon - Exclude directories in roaming profile" src="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Exclude-directories-in-roaming-profile_thumb.png" alt="Slow logon - Exclude directories in roaming profile" width="604" height="433" border="0" /></a></p>
<p align="center"><em>Exclude directories in roaming profile</em></p>
<h2>What to exclude</h2>
<p>Sometimes profiles grow large and you may not be sure which directories are the cause. This is where the <em>Limit Profile size</em> setting comes in very handy. Enabling the setting allows you to specify what the Max profile size should be as well as the message to use to notify the end user. This could be a double-edged sword. It can prompt your user to contact you when their profile is large but should be used with caution depending upon your user group. In my experience, I found this was a great way to target those experiencing slow logons due to profile size.</p>
<p>For the admin, the real power in this setting is the Profile Storage Space dialog box that is enabled in the system tray of the user’s desktop. It allows you to quickly view a list of the files in the profile sorted by size. I found this to be invaluable. That is because the cause of each user’s large profile can be unique.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Profile-Storage-Space-dialog-box-enabled-with-Limit-profile-size.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Profile-Storage-Space-dialog-box-enabled-with-Limit-profile-size.png','',event,300,75)"><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="Slow logon - Profile Storage Space dialog box enabled with Limit profile size" src="http://4sysops.com/wp-content/uploads/2012/01/Slow-logon-Profile-Storage-Space-dialog-box-enabled-with-Limit-profile-size_thumb.png" alt="Slow logon - Profile Storage Space dialog box enabled with Limit profile size" width="401" height="408" border="0" /></a></p>
<p align="center"><em>Profile Storage Space dialog box enabled with Limit profile size</em></p>
<p>In your environment, I would recommend enabling this setting with a large Maximum profile size of somewhere around 300MB for those user’s that you know are having problems with slow logon. This will allow you to begin to assess the cause of the large profiles. As you add directories to the <em>Exclude directories in roaming profile</em> setting, you will see directories disappear from the Profile Storage Space view.</p>
<ul>
<li>Modify Exclude directories in roaming profile GPO setting that applies to the user</li>
<li>Synchronize domain controllers</li>
<li>Refresh group policy by running gpupdate /force from the command line</li>
<li>Log the user off and then back on</li>
<li>Double click the Profile Storage Space icon in the system tray</li>
</ul>
<p>Ideally, you want to get profile size below 50MB. Below is the list I’ve compiled that has taken care of this issue for most of my users. This should work for Windows Vista and later desktop users.
<strong>AppData\Roaming\Microsoft\Windows\PrivacIE;</strong><strong>AppData\Roaming\Microsoft\Windows\Cookies;
AppData\Roaming\Mozilla;AppData\Roaming\Adobe;AppData\Roaming\Macromedia;$Recycle.Bin; AppData\Local;AppData\LocalLow</strong></p>
<p>In the next article, I’ll discuss how customizing the three-headed monster (Indexing, System Restore, and Windows Error Reporting) can<a href="http://4sysops.com/archives/troubleshoot-slow-logon-part-2-the-3-headed-monster/"> improve user logon and desktop performance for domain users</a>.</p>
Author: Aaron Denton
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/troubleshoot-slow-logon-part-2-the-3-headed-monster/" title="Troubleshoot slow logon &#8211; Part 2: The 3-headed monster (January 6, 2012)">Troubleshoot slow logon &#8211; Part 2: The 3-headed monster</a> (0)</li>
	<li><a href="http://4sysops.com/archives/how-to-disable-the-shutdown-event-tracker-in-windows-server-2008-r2/" title="How to disable the Shutdown Event Tracker in Windows Server 2008 R2 (December 27, 2011)">How to disable the Shutdown Event Tracker in Windows Server 2008 R2</a> (0)</li>
	<li><a href="http://4sysops.com/archives/free-smart-defrag-a-defragmentation-tool/" title="FREE: Smart Defrag &#8211; A defragmentation tool (May 9, 2011)">FREE: Smart Defrag &#8211; A defragmentation tool</a> (9)</li>
	<li><a href="http://4sysops.com/archives/free-userprofilesview-view-user-profiles/" title="FREE: UserProfilesView &#8211; View user profiles (May 6, 2011)">FREE: UserProfilesView &#8211; View user profiles</a> (0)</li>
	<li><a href="http://4sysops.com/archives/free-novabench-free-benchmark-software/" title="FREE: NovaBench &#8211; Free benchmark software (April 4, 2011)">FREE: NovaBench &#8211; Free benchmark software</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/troubleshoot-slow-logon-part-1-profile-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable USB drive use in an Active Directory domain</title>
		<link>http://4sysops.com/archives/how-to-disable-usb-drive-use-in-an-active-directory-domain/</link>
		<comments>http://4sysops.com/archives/how-to-disable-usb-drive-use-in-an-active-directory-domain/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 19:05:31 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7709</guid>
		<description><![CDATA[In this article you will learn how to improve your network security by disabling Universal Serial Bus (USB) drive usage in your Active Directory domain.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this article you will learn how to improve your network security by disabling Universal Serial Bus (USB) drive usage in your Active Directory domain.</i></strong></p>
<p><a href="http://en.wikipedia.org/wiki/Usb">Universal Serial Bus</a> (USB) <a href="http://en.wikipedia.org/wiki/USB_flash_drive">flash drives</a> are undeniably convenient and easy to use. However, these devices pose very real security threats.</p>
<p>Number one, allowing your users to mount their own USB flash drives provides a vector for malicious code into your network. Number two, a malicious user can steal sensitive data by copying it to their flash drive and leaving the campus.</p>
<p>Here are a couple excellent articles that delve more deeply into IT security threats posed by USB devices:</p>
<ul>
<li><a href="http://www.darkreading.com/security/article/208803634/index.html">Social Engineering, the USB Way</a></li>
<li><a href="http://www.securityfocus.com/news/11397">USB Drives Pose Insider Threat</a></li>
</ul>
<p>You may decide to institute an IT security policy in your domain that prohibits use of personal USB devices. This is all well and good, but how many of your users will actually adhere to the policy without some kind of a control in place?</p>
<p>Fortunately, <a href="http://www.microsoft.com/windowsserver/">Windows Server 2008 R2</a> provides us administrators with a method for easily disabling USB drive access on Active Directory domain assets. Let’s get to work.</p>
<h2>Defining the restriction</h2>
<p>One important thing to keep in mind is that Microsoft made it MUCH easier to control removable drive access in Windows 7/Windows Server 2008 R2 Group Policy. If you need to restrict USB drives on earlier client operating systems (including Windows Vista), then one of the following links should prove helpful to you:</p>
<ul>
<li><a href="http://www.petri.co.il/disable_usb_disks_with_gpo.htm">How can I prevent users from using USB removable disks (USB flash drives) by using Group Policy (GPO)?</a></li>
<li><a href="http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/3255d483-1be6-41a2-b6e3-33317e7c4d13/">Group Policy..Block USB</a></li>
<li><a href="http://support.microsoft.com/kb/555324">HOWTO: Use Group Policy to disable USB, CD-ROM, Floppy Disk and LS-120 drivers</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/bb530324.aspx#grouppolicydeviceinstall_topic3c">Step-by-Step Guide to Controlling Device Installation Using Group Policy</a></li>
</ul>
<p>Now then: from one of your Active Directory Domain Services domain controllers or from an administrative workstation, open the Group Policy Management Console and link a new GPO to the appropriate target (domain, OU, etc.).</p>
<p>Within the Group Policy Editor, navigate to <strong>\Computer Configuration\Policies\Administrative Templates\System\Removable Storage Access</strong>.</p>
<p><strong>NOTE</strong>: If you prefer to set these restrictions on a per-user basis instead of computer-wide, then use the Group Policy path<strong> \User Configuration\Policies\Administrative Templates\System\Removable Storage Access</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive-Group-Policy-Removable-Storage-Access.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive-Group-Policy-Removable-Storage-Access.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Disable USB drive - Group Policy - Removable Storage Access" src="http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive-Group-Policy-Removable-Storage-Access_thumb.png" alt="Disable USB drive - Group Policy - Removable Storage Access" width="600" height="447" /></a></p>
<p align="center"><em>Group Policy &#8211; Removable Storage Access</em></p>
<p>Note from the above screenshot that we can use Group Policy to limit access to the following device classes:</p>
<ul>
<li>Optical drives (CD and DVD)</li>
<li>Floppy drives</li>
<li>Removable disks (USB devices)</li>
<li>Tape drives</li>
<li>Custom device classes</li>
</ul>
<p>By far, the most restrictive restriction (pardon the redundancy) is the policy <strong>All Removable Storage Classes: Deny All Access</strong>. If we enable this policy, as is shown in the following screen capture, then we prevent affected users from mounting ANY class of removable media.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive-usage-All-Removable-Storage-classes-Deny-all-access.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive-usage-All-Removable-Storage-classes-Deny-all-access.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Disable USB drive usage - All Removable Storage classes - Deny all access" src="http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive-usage-All-Removable-Storage-classes-Deny-all-access_thumb.png" alt="Disable USB drive usage - All Removable Storage classes - Deny all access" width="600" height="551" /></a></p>
<p align="center"><em>All Removable Storage classes &#8211; Deny all access</em></p>
<p>Naturally, we want to apply GPO security filtering to ensure that only our desired users and computers are affected by our new policy. From the Group Policy Management Console we can make use of the <strong>Security Filtering</strong> and/or the <strong>WMI Filtering</strong> areas to properly scope our GPO. This is depicted in the following screen image:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Disable USB drive" src="http://4sysops.com/wp-content/uploads/2012/01/Disable-USB-drive_thumb.png" alt="Disable USB drive" width="411" height="447" /></a></p>
<p align="center"><em>Disable USB drive</em></p>
<p>In order to put your new GPO into effect immediately, open an administrative command prompt and issue the following command:</p>
<p><em>gpupdate/ force</em></p>
<p>This command refreshes Group Policy throughout your Active Directory domain.</p>
<h2>How the restriction works</h2>
<p>Once your GPO has been ingested by your domain, a user will see the following message box whenever they attempt to mount a restricted media device:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2012/01/Disabled-removable-drive.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2012/01/Disabled-removable-drive.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Disabled removable drive" src="http://4sysops.com/wp-content/uploads/2012/01/Disabled-removable-drive_thumb.png" alt="Disabled removable drive" width="381" height="165" /></a></p>
<p align="center"><em>Disabled removable drive</em></p>
<p>It’s as simple as that!</p>
<h2>Conclusion</h2>
<p>In this article you learned how to leverage Windows Server 2008 Group Policy to disable USB drive us in our Active Directory domain. Have you initiated this policy in your environment? Please feel free to share your experiences and questions in the comments portion of this post.</p>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/microsoft-exam-70-640-active-directory-trusts/" title="Microsoft Exam 70-640 &#8211; Active Directory trusts (February 7, 2012)">Microsoft Exam 70-640 &#8211; Active Directory trusts</a> (0)</li>
	<li><a href="http://4sysops.com/archives/microsoft-exam-70-640-configuring-active-directory-forests-and-domains-sample-practice-question/" title="Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains &#8211; Sample question (January 18, 2012)">Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains &#8211; Sample question</a> (5)</li>
	<li><a href="http://4sysops.com/archives/microsoft-exam-70-640-configuring-active-directory-forests-and-domains/" title="Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains (January 17, 2012)">Microsoft Exam 70-640 &#8211; Active Directory Forests and Domains</a> (0)</li>
	<li><a href="http://4sysops.com/archives/free-phonefactor-mobile-phone-based-two-factor-authentication/" title="FREE: PhoneFactor &#8211; Mobile phone based two-factor authentication (January 16, 2012)">FREE: PhoneFactor &#8211; Mobile phone based two-factor authentication</a> (1)</li>
	<li><a href="http://4sysops.com/archives/how-to-synchronize-windows-server-2008-with-an-external-time-server/" title="How to synchronize Windows Server 2008 with an external time server (January 9, 2012)">How to synchronize Windows Server 2008 with an external time server</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/how-to-disable-usb-drive-use-in-an-active-directory-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Service Account best practices &#8211; Part 2: Least Privilege implementation</title>
		<link>http://4sysops.com/archives/service-account-best-practices-part-2-least-privilege-implementation/</link>
		<comments>http://4sysops.com/archives/service-account-best-practices-part-2-least-privilege-implementation/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 19:05:09 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[processes]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7699</guid>
		<description><![CDATA[In this article you will learn some best-practice suggestions for using service applications according to the IT security rule of least privilege.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this article you will learn some best-practice suggestions for using service applications according to the IT security rule of least privilege.</i></strong></p>
<p>In my previous article, we defined <a href="http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account">services and service accounts</a> and also examined what options there are for selecting a service account for use with a particular service or application.</p>
<p>Here we take that fundamental knowledge and put it in more of a practical context. In real world multi-tier Web application scenarios, a Windows administrator can quickly become overwhelmed in keeping track of which service account he or she used with which application or service.</p>
<p>Consider the following example diagram:</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/A-typical-multi-tier-Web-application-topology.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/A-typical-multi-tier-Web-application-topology.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="A typical multi-tier Web application topology" src="http://4sysops.com/wp-content/uploads/2011/12/A-typical-multi-tier-Web-application-topology_thumb.png" alt="A typical multi-tier Web application topology" width="446" height="214" /></a></p>
<p align="center"><em>A typical multi-tier Web application topology</em></p>
<p>Think of how many service accounts we require in the preceding scenario:</p>
<ul>
<li>Client services (likely if the client is using anything beyond a simple Web browser to access the Web application)</li>
<li>IIS services</li>
<li>AD and related infrastructure services (DNS, DHCP, etc.)</li>
<li>Application services (SharePoint 2010, for instance, requires an entire suite of service account-attached services and applications</li>
<li>SQL Server services</li>
<li>“Standard” Windows services (Server service, etc.)</li>
</ul>
<p>What is a busy Windows systems administrator to do? Well, read on and I’ll tell you.</p>
<h2>Tip #1: Remember the Principle of Least Service</h2>
<p>The IT security principle of least service means, in a nutshell, if you don’t absolutely require a specific service, disable it. Just turn it off. By performing this action we not only conserve system and possibly network resources, but we also reduce the number of attack vectors a malicious user can employ to penetrate your network.</p>
<p>As you know, we can manage all aspects of Windows services by using either the Service Control Manager (<strong>services.msc</strong>) MMC console or (even better) through Group Policy. The relevant Group Policy path is <strong>\Computer Configuration\Preferences\Control Panel Settings\Services</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Managing-services-with-Group-Policy.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Managing-services-with-Group-Policy.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Managing services with Group Policy" src="http://4sysops.com/wp-content/uploads/2011/12/Managing-services-with-Group-Policy_thumb.png" alt="Managing services with Group Policy" width="600" height="296" /></a></p>
<p align="center"><em>Managing services with Group Policy</em></p>
<h2>Tip #2: Know exactly what your applications and services are doing</h2>
<p>Microsoft does a fairly decent job of enumerating the system privileges and file system permissions that its enterprise applications grant automatically to service accounts. For instance, check out the following links and prepare to be surprised:</p>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/cc678863.aspx">SharePoint 2010 Account Permissions and Security Settings</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms143504.aspx">SQL Server 2008 R2: Setting Up Windows Service Accounts</a></li>
<li><a href="http://exchange.exiis.net/KB_ARTICLES/KB3/Pages/ExchangeRoles,Rights,andPermissions.aspx">Exchange 2010: Roles, Rights, and Permissions</a></li>
</ul>
<p>You need to remain ever-aware of any “out of the box” privilege escalation that your line-of-business applications grant to service account. The best way to do this is to keep a wary and scrupulous eye on the vendor’s documentation.</p>
<h2>Tip #3: Be Vigilant regarding the Everyone and Authenticated users groups</h2>
<p><strong>Everyone</strong> and <strong>Authenticated Users</strong> are dynamic security principals, which means that their membership is controlled by your network environment itself and that we administrators cannot control membership to these group identities.</p>
<p>The <strong>Everyone</strong> identity includes all authenticated and unauthenticated network users (this includes Local Service, people).</p>
<p>The <strong>Authenticated Users</strong> identity includes all domain user and computer accounts who have successfully authenticated to Active Directory. This group includes the Local System and <strong>Network Service</strong> built-in service account identities.</p>
<p>Thus, our “take-home” message is to keep a careful eye on where and how we are assigning access permissions to these two special groups.</p>
<p>We can control which accounts have which system privilege by using Group Policy; the relevant Group Policy path is <strong>\Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment</strong>.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Managing-user-rights-with-Group-Policy.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Managing-user-rights-with-Group-Policy.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Managing user rights with Group Policy" src="http://4sysops.com/wp-content/uploads/2011/12/Managing-user-rights-with-Group-Policy_thumb.png" alt="Managing user rights with Group Policy" width="600" height="420" /></a></p>
<p align="center"><em>Managing user rights with Group Policy</em></p>
<p><em><strong>NOTE 1</strong>: System privileges are also called user rights. Either way, we refer to system-wide abilities such as logging on as a service, logging on locally, changing the system time, and so forth</em>.</p>
<p><em><strong>NOTE 2</strong>: Be sure to exercise due diligence and perform research prior to making user rights assignments in Group Policy. We don’t want to inadvertently break LOB application access.</em></p>
<h2>Tip #4: Remember that network service authenticates as the Computer</h2>
<p>If you opt to associate the built-in Network Service service account to a network-aware service, be aware that when that service makes a remote connection, it does so under the security context of the “calling” computer account (not user account).</p>
<p>Thus, you may need to adjust the discretionary access control lists (DACLs) on relevant target systems to include an access control entry (ACE) for the calling computer.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Editing-a-DACL-for-an-IIS-Web-application.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Editing-a-DACL-for-an-IIS-Web-application.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Editing a DACL for an IIS Web application" src="http://4sysops.com/wp-content/uploads/2011/12/Editing-a-DACL-for-an-IIS-Web-application_thumb.png" alt="Editing a DACL for an IIS Web application" width="600" height="400" /></a></p>
<p align="center"><em>Editing a DACL for an IIS Web application</em></p>
<h2>Tip #5: Use separate domain user accounts for services and applications</h2>
<p>The main reasons why I suggest that you use dedicated domain user accounts for service accounts instead of the built-in identities are as follows:</p>
<ul>
<li>By using domain user accounts as service account logons, you can more granularly audit access locally and across your network</li>
<li>For applications that support them, <a href="http://technet.microsoft.com/en-us/library/dd560633(v=ws.10).aspx">managed user accounts (MSAs)</a> enable you to use domain password policy with your service accounts</li>
<li>A domain user account has unquestioned visibility throughout your entire domain and Active Directory forest</li>
<li>Domain user accounts can be more definitively targeted with Group Policy</li>
<li>Using domain user accounts consistently makes it easier to manage multi-tier application infrastructures</li>
</ul>
<p>Speaking of Group Policy, you might want to ensure that your domain service accounts are <a href="http://www.windowsitpro.com/article/security/service-accounts-can-be-secure-yet-have-non-expiring-passwords">denied the <strong>Log on Locally</strong> user right</a> at the very least. This action will prevent a malicious user from succeeding in an interactive logon attempt by using a breached service account.</p>
<p>With regard to my final point about consistent use of service accounts, Microsoft recommends that you assign different service accounts to different services within each enterprise application. The thinking here is that an attacker would have to compromise more than one account to “own” your application.</p>
<p>The only “gotcha” with using multiple service accounts is the pure confusion factor that can happen if you deploy the service accounts with no consistency. To reduce the confusion, (a) store your service accounts in separate organizational units (OUs) in Active Directory; and (b) name the accounts in an intuitive manner.</p>
<h2>Conclusion</h2>
<p>In this lesson we learned some industry best practices for using service accounts in a Windows-based, multi-tier application infrastructure. To be sure, we have truly only scratched the surface of this behemoth of a topic.</p>
<p>Please feel free to share your own experiences, war stories, tips, etc. in the comments portion of this post. The Windows admin community deeply needs a vibrant yet solid knowledge base for this subject.</p>
<h2>Further reading</h2>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/dd548356%28WS.10%29.aspx">Service Accounts Step-by-Step Guide</a></li>
<li><a href="http://technet.microsoft.com/en-us/library/cc170953.aspx">Services and Service Accounts Security Planning Guide</a></li>
</ul>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/free-phonefactor-mobile-phone-based-two-factor-authentication/" title="FREE: PhoneFactor &#8211; Mobile phone based two-factor authentication (January 16, 2012)">FREE: PhoneFactor &#8211; Mobile phone based two-factor authentication</a> (1)</li>
	<li><a href="http://4sysops.com/archives/how-to-disable-usb-drive-use-in-an-active-directory-domain/" title="How to disable USB drive use in an Active Directory domain (January 2, 2012)">How to disable USB drive use in an Active Directory domain</a> (0)</li>
	<li><a href="http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account/" title="Service Account best practices Part 1: Choosing a Service Account (December 29, 2011)">Service Account best practices Part 1: Choosing a Service Account</a> (0)</li>
	<li><a href="http://4sysops.com/archives/four-fast-ways-to-improve-security-in-sql-server-2008-r2/" title="Four fast ways to improve security in SQL Server 2008 R2 (November 22, 2011)">Four fast ways to improve security in SQL Server 2008 R2</a> (12)</li>
	<li><a href="http://4sysops.com/archives/managed-service-accounts-in-windows-server-2008-r2/" title="Managed Service Accounts in Windows Server 2008 R2 (November 18, 2011)">Managed Service Accounts in Windows Server 2008 R2</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/service-account-best-practices-part-2-least-privilege-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Service Account best practices Part 1: Choosing a Service Account</title>
		<link>http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account/</link>
		<comments>http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 19:05:08 +0000</pubDate>
		<dc:creator>Timothy Warner</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[processes]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7690</guid>
		<description><![CDATA[In this article you will learn the fundamentals of Windows service accounts. Specifically, we discover the options and best practices concerning the selection of a service account for a particular service application.]]></description>
			<content:encoded><![CDATA[<p><strong><i>In this article you will learn the fundamentals of Windows service accounts. Specifically, we discover the options and best practices concerning the selection of a service account for a particular service application.</i></strong></p>
<p>It is a common mistake for entry-level Windows systems administrators to associate a local or domain Administrator account with Windows services and applications. I hope that you can see how dangerous a practice this is. If a malicious user were to compromise a service account, then that malicious user accesses your domain up to and including all level of privilege of the associated service account.</p>
<p>It is my goal in this mini-series on Windows service accounts to teach you exactly what these accounts are, what options we have in using them, and what specific best practices Microsoft recommends for their use. Let’s get to work.</p>
<h2>What is a Service?</h2>
<p>A <em>service</em> is compiled code that is typically long-running and executes with no user interaction. By “long-running” we mean that many services are configured to start automatically with Windows. By “no user interaction” we mean that the service typically runs in the background with no visible front-end user interface.</p>
<p>As you know, we can view and modify services by using the Service Control Manager (<strong>services.msc</strong>) MMC console. We can also view active services by using Task Manager or Sysinternals <a href="http://4sysops.com/archives/sysinternals-process-explorer-a-better-task-manager/">Process Explorer</a>.</p>
<p><em><strong>NOTE</strong>: Process Explorer is a far superior choice for viewing live processes because we can “drill into” the <strong>svchost.exe</strong> generic host processes to see individual service names.</em></p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Viewing-services-in-Sysinternals-Process-Explorer.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Viewing-services-in-Sysinternals-Process-Explorer.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Viewing services in Sysinternals Process Explorer" src="http://4sysops.com/wp-content/uploads/2011/12/Viewing-services-in-Sysinternals-Process-Explorer_thumb.png" alt="Viewing services in Sysinternals Process Explorer" width="476" height="260" /></a></p>
<p align="center"><em>Viewing services in Sysinternals Process Explorer</em></p>
<p>The IT security <em>principle of least service</em> means, simply, that if we don’t need a particular service on a system, we should disable said service. Note that I said disable the service and not simply set its startup type to Manual.</p>
<p>By applying the least service principle, we not only conserve system resources but we also minimize the attack surface of the system.</p>
<h2>What is a Service Account?</h2>
<p>A <em>service account</em> is a Windows user identity that is associated with a service executable for the purpose of providing a security context for that service.</p>
<p>More broadly, we can say that service accounts are used not only for Windows services, but also for many enterprise applications. For instance, <a href="http://www.ericharlan.com/Moss_SharePoint_2007_Blog/sharepoint-2010-service-account-reference-guide-a184.html">SharePoint 2010</a> requires service accounts not only for its registered Windows services, but also for its internal application components.</p>
<p>Microsoft introduced <a href="http://4sysops.com/archives/managed-service-accounts-in-windows-server-2008-r2/">managed service accounts (MSAs)</a> in Windows Server 2008 R2 as a way to ease our administrative burden in managing service account passwords. The great thing about MSAs is that we don’t have to worry about our domain password policy messing up our service accounts and breaking our line-of-business (LOB) applications.</p>
<p>The bad thing about MSAs is that because they are still so new, their use is not supported universally, even among Microsoft’s own enterprise application portfolio.</p>
<p><em><strong>NOTE</strong>: Surprisingly, MSAs are supported in SharePoint 2010 but not in SQL Server 2008, which is the data store used by SharePoint.</em></p>
<p>Because of this compatibility problem, we will not include the use of MSAs in this discussion of service account best practices.</p>
<h2>Options for Service Accounts</h2>
<p>In terms of selecting a user account for a service or application, our choices fall along two lines:</p>
<ul>
<li>A built-in operating system identity</li>
<li>A local or domain user account</li>
</ul>
<p>The following table summarizes the major aspects of the built-in OS identities that are used as default service accounts in Windows.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="145"><strong>Account Name</strong></td>
<td valign="top" width="224"><strong>ACL Name</strong></td>
<td valign="top" width="142"><strong>Visibility</strong></td>
<td valign="top" width="142"><strong>Default Privilege Level</strong></td>
</tr>
<tr>
<td valign="top" width="145">Local System</td>
<td valign="top" width="224">NT AUTHORITY\System</td>
<td valign="top" width="142">Local and Network (network access uses computer account credentials)</td>
<td valign="top" width="142">High</td>
</tr>
<tr>
<td valign="top" width="145">Local Service</td>
<td valign="top" width="224">NT AUTHORITY\LocalService</td>
<td valign="top" width="142">Local and Network (network access uses anonymous credentials)</td>
<td valign="top" width="142">Low (as authenticated user)</td>
</tr>
<tr>
<td valign="top" width="145">Network Service</td>
<td valign="top" width="224">NT AUTHORITY\NetworkService</td>
<td valign="top" width="142">Network (uses computer account credentials)</td>
<td valign="top" width="142">Low (as authenticated user)</td>
</tr>
</tbody>
</table>
<p>I would like to point out some additional facts concerning the account identities in the previously given table:</p>
<p><strong>You don’t have to manage their passwords.</strong> Because these built-in identities are created by Windows itself, the operating system manages their account passwords. In this respect these accounts function like MSAs.</p>
<p><strong>The System account is very highly privileged</strong>. The Local System identity is granted system privileges that make this account in many ways more powerful than the built-in Administrator account. Although Local System was designed for access on a local computer only, this account can be associated with services and applications that move across your network. In this case, the credential that is presented to remote processes is Domainname\machinename$.</p>
<p><strong>Be wary of Local Service and Network Service account group membership.</strong> Again, the ‘Local’ and ‘Network’ parts of these account names inform us that the Local Service and Network Service accounts are targeted at local and network use, respectively.</p>
<p>However, you should always keep in mind that the Local Service account runs locally as a member of the computer’s Local Users group (Domain Users on domain controllers) and runs remotely as an anonymous connection.</p>
<p>By contrast, the Network Service account runs locally as a member of the local Users or Domain Users groups, and runs remotely as a member of the Authenticated Users group. In addition, Network Service inherits any permissions that have been granted to the source computer account in Active Directory.</p>
<h2>User Accounts as Service Accounts</h2>
<p>You can sidestep some of the complexities of running services with the built-in service accounts by instead using a local or domain user account. One “gotcha” to keep in mind is that Windows automatically grants additional privileges (most notable the Log on as a Service user right) to user accounts we associate with services.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Service-account-privilege-escalation.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Service-account-privilege-escalation.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Service account privilege escalation" src="http://4sysops.com/wp-content/uploads/2011/12/Service-account-privilege-escalation_thumb.png" alt="Service account privilege escalation" width="446" height="439" /></a></p>
<p align="center"><em>Service account privilege escalation</em></p>
<p>In addition, applications that leverage service accounts may grant additional permissions on top of the OS system privileges.</p>
<p>For this reason, it is imperative that you never use a service account for interactive logon. In other words, a human being should never log on to a system by using a service account identity.</p>
<p>We can again use the wonderful Sysinternals Process Explorer tool to retrieve “at a glance” data concerning specifically which system privileges have been granted a service account-driven process.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Sysinternals-Process-Explorer-System-privileges-service-account.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Sysinternals-Process-Explorer-System-privileges-service-account.png','',event,300,75)"><img style="margin: 0px auto; display: block; float: none;" title="Sysinternals Process Explorer - System privileges service account" src="http://4sysops.com/wp-content/uploads/2011/12/Sysinternals-Process-Explorer-System-privileges-service-account_thumb.png" alt="Sysinternals Process Explorer - System privileges service account" width="382" height="439" /></a></p>
<p align="center"><em>Sysinternals Process Explorer &#8211; System privileges service account</em></p>
<h2>So Which Account Should I Choose?</h2>
<p><a href="http://technet.microsoft.com/en-us/library/cc170953.aspx">According to Microsoft</a>, Windows administrators should choose service accounts based upon the following hierarchy. This hierarchy is ordered from least privilege to greatest privilege:</p>
<ol>
<li>Local Service</li>
<li>Network Service</li>
<li>Unique domain user account</li>
<li>Local System</li>
<li>Local Administrator account</li>
<li>Domain Administrator account</li>
</ol>
<p>Obviously, options 5 and 6 in the list represent “worst-case scenarios” in which a given service or application simply will not run with a service account containing lesser privilege and permissions.</p>
<h2>Conclusion</h2>
<p>In this lesson we learned the basic terminology governing service accounts in Windows. We also examined the options available to us in service account use. In the next installment of this series, we will cover the <a href="http://4sysops.com/archives/service-account-best-practices-part-2-least-privilege-implementation/">practical application of service accounts in a multi-tier network application context</a>.</p>
Author: Timothy Warner
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/service-account-best-practices-part-2-least-privilege-implementation/" title="Service Account best practices &#8211; Part 2: Least Privilege implementation (December 30, 2011)">Service Account best practices &#8211; Part 2: Least Privilege implementation</a> (0)</li>
	<li><a href="http://4sysops.com/archives/raffle-visualcron-an-advanced-task-scheduler-for-windows/" title="Raffle: VisualCron &#8211; An advanced task scheduler for Windows (June 28, 2011)">Raffle: VisualCron &#8211; An advanced task scheduler for Windows</a> (0)</li>
	<li><a href="http://4sysops.com/archives/autoadministrator-2-3-part-3-remote-execute-programs-services-shutdownreboot/" title="AutoAdministrator 2.3 &#8211; Part 3: Remote execute: Programs, services, shutdown/reboot (November 17, 2010)">AutoAdministrator 2.3 &#8211; Part 3: Remote execute: Programs, services, shutdown/reboot</a> (0)</li>
	<li><a href="http://4sysops.com/archives/prevent-restarts-triggered-by-third-party-applications/" title="Prevent restarts triggered by third-party applications (October 8, 2010)">Prevent restarts triggered by third-party applications</a> (1)</li>
	<li><a href="http://4sysops.com/archives/four-ways-to-stop-a-shutdown-or-reboot/" title="Four ways to stop a shutdown or reboot (October 7, 2010)">Four ways to stop a shutdown or reboot</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/service-account-best-practices-part-1-choosing-a-service-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notifications and Custom Commands in Nagwin/Nrpe</title>
		<link>http://4sysops.com/archives/notifications-and-custom-commands-in-nagwinnrpe/</link>
		<comments>http://4sysops.com/archives/notifications-and-custom-commands-in-nagwinnrpe/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 19:05:54 +0000</pubDate>
		<dc:creator>Justin Shin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">https://4sysops.com/?p=7661</guid>
		<description><![CDATA[This third part in our <a href="http://4sysops.com/archives/free-nagwin-nagios-for-windows/">Nagwin series</a> focuses on configuring Nagios contacts and notifications for server status.]]></description>
			<content:encoded><![CDATA[<p><strong><i>This third part in our <a href="http://4sysops.com/archives/free-nagwin-nagios-for-windows/">Nagwin series</a> focuses on configuring Nagios contacts and notifications for server status.</i></strong></p>
<p>What’s better than being able to check on server health status through the Nagios monitoring views? Having Nagios notify you of server health status automatically! If you have ever had a server fail, shut down, or hang—only to learn about it later from disgruntled users—you’ll understand why this feature is so valuable.</p>
<h2>Creating and Managing Contacts</h2>
<p>Nagios can notify you of certain changes or issues in server configuration that may occur. Sometimes you want different alerts sent to different email addresses. For example, you may want to send alerts about a database server’s health to the DBA, and send all other alerts to the systems administrator. To define a single contact, navigate to your ICW root and go to folder /etc/nagios/nagwin. Open the contacts.cfg file in your favorite text editor. Let’s get started on defining contacts. A contact definition has the following form:</p>
<pre>
define contact {   
contact_name           systems_admin_1; short name of contact
usegeneric-contact     default contact template
alias                  Johnny Bernard Doe; full name
email                  jdoe@mycompany.com; email address
}</pre>
<p>The “use” directive informs Nagios of which contact you would like to use. For now, use the default generic-contact option; we will explore contact templates in a bit.</p>
<p>Once you create several contacts, you may want to group them together, like you would with an email alias. Suppose we have four contacts: two admins and two DBAs. We might want to create two contact groups: sysadmins and dbadmins.</p>
<pre>
define contactgroup {    
contactgroup_name sysadmins;                 system alias
alias Systems Administrators;                full name of alias
members systems_admin_1,systems_admin_2;     comma separated list
}
define contactgroup {
contactgroup_name                            dbadmins;
alias                                        Database Administrators;
members                                      dba_1,dba_2;
}
</pre>
<h2>Configuring Notifications</h2>
<p>Nagios allows the administrator to configure notifications at different levels of granularity, including, but not limited to:</p>
<ul>   
<li>Who is being notified </li>
<li>Type of notification event (host status vs. service) </li>
<li>How severe the event is (from service flapping to host downtime) </li>
<li>When the event occurs </li>
</ul>
<p>Notification options are defined in the templates.cfg file using host, service, and contact template directives. <span style="text-decoration: underline"><a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html">You can find an exhaustive list of directives with explanations here</a></span>, but let’s start out by exploring some simplistic templates and directives.</p>
<h2>Contact Templates</h2>
<p>Contact templates allow us to define shared notification attributes for different contacts. Some contact template directives include:</p>
<ul>   
<li><em>service_notification_period:</em> When the contact can receive <em>service</em> notifications </li>
<li><em>host_notification_period:</em> When the contact can receive <em>host</em> notifications </li>
<li><em>service_notification_options:</em> What kinds of service notifications the contact receives </li>
<li><em>host_notification_options:</em> What kinds of host notifications the contact receives </li>
<li><em>service_notification_commands:</em> How service notifications are handled </li>
<li><em>host_notification_commands:</em> How host notifications are handled </li>
</ul>
<p>We can put together an “admin” contact that receives only host notifications on a 24&#215;7 basis and for all types of notification events:</p>
<pre>
define contact {    
name                             generic-admin-contact;
service_notifications_enabled    0; don’t enable service notes    
host_notifications_enabled       1;    
host_notification_options        d,u,r,f,s; all   
host_notification_commands       notify-host-by-email; send email
register                         0; because this is a template
}
</pre>
<p>Note that we can also define these options on a “per contact” basis; the only difference is that these directives would be specified in the contacts.cfg definition for that contact rather than in the templates.cfg contact template definition.</p>
<h2>Host Templates</h2>
<p>Host templates enable administrators to define some shared notification options for different host templates. Consider the default Windows Server template. By now, most of the directives should be fairly self-evident because they are so similar to the contact template directives:</p>
<pre>
define host {
name                   windows-server; alias
use                    generic-host; base template definition
check_period           24 x 7;
check_interval         5;
retry_interval         1;
max_check_attempts     10;
check_command          heck-host-alive; typically use this notification_period
notification_interval  30;
notification_options   d,3;
contact_groups         admins;
hostgroups             windows-servers;
icon_image             win40.png
register               0; because it’s a template
}
</pre>
<p>Imagine we wanted to create a Windows DB server template that had all of the attributes of the Windows Server template, with two exceptions: you want notifications to be pushed to only those in the dbadmins group, and you want to change the notification options to include all states. You would add the following definition:</p>
<pre>
define host {
name                   db-windows-server; new name
use                    windows-server; base template
notification_options   d,r,u,f,s; new options
contact_groups         dbadmins; new group to notify
}
</pre>
<h2>Service Templates</h2>
<p>Service templates allow you to configure how services will be handled with regard to notifications. We will not be covering these directives in the interest of your time, but <span style="text-decoration: underline"><a href="http://homepage.mac.com/duling/halfdozen/Nagios-Howto-p1.html">they are explained</a></span> in several other guides online.</p>
<h2>End Result</h2>
<p>Once you have configured your contacts, contact groups, and notification templates to your liking, restart the Nagwin_Nagios service in services.msc. Upon restart, your configuration will kick in. You can verify any contacts you’ve created in the Configuration -&gt; Contacts section of the Nagios web administration interface.</p>
<p><a href="http://4sysops.com/wp-content/uploads/2011/12/Notifications-and-Custom-Commands-in-Nagwin-Nrpe.png" onclick="return enlarge('http://4sysops.com/wp-content/plugins/zap_imgpop/','http://4sysops.com/wp-content/uploads/2011/12/Notifications-and-Custom-Commands-in-Nagwin-Nrpe.png','',event,300,75)"><img style="background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Notifications and Custom Commands in Nagwin-Nrpe" border="0" alt="Notifications and Custom Commands in Nagwin-Nrpe" src="http://4sysops.com/wp-content/uploads/2011/12/Notifications-and-Custom-Commands-in-Nagwin-Nrpe_thumb.png" width="604" height="116" /></a></p>
Author: Justin Shin
<br />
<small>Copyright &#169; 2006-2012, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0</small><br />
	<br /><strong>Related</strong>
	<ul class="st-related-posts">
	<li><a href="http://4sysops.com/archives/poll-are-you-currently-using-a-monitoring-solution/" title="Poll: Are you currently using a monitoring solution? (January 17, 2012)">Poll: Are you currently using a monitoring solution?</a> (11)</li>
	<li><a href="http://4sysops.com/archives/scom-2012-review-part-8-dashboards/" title="SCOM 2012 review &#8211; Part 8: Dashboards (December 28, 2011)">SCOM 2012 review &#8211; Part 8: Dashboards</a> (0)</li>
	<li><a href="http://4sysops.com/archives/scom-2012-review-part-7-linux-and-jee-monitoring/" title="SCOM 2012 review &#8211; Part 7: Linux and JEE monitoring (December 26, 2011)">SCOM 2012 review &#8211; Part 7: Linux and JEE monitoring</a> (4)</li>
	<li><a href="http://4sysops.com/archives/scom-2012-review-part-6-application-performance-monitoring-apm/" title="SCOM 2012 review &#8211; Part 6: Application Performance Monitoring (APM) (December 21, 2011)">SCOM 2012 review &#8211; Part 6: Application Performance Monitoring (APM)</a> (1)</li>
	<li><a href="http://4sysops.com/archives/scom-2012-review-part-5-network-monitoring/" title="SCOM 2012 review &#8211; Part 5: Network Monitoring (December 19, 2011)">SCOM 2012 review &#8211; Part 5: Network Monitoring</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://4sysops.com/archives/notifications-and-custom-commands-in-nagwinnrpe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

