<?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>Tree Rat Fishing &#187; Windows Administration</title>
	<atom:link href="http://www.treeratfishing.com/category/windows-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.treeratfishing.com</link>
	<description>Windows Administration and Development.  It's all about the tools and code.</description>
	<lastBuildDate>Tue, 09 Jun 2009 15:52:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL 2008.. Compress them backups</title>
		<link>http://www.treeratfishing.com/2009/03/19/sql-2008-compress-them-backups/</link>
		<comments>http://www.treeratfishing.com/2009/03/19/sql-2008-compress-them-backups/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 19:54:09 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2009/03/19/sql-2008-compress-them-backups/</guid>
		<description><![CDATA[


 For those SQL admins who have managed their SQL backups using SQL dumps have had to wrestle with file sizes for many years.&#160;&#160; There are better ways of backing your databases up using things like SQL connectors to a backup software like CommVault or other backup programs but many times you just need a [...]]]></description>
			<content:encoded><![CDATA[<div class="googleadsense"  style="display:block;float:right;padding:5px"><script type="text/javascript"><!--
google_ad_client = "pub-6900135860991679";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "3D81EE";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div> <p>For those SQL admins who have managed their SQL backups using SQL dumps have had to wrestle with file sizes for many years.&nbsp;&nbsp; There are better ways of backing your databases up using things like SQL connectors to a backup software like CommVault or other backup programs but many times you just need a SQL Dump file.&nbsp;&nbsp;&nbsp; Depending on the size of the data in the Database they can be quite large.&nbsp;&nbsp; </p> <p>The good news is that there is lot of empty space in those files and they compress very well.&nbsp;&nbsp; But the bad news to go with that is if they are larger files you will find yourself having issues with programs like WinZIP.&nbsp; </p> <p>With SQL 2008 this is no longer an issue because it will perform compression natively during the creation of the SQL dump file.&nbsp;&nbsp;&nbsp; To compress the backup use the following command syntax:</p> <p><strong>BACKUP DATABASE <em>&lt;database name&gt;</em> TO <em>&lt;backup Device&gt;</em> WITH COMPRESSION</strong></p> <p>To take that to the next level and set compression on by default for all database dumps execute the following commands:</p> <p><strong>EXEC sp_configure &#8217;show advanced options&#8217;,1</strong></p> <p><strong>RECONFIGURE</strong></p> <p><strong>ESEC sp_configure &#8216;backup compression default&#8217;,1</strong></p> <p><strong>RECONFIGURE</strong></p> <p>So no more large SQL dump files.&nbsp;&nbsp;&nbsp; As if you needed another reason to upgrade your SQL Servers.</p> <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:97c2be72-1435-447a-bb4f-d881d4588563" class="wlWriterSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SQL" rel="tag" class="liexternal">SQL</a>,<a href="http://technorati.com/tags/Backups" rel="tag" class="liexternal">Backups</a>,<a href="http://technorati.com/tags/Compression" rel="tag" class="liexternal">Compression</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2009/03/19/sql-2008-compress-them-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determine the installation date of Windows</title>
		<link>http://www.treeratfishing.com/2008/08/04/determine-the-installation-date-of-windows/</link>
		<comments>http://www.treeratfishing.com/2008/08/04/determine-the-installation-date-of-windows/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 21:20:37 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2008/08/04/determine-the-installation-date-of-windows/</guid>
		<description><![CDATA[The following command helps you to determine the installation date and time of a Windows XP/2003 computer. It is a command which extracts info from the parent command &#34;systeminfo.&#34; Here is how you go about displaying the installation date:   Go To Start &#8212;&#62;Run &#8212;-&#62; Type &#34;cmd&#34; and hit enter.   In the [...]]]></description>
			<content:encoded><![CDATA[<p>The following command helps you to determine the installation date and time of a Windows XP/2003 computer. It is a command which extracts info from the parent command &quot;systeminfo.&quot; Here is how you go about displaying the installation date: </p>  <p>Go To Start &#8212;&gt;Run &#8212;-&gt; Type &quot;cmd&quot; and hit enter.   <br />In the command line type systeminfo | find /i &quot;install date&quot; </p>  <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1f8513a6-1675-4074-8aa3-f0b4f25b08e4" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/Windows" rel="tag" class="liexternal">Windows</a>,<a href="http://technorati.com/tags/Install%20Date" rel="tag" class="liexternal">Install Date</a>,<a href="http://technorati.com/tags/systeminfo" rel="tag" class="liexternal">systeminfo</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2008/08/04/determine-the-installation-date-of-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is IIS giving up your private IP address?</title>
		<link>http://www.treeratfishing.com/2008/06/06/is-iis-giving-up-your-private-ip-address/</link>
		<comments>http://www.treeratfishing.com/2008/06/06/is-iis-giving-up-your-private-ip-address/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 22:14:03 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2008/06/06/is-iis-giving-up-your-private-ip-address/</guid>
		<description><![CDATA[


 Hackers love information about your network.&#160; If you are not using Host Headers on your IIS website then IIS could be returning the IP address of the machine in the TCP header of the response.&#160;&#160; In single server situations where the server is in a DMZ of a firewall, the machine is most likely [...]]]></description>
			<content:encoded><![CDATA[<div class="googleadsense"  style="display:block;float:right;padding:5px"><script type="text/javascript"><!--
google_ad_client = "pub-6900135860991679";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "3D81EE";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div> <p>Hackers love information about your network.&nbsp; If you are not using Host Headers on your IIS website then IIS could be returning the IP address of the machine in the TCP header of the response.&nbsp;&nbsp; In single server situations where the server is in a DMZ of a firewall, the machine is most likely using the same address that DNS resolves.&nbsp;&nbsp; If this is the case, it may not matter as much because it is giving away information that that is freely available through DNS anyway.&nbsp;&nbsp;&nbsp; </p> <p>This becomes more of an issue where you have a load balancing device like a Cisco CSS or ACE device distributing the traffic across multiple servers.&nbsp;&nbsp; In this situation you would not want the server to return it&#8217;s configured IP address because you would be providing information about your network that could be used against you.&nbsp; </p> <p>Microsoft in <a href="http://support.microsoft.com/kb/834141" class="liexternal">Q834141</a> states there are 2 options to fix this issue.&nbsp;&nbsp;&nbsp; Two solutions provided have a patch requirement.&nbsp;&nbsp; This shouldn&#8217;t be a problem because no one in their right mind would run a server accessible on the Internet that wasn&#8217;t fully patched..&nbsp; Right?&nbsp;&nbsp;&nbsp; I will also provide another option that I will call Option TRF. </p> <p>Here are the Options for your reading pleasure&#8230;</p> <h5>Option TRF (easiest):</h5> <ol> <li>Configure all your websites to use Host Headers.&nbsp;&nbsp;&nbsp; Most if not all modern browsers support host headers.&nbsp; This will fix the issue and will not require a reboot or force you to confirm patch levels.&nbsp;&nbsp;&nbsp; I do still recommend that you keep your sever patched.&nbsp; </li></ol> <h5></h5> <h5>Microsoft Option 1: Set the UseHostName property</h5> <p>To set the <b>UseHostName</b> property, follow these steps: </p> <ol> <li>Click <strong>Start</strong>, click <strong>Run</strong>, type cmd, and then click <strong>OK</strong> to open a command prompt.  </li><li>Change to the folder where the Adsutil.vbs tool is located. By default, this folder is the following:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <var>%SYSTEMROOT%</var>\Inetpub\AdminScripts  </li><li>Type the following command, where <var>x</var> is your site identifier: cscript adsutil.vbs set w3svc/<var>x</var>/UseHostName true </li></ol> <h5>Microsoft Option 2: Set the SetHostName property</h5> <p>To set the <b>SetHostName</b> property, follow these steps: </p> <ol> <li>Click <strong>Start</strong>, click <strong>Run</strong>, type cmd, and then click <strong>OK</strong> to open a command prompt.  </li><li>Change to the folder where the Adsutil.vbs tool is located. By default, this folder is the following:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <var>%SYSTEMROOT%</var>\Inetpub\AdminScripts  </li><li>Type the following command, where <var>x</var> is your site identifier and <var>hostname</var> is the alternate host name that you want to use: cscript adsutil.vbs set w3svc/<var>x</var>/SetHostName <var>hostname</var></li></ol> <p>&nbsp;</p> <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:86805175-bc75-4b0f-bfcd-92c0c956a775" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/IIS" rel="tag" class="liexternal">IIS</a>,<a href="http://technorati.com/tags/Security" rel="tag" class="liexternal">Security</a>,<a href="http://technorati.com/tags/Hacking" rel="tag" class="liexternal">Hacking</a>,<a href="http://technorati.com/tags/Prevention" rel="tag" class="liexternal">Prevention</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2008/06/06/is-iis-giving-up-your-private-ip-address/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL 2005: Tracing&#8230; Not just for DBAs anymore</title>
		<link>http://www.treeratfishing.com/2008/02/19/sql-2005-tracing-not-just-for-dbas-anymore/</link>
		<comments>http://www.treeratfishing.com/2008/02/19/sql-2005-tracing-not-just-for-dbas-anymore/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 17:22:37 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2008/02/19/sql-2005-tracing-not-just-for-dbas-anymore/</guid>
		<description><![CDATA[ There has always been a gray fuzzy line on how much access does a DBA give to a developer working on a production database.&#160;&#160; Too little access and they developer can&#8217;t do their job without involving the DBA and too much access has it&#8217;s own set of problems and is just not a good [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#button--> <p>There has always been a gray fuzzy line on how much access does a DBA give to a developer working on a production database.&nbsp;&nbsp; Too little access and they developer can&#8217;t do their job without involving the DBA and too much access has it&#8217;s own set of problems and is just not a good security practice.</p> <p>It is common practice for developers to want to trace a SQL process to troubleshoot a problem or error.&nbsp;&nbsp; In SQL 2000 you had a choice to either involve the SQL administrator each time you needed to run a trace, or have system administrator rights on the SQL server and do it your self.&nbsp; SQL 2005 changes this with its server level permissions.&nbsp; Using the following SQL command you can grant tracing permission to a SQL user. </p> <div><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">GRANT</span> <span style="color: #0000ff">ALTER</span> TRACE <span style="color: #0000ff">TO</span> username</pre></div>
<div>&nbsp;</div>
<div>Keep in mind this is a server level permission and the user will be able to do traces on all databases on the server instance.&nbsp;&nbsp; For more information check out SQL Server 2005 Books Online topic, <a href="http://msdn2.microsoft.com/en-us/library/ms243682" class="liexternal"><u><font color="#810081">GRANT Server Permissions</font></u></a>. </div>
<div>&nbsp;</div>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8f37fa82-95c7-4d44-9200-4dbeb06a24c2" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/SQL%20Server%20Security" rel="tag" class="liexternal">SQL Server Security</a>,<a href="http://technorati.com/tags/DBAs" rel="tag" class="liexternal">DBAs</a>,<a href="http://technorati.com/tags/SQL%20Security" rel="tag" class="liexternal">SQL Security</a>,<a href="http://technorati.com/tags/SQL%20Server%202005" rel="tag" class="liexternal">SQL Server 2005</a>,<a href="http://technorati.com/tags/SQL%20Permissions" rel="tag" class="liexternal">SQL Permissions</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2008/02/19/sql-2005-tracing-not-just-for-dbas-anymore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Security &#8211; Running SQL without local user rights</title>
		<link>http://www.treeratfishing.com/2008/01/28/sql-security-running-sql-without-local-user-rights/</link>
		<comments>http://www.treeratfishing.com/2008/01/28/sql-security-running-sql-without-local-user-rights/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 22:00:49 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2008/01/28/sql-security-running-sql-without-local-user-rights/</guid>
		<description><![CDATA[ In a previous posting, I mentioned the risks of the &#8220;xp_cmdshell&#8221; extended stored procedure and how to disable the command.&#160;&#160;&#160; It is a good step towards a more secure SQL installation but more can be done.&#160;&#160; In that same article, I mention that many SQL installations run the SQL services using the local system [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#button--> <p>In a <a href="http://www.treeratfishing.com/2008/01/25/sql-security-disable-sql-xp_cdmshell/" class="liinternal">previous posting</a>, I mentioned the risks of the &#8220;xp_cmdshell&#8221; extended stored procedure and how to disable the command.&nbsp;&nbsp;&nbsp; It is a good step towards a more secure SQL installation but more can be done.&nbsp;&nbsp; In that same article, I mention that many SQL installations run the SQL services using the local system credentials.&nbsp;&nbsp;&nbsp; It is recommend that you follow these steps and run the services as a user with as little rights as possible on the SQL host machine.&nbsp; <em>Note: I am going to assume this server is part of active directory, although the process is pretty close to the same for a stand alone server.&nbsp; </em></p> <p>First, you need to create a user for the SQL services.&nbsp;&nbsp; Follow these steps: </p> <ol> <li>Create a user called &#8220;sqluser&#8221; and give it an appropriately complex password.&nbsp; </li><li>Create a global security group called &#8220;sqluser_group&#8221; .&nbsp;&nbsp; </li><li>Open the properties of &#8220;sqluser&#8221; and go to the &#8220;member of&#8221; tab.  </li><li>Add the sqluser to the &#8220;sqluser_group&#8221;.&nbsp;&nbsp; </li><li>Making sure the &#8220;sqluser_group&#8221; is still selected click the &#8220;Set Primary Group&#8221; button.  </li><li>Highlight the &#8220;domain users&#8221; group and click the remove button&nbsp;&nbsp;&nbsp; </li></ol> <p>We now have&nbsp; a user that can only authenticate to the domain and has no domain right (with the exception of rights granted to everyone).&nbsp;&nbsp;&nbsp; </p> <p>Next is to tell SQL to run as the newly created account.&nbsp;&nbsp; The steps to do this are as follows:</p> <p>SQL 2005</p> <ol> <li>Open SQL Server Configuration Manager and connect to the instance using an account with administrative privileges.  </li><li>Select SQL Server 2005 Services  </li><li>Double click the SQL Server instance you want to reconfigure.  </li><li>On the &#8220;Log On&#8221; tab, select &#8220;This account&#8221; and fill in the Account name and password fields.  </li><li>Click &#8220;OK&#8221; to finalize the change</li></ol> <p>SQL 2000</p> <ol> <li>Open SQL Server Enterprise Manager  </li><li>Connect to the server or instance you are wanting to reconfigure.  </li><li>Right click on the server and select properties.  </li><li>Navigate to the &#8220;Security&#8221; tab.  </li><li>Select &#8220;This account&#8221; and fill in the account and password field.&nbsp; </li><li>Click OK.&nbsp;&nbsp; When prompted, enter the password again to verify it.</li></ol> <p>Both versions require you to restart the services in order for the changes to take effect.&nbsp;&nbsp; I also caution you to not make these changes in the services control panel.&nbsp;&nbsp; While that may seem faster, it will not work.&nbsp;&nbsp; SQL explicitly grants NTFS and registry permissions to the account when you follow this process.&nbsp; It only grants the rights it needs to run.</p> <p>If you have SQL data or write SQL backup files in any directory other than the default directories, you will need to explicitly grant NTFS change permissions to the user account.</p> <p>Following these steps will get you one step closer to a more secure SQL installation. </p> <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:77c4c393-2f3c-4132-adcc-90f713e9b17b" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/SQL%20Server%20Security" rel="tag" class="liexternal">SQL Server Security</a>,<a href="http://technorati.com/tags/Windows%20Security" rel="tag" class="liexternal">Windows Security</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2008/01/28/sql-security-running-sql-without-local-user-rights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Security &#8211; Disable SQL &quot;xp_cmdshell&quot;</title>
		<link>http://www.treeratfishing.com/2008/01/25/sql-security-disable-sql-xp_cmdshell/</link>
		<comments>http://www.treeratfishing.com/2008/01/25/sql-security-disable-sql-xp_cmdshell/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 19:00:00 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2008/01/25/sql-security-disable-sql-xp_cdmshell/</guid>
		<description><![CDATA[ Windows server security has been a hot topic for many years now.&#160; Password complexity, periodic password changes, restrictive NTFS rights are all great steps toward a secure Windows installation.&#160;&#160; Unfortunately many system administrators leave a big hole in their SQL sever installations by letting the SQL services run under the local system account.&#160;&#160; This [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#button--> <p>Windows server security has been a hot topic for many years now.&nbsp; Password complexity, periodic password changes, restrictive NTFS rights are all great steps toward a secure Windows installation.&nbsp;&nbsp; Unfortunately many system administrators leave a big hole in their SQL sever installations by letting the SQL services run under the local system account.&nbsp;&nbsp; This account has local admin privileges and therefore any process executed by the SQL server or SQL agent are running with those privileges.</p> <p>Enter the &#8220;xp_cmdshell&#8221; extended stored procedure.&nbsp;&nbsp; This procedure will allow you to execute commands as if you were typing them in a command window under the windows account that SQL sever is configured to run.&nbsp;&nbsp; If that account is the local system account, the process has full access to the user database, file system and registry.&nbsp;&nbsp; </p> <p>In a situation where a username and password is compromised in SQL (this can be common on accounts with password that don&#8217;t change) a hacker can basic tools to further compromise your system.&nbsp;&nbsp; A common hacking attempt would be to execute the extended stored procedure to first create an account, then another command to give them local administrative rights to the local server.&nbsp; It can do this if SQL is running as a local administrator equivalent.&nbsp; Now they have complete access to the system with a &#8220;valid&#8221; account.&nbsp; They can now install new software, turn on RDP, fetch backup files, replace files&#8230;&nbsp; it is pretty much endless path of destruction.&nbsp; In addition, by being a local administrator, they also now have DBO access to all the databases in your SQL installation making things worse.</p> <p>Now that I have&nbsp; spread a lot of doom and gloom about a single SQL command, let me tell you the best way to prevent it.&nbsp;&nbsp;&nbsp; If you aren&#8217;t using it&#8230;&nbsp;&nbsp; Disable it.&nbsp;&nbsp;&nbsp; Log into Query Analyzer (SQL 2000) or Management Studio (SQL 2005) as SA or SA equivalent and run the following command:</p> <div> <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #008000">-- Allow advanced options to be changed.</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">EXEC</span> sp_configure <span style="color: #006080">'show advanced options'</span>, 1</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">GO</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #008000">-- Update the currently configured value for advanced options.</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">RECONFIGURE</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">GO</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #008000">-- Disable the feature.</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">EXEC</span> sp_configure <span style="color: #006080">'xp_cmdshell'</span>, 0</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">GO</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #008000">-- Update the currently configured value for this feature.</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">RECONFIGURE</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">GO</pre></div></div>
<p>&nbsp;</p>
<p>I am sure that some readers will say that this is a handy command.&nbsp;&nbsp; I agree it is, but use it wisely and grant permission to it sparingly or change the windows account that the SQL services are running.&nbsp;&nbsp;&nbsp; Look for more of this in the future.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:78e83e03-9b23-4c08-a654-ec91639d1740" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/SQL%20Server" rel="tag" class="liexternal">SQL Server</a>,<a href="http://technorati.com/tags/xp_cmdshell" rel="tag" class="liexternal">xp_cmdshell</a>,<a href="http://technorati.com/tags/SQL%20Security" rel="tag" class="liexternal">SQL Security</a>,<a href="http://technorati.com/tags/Windows%20Security" rel="tag" class="liexternal">Windows Security</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2008/01/25/sql-security-disable-sql-xp_cmdshell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling &quot;Agent XPs&quot; on SQL 2005</title>
		<link>http://www.treeratfishing.com/2008/01/15/enabling-agent-xps-on-sql-2005/</link>
		<comments>http://www.treeratfishing.com/2008/01/15/enabling-agent-xps-on-sql-2005/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 17:06:01 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[.Net Development]]></category>
		<category><![CDATA[Windows Administration]]></category>
		<category><![CDATA[Agent XPs]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Maintenance Plans]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2008/01/15/enabling-agent-xps-on-sql-2005/</guid>
		<description><![CDATA[ Chances are that if you have just done a fresh install of SQL 2005 you will get an error when you try to create your first SQL 2005 maintenance plan.&#160;&#160; This error tells you that the &#8220;&#8216;Agent XPs component is turned off as part of the security configuration for this server&#8221;&#160; and refers you [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#button--> <p>Chances are that if you have just done a fresh install of SQL 2005 you will get an error when you try to create your first SQL 2005 maintenance plan.&nbsp;&nbsp; This error tells you that the &#8220;&#8216;Agent XPs component is turned off as part of the security configuration for this server&#8221;&nbsp; and refers you to your system administrator or the SQL Books Online.</p> <p>In order to enable the &#8220;Agent XPs&#8221; component. Start up SQL Management Studio and click the &#8220;New Query&#8221; button on the tool bar.&nbsp;&nbsp; Execute the following script in the query window (on the right hand side of the screen) .&nbsp; </p> <div> <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">sp_configure <span style="color: #006080">'show advanced options'</span>, 1;</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">GO</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">RECONFIGURE</span>;</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">GO</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">sp_configure <span style="color: #006080">'Agent XPs'</span>, 1;</pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">GO</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">RECONFIGURE</span></pre><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">GO</pre></div></div>
<div>&nbsp;</div>
<div>This SQL script enables the advanced configuration options then turns on the &#8220;Agent XPs&#8221; component.&nbsp;&nbsp;&nbsp;&nbsp; </div>
<div>&nbsp;</div>
<div>You are now free to create your SQL 2005 Maintenance plans.</div>
<div>&nbsp;</div>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:64d10928-6ae6-4d62-8894-f61f842e245c" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/Agent%20XPs" rel="tag" class="liexternal">Agent XPs</a>,<a href="http://technorati.com/tags/SQL" rel="tag" class="liexternal">SQL</a>,<a href="http://technorati.com/tags/SQL%202005" rel="tag" class="liexternal">SQL 2005</a>,<a href="http://technorati.com/tags/Maintance%20Plans" rel="tag" class="liexternal">Maintance Plans</a>,<a href="http://technorati.com/tags/SQL%202005%20Maintnance%20Plans" rel="tag" class="liexternal">SQL 2005 Maintnance Plans</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2008/01/15/enabling-agent-xps-on-sql-2005/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Monitor your file replication</title>
		<link>http://www.treeratfishing.com/2007/04/17/monitor-your-file-replication/</link>
		<comments>http://www.treeratfishing.com/2007/04/17/monitor-your-file-replication/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 18:36:27 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2007/04/17/monitor-your-file-replication/</guid>
		<description><![CDATA[ If you are using Microsoft&#8217;s file replication services (FRS),&#160; I am sure you have found a need to monitor the status of a FRS replica set.&#160; Microsoft has a tool called Sonar.exe that will help you keep keep your eye on what is going on and help you diagnose replication problems. Diagnose your replication [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#square--> <p>If you are using Microsoft&#8217;s file replication services (FRS),&nbsp; I am sure you have found a need to monitor the status of a FRS replica set.&nbsp; Microsoft has a tool called <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=158cb0fb-fe09-477c-8148-25ae02cf15d8&amp;DisplayLang=en" class="liexternal">Sonar.exe</a> that will help you keep keep your eye on what is going on and help you diagnose replication problems.</p> <p>Diagnose your replication problems download <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=158cb0fb-fe09-477c-8148-25ae02cf15d8&amp;DisplayLang=en" class="liexternal">Sonar.exe</a>.</p> <p><strong>Technorati Tags:</strong> <a href="http://technorati.com/tag/Microsoft" rel="tag" class="liexternal">Microsoft</a> &#8211; <a href="http://technorati.com/tag/FRS" rel="tag" class="liexternal">FRS</a> &#8211; <a href="http://technorati.com/tag/File%20Replication%20Services" rel="tag" class="liexternal">File Replication Services</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2007/04/17/monitor-your-file-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting ISO files..</title>
		<link>http://www.treeratfishing.com/2007/02/24/mounting-iso-files/</link>
		<comments>http://www.treeratfishing.com/2007/02/24/mounting-iso-files/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 17:31:13 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2007/02/24/mounting-iso-files/</guid>
		<description><![CDATA[ I have been using VMWare for a while and love the feature to mount an ISO file as a drive letter in the virtual environment.&#160; It extremely convenient and it is much faster than using CDs or DVDs to do installs.&#160;&#160;&#160;Recently I found the need to use an ISO file.&#160; Sure I could burn [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#square--> <p>I have been using <a href="http://www.vmware.com" class="liexternal">VMWare</a> for a while and love the feature to mount an ISO file as a drive letter in the virtual environment.&nbsp; It extremely convenient and it is much faster than using CDs or DVDs to do installs.&nbsp;&nbsp;&nbsp;Recently I found the need to use an ISO file.&nbsp; Sure I could burn the file to a CD or DVD and use it, but I wanted to realize the speed and convience that I was used to in my Virtual environments.</p> <p>I have used the demo of Alcohol in the past and liked it but didn&#8217;t really want&nbsp;to pay anything to use it.&nbsp; Yeah, I can be cheap sometimes.&nbsp;&nbsp; So I did some searching and stumbled upon a free tool from <a href="http://www.microsoft.com/" class="liexternal">Microsoft</a> that will allow me to do this.&nbsp; The <a href="http://download.microsoft.com/download/7/b/6/7b6abd84-7841-4978-96f5-bd58df02efa2/winxpvirtualcdcontrolpanel_21.exe" class="liexternal">Windows XP Virtual CD-ROM Control Panel</a>.&nbsp; This tool fit all my needs..&nbsp; It was a small download, free, and it worked.</p> <p>The directions from the readme:</p> <blockquote> <p>Readme for Virtual CD-ROM Control Panel v2.0.1.1</p> <p>THIS TOOL IS UNSUPPORT BY MICROSOFT PRODUCT SUPPORT SERVICES</p> <p><br />System Requirements<br />===================<br />- Windows XP Home or Windows XP Professional</p> <p>Installation instructions<br />=========================<br />1. Copy VCdRom.sys to your %systemroot%\system32\drivers folder. <br />2. Execute VCdControlTool.exe<br />3. Click &#8220;Driver control&#8221;<br />4. If the &#8220;Install Driver&#8221; button is available, click it. Navigate to the %systemroot%\system32\drivers folder, select VCdRom.sys, and click Open.<br />5. Click &#8220;Start&#8221;<br />6. Click OK<br />7. Click &#8220;Add Drive&#8221; to add a drive to the drive list. Ensure that the drive added is not a local drive. If it is, continue to click &#8220;Add Drive&#8221; until an unused drive letter is available.<br />8. Select an unused drive letter from the drive list and click &#8220;Mount&#8221;.<br />9. Navigate to the image file, select it, and click &#8220;OK&#8221;. UNC naming conventions should not be used, however mapped network drives should be OK.</p> <p>You may now use the drive letter as if it were a local CD-ROM device. When you are finished you may unmount, stop, and remove the driver from memory using the driver control.</p></blockquote> <p><font color="#333333">Download the <a href="http://download.microsoft.com/download/7/b/6/7b6abd84-7841-4978-96f5-bd58df02efa2/winxpvirtualcdcontrolpanel_21.exe" class="liexternal">XP Virtual CD Control Panel</a>&nbsp;from <a href="http://www.microsoft.com/" class="liexternal">Microsoft</a> today.</font></p>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2007/02/24/mounting-iso-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emergency Shutdown of Windows</title>
		<link>http://www.treeratfishing.com/2007/02/19/emergency-shutdown-of-windows/</link>
		<comments>http://www.treeratfishing.com/2007/02/19/emergency-shutdown-of-windows/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 19:19:52 +0000</pubDate>
		<dc:creator>jeff.story</dc:creator>
				<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://www.treeratfishing.com/2007/02/19/emergency-shutdown-of-windows/</guid>
		<description><![CDATA[ Chances are that if you use Windows you have had to just shut down your machine when it become instable.&#160; I am not trying to&#160;pick on Windows.&#160;&#160;Most of the time it isn&#8217;t&#160;Windows fault,&#160;it is fairly common for poorly written applications and&#160;drivers&#160;cause&#160;the OS to malfunction.&#160;&#160;This isn&#8217;t anything specific to Windows, if you run a buggy&#160;application [...]]]></description>
			<content:encoded><![CDATA[<!--adsense#square--> <p>Chances are that if you use Windows you have had to just shut down your machine when it become instable.&nbsp; I am not trying to&nbsp;pick on Windows.&nbsp;&nbsp;Most of the time it isn&#8217;t&nbsp;Windows fault,&nbsp;it is fairly common for poorly written applications and&nbsp;drivers&nbsp;cause&nbsp;the OS to malfunction.&nbsp;&nbsp;This isn&#8217;t anything specific to Windows, if you run a buggy&nbsp;application on any OS, you will get&nbsp;the same type of results.&nbsp;</p> <p>You can&nbsp;shut down the computer by simply&nbsp;pressing the power button on the computer, but there is a way for you to shut down the computer that&#8217;s less harmful to the operating system. To do it:</p> <ol> <li>Press [Ctrl][Alt][Delete] to display the Windows Security dialog box.  <li>Hold down the [Ctrl] key and click the Shut Down button.  <li>Click OK to confirm that you want to perform an emergency shutdown of the computer. </li></ol> <p>Be aware that when you perform an emergency shutdown, Windows doesn’t prompt you to save any open documents. To avoid losing your work, make sure that you save anything you’re currently working on (if possible) before performing an emergency shutdown.</p>]]></content:encoded>
			<wfw:commentRss>http://www.treeratfishing.com/2007/02/19/emergency-shutdown-of-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
