<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>daGrind &#187; Windows</title>
	<atom:link href="http://dagrind.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://dagrind.com</link>
	<description>Technologically Unchallenged</description>
	<lastBuildDate>Tue, 13 Dec 2011 21:10:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>DPAPI</title>
		<link>http://dagrind.com/2010/02/10/dpapi/</link>
		<comments>http://dagrind.com/2010/02/10/dpapi/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 13:43:44 +0000</pubDate>
		<dc:creator>Todd Casey</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DPAPI]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://dagrind.com/?p=242</guid>
		<description><![CDATA[I wrote this documentation and project years ago and found it while looking through some of my archives last night. It probably still has some millage left and might be found useful to someone setting up DPAPI. You can download the binaries or source code below. Download Binaries &#124; Source DPAPI Setup 1. Create the [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this documentation and project years ago and found it while looking through some of my archives last night. It probably still has some millage left and might be found useful to someone setting up DPAPI. You can download the binaries or source code below.</p>
<p>Download <a title="DPAPI Binaries" href="http://dagrind.com/files/2010/02/DPAPIBinaries.zip">Binaries</a> | <a title="DPAPI Source" href="http://dagrind.com/files/2010/02/DPAPISource.zip">Source</a></p>
<p><strong>DPAPI Setup</strong></p>
<p>1. Create the directory <strong>C:\DPAPI</strong> and copy the contents from the DPAPI directory (found in <a title="DPAPI Binaries" href="http://dagrind.com/files/2010/02/DPAPIBinaries.zip">DPAPIBinaries.zip</a>) into the new directory.</p>
<p>2. Create a local Windows account that will be used to run the Enterprise Services Application and Windows Service with the username <strong>DPAPIAccount</strong>. Make sure to uncheck the <strong>User must change password at next logon</strong> check box and check the <strong>Password never expires</strong> check box. Use the Local Security Policy tool in the Administrative Tools programs group to give the account the <strong>Log on locally</strong> and <strong>Log on as a batch job</strong> privileges.</p>
<p>You must log off with your current account and login as the DPAPIAccount user to create the user profile. Once you have logged in as the DPAPIAccount user you can then log off and log back in as your normal account.</p>
<p>3. Open a command prompt and run the following command to register the serviced component.</p>
<p><strong>regsvcs C:\DPAPI\DPAPIComp.dll</strong></p>
<p>4. Open the Component Services management console and navigate to the Component Services-&gt;Computers-&gt;My Computer-&gt;COM+ Applications folder. Right-click on the <strong>DPAPI Helper Application</strong> application and select the <strong>Properties</strong> menu option.</p>
<p>6. Click on the <strong>Identity</strong> tab and select the <strong>This user</strong> radio button. Enter the MachineName\DPAPIAccount username and password and then click on the OK button.</p>
<p>7. Expand the DPAPI Helper Application-&gt;Roles folder. You will need to add the users to the Roles\Users nodes that will need access to encrypt and decrypt. All users that need access to encrypt and/or decrypt must also be added to the Marshaler\Users node.</p>
<p>Add the MachineName\ASPNET ("NETWORK SERVICE" in IIS 6.0) user to all three groups for this example since we will test encrypting and decrypting through an ASP.NET application.</p>
<p>8. Open a command prompt and run the following command to install the Windows service.</p>
<p><strong>installutil C:\DPAPI\DPAPIService.exe</strong></p>
<p>Enter the MachineName\DPAPIAccount ("NETWORK SERVICE" in IIS 6.0) username and password and click the "OK" button.</p>
<p>9. Open the Services management console and start the <strong>DPAPI Service</strong> service.</p>
<p>10. Open the IIS management console and add a new virtual directory named <strong>DPAPIWeb</strong>.</p>
<p>11. Copy the contents from the DPAPIWeb directory (found in <a title="DPAPI Binaries" href="http://dagrind.com/files/2010/02/DPAPIBinaries.zip">DPAPIBinaries.zip</a>) into the new virtual directory.</p>
<p>12. Open <strong>http://localhost/DPAPIWeb/WebForm1.aspx</strong> in a browser and test encrypting and decrypting. Obviously, you would want to make sure that this application was not accessible outside of the local server.</p>
]]></content:encoded>
			<wfw:commentRss>http://dagrind.com/2010/02/10/dpapi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping Windows Secure</title>
		<link>http://dagrind.com/2005/09/06/keeping-windows-secure/</link>
		<comments>http://dagrind.com/2005/09/06/keeping-windows-secure/#comments</comments>
		<pubDate>Tue, 06 Sep 2005 17:04:06 +0000</pubDate>
		<dc:creator>Todd Casey</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://dagrind.com/?p=149</guid>
		<description><![CDATA[Introduction I am constantly looking for the best ways to keep Windows secure against potential attacks and exploits. I have used Windows XP since RC1 and because I also manage multiple Windows Server 2003 servers, security is always the first step I take after installing Windows XP/Server. The steps described below are ones I practice [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong><br />
I am constantly looking for the best ways to keep Windows secure against potential attacks and exploits. I have used Windows XP since RC1 and because I also manage multiple Windows Server 2003 servers, security is always the first step I take after installing Windows XP/Server.</p>
<p>The steps described below are ones I practice at work and at home. Although they directly apply to Windows XP Pro and Windows Server 2003, these steps can also be applied to some extent to other versions of Windows. Since using these, I have never had a virus, and the servers that I manage have never been penetrated even though attempts have been made.</p>
<p>I will continue to add items to this page as I become aware of new practices and better ways to keep Windows secure. Please feel free to send me information on ways that you keep your systems secure.</p>
<p><strong>Rename Default Administrator User</strong><br />
Rename the default Administrator user to something else. Setup a user with the username of ‘Administrator’ and add only to the Users group. Disable this account. This will help with quickly seeing what attempts have been made to login with the ‘Administrator’ username.</p>
<p>Now you need to add a user that is a member of the Users group and this will become your main login. The objective of this account is to run with the least amount of privileges that are needed for the majority of operations. I am a big advocate of running with least privileges and believe there is never a good reason to have your main login be a member of the Administrators group. You can always use “Run As…” when you need to run process that require higher privileges.</p>
<p><strong>Enable Auditing &amp; Hide Last Login Username</strong><br />
1. Execute the Administrator Tools Local Security Policy application.<br />
2. Expand the Local Policy node.<br />
3. Click on the Audit Policy node.<br />
4. Double click, or right click and select Properties, on the<br />
‘Audit account login events’ item.<br />
<a href="http://dagrind.com/files/2010/02/audit.jpg" rel="lightbox[149]"><img class="alignnone size-full wp-image-152" title="audit" src="http://dagrind.com/files/2010/02/audit.jpg" alt="" width="404" height="312" /></a><br />
5. Check both the ‘Success’ and ‘Failure’ checkboxes.<br />
6. Click on the OK button.<br />
7. Click on the ‘Security Options’ node.<br />
8. Double click, or right click and select Properties, on the<br />
‘Interactive login: Do not display last username’ item.<br />
<a href="http://dagrind.com/files/2010/02/interactive_login.jpg" rel="lightbox[149]"><img class="alignnone size-full wp-image-154" title="interactive_login" src="http://dagrind.com/files/2010/02/interactive_login.jpg" alt="" width="404" height="312" /></a><br />
9. Click on the ‘Enabled’ radio button.<br />
10. Click on the OK button.</p>
<p><strong>Hide Administrator User From Interactive Login Screen (Windows XP)</strong><br />
Hide the real administrator user from login screen.<br />
1. Click on Start-&gt;Run…<br />
2. Type ‘regedit’ and then click on the OK button.<br />
3. Navigate to the following registry key:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Special Accounts\UserList\<br />
4. Right click on the UserList key and select the‘New-&gt;DWORD Value’ menu option.<br />
5. For the value’s name, enter the username of the user that is a member of the Administrators group.<br />
6. Make sure the value is set to 0.</p>
<p>If you are using the Windows XP "Welcome screen" then you can press CTRL+ALT+DELETE twice to open the traditional login dialog box that will allow you to enter any username.</p>
<p><strong>Windows Automatic Updates</strong><br />
Enable Windows Automatic Updates<br />
1.Start-&gt;Control Panel-&gt;Automatic Updates<br />
<a href="http://dagrind.com/files/2010/02/auto_updates.jpg" rel="lightbox[149]"><img class="alignnone size-full wp-image-153" title="auto_updates" src="http://dagrind.com/files/2010/02/auto_updates.jpg" alt="" width="419" height="463" /></a><br />
2. Select the ‘Automatic’ option and select ‘Every day’ at an off-peak time.</p>
<p><strong>Microsoft Baseline Security Analyzer</strong><br />
<a href="http://www.microsoft.com/technet/security/tools/mbsahome.mspx">http://www.microsoft.com/technet/security/tools/mbsahome.mspx</a><br />
This is an incredible tool that will analyze your system and give you a detailed report about your system’s security.</p>
<p><strong>Use New Setup</strong><br />
Now you need to reboot and this time login with your newly created user that is a member of the Users and not Administrators group.</p>
<p><strong>Visual Studio</strong><br />
If you are using a user that is a member of the Users group and want to use the Visual Studio .NET 2002/2003 debugger, you will need to make sure that your user is also a member of the ‘Debugger Users’ group. You will need to log off and then login. There are extra steps that need to be taken if you want to debug an ASP.NET site.</p>
]]></content:encoded>
			<wfw:commentRss>http://dagrind.com/2005/09/06/keeping-windows-secure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

