<?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>Richard&#039;s Site</title>
	<atom:link href="http://www.raseley.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raseley.com</link>
	<description>It&#039;s About Stuff!</description>
	<lastBuildDate>Wed, 30 Jun 2010 06:32:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SCOM Service Level Dashboard</title>
		<link>http://www.raseley.com/2010/06/29/scom-service-level-dashboard/</link>
		<comments>http://www.raseley.com/2010/06/29/scom-service-level-dashboard/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 06:13:40 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=211</guid>
		<description><![CDATA[An article I wrote entitled &#8220;The SCOM Service Level Dashboard&#8221; was published in the June 2010 issue of Windows IT Pro. Quite exciting for little &#8216;ol me! Windows IT Pro: The SCOM Service Level Dashboard]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.raseley.com/wp-content/SCOM-Article.jpg"><img src="http://www.raseley.com/wp-content/SCOM-Article-300x225.jpg" alt="" title="SCOM Article" width="300" height="225" class="aligncenter size-medium wp-image-212" /></a><br />
An article I wrote entitled &#8220;The SCOM Service Level Dashboard&#8221; was published in the June 2010 issue of Windows IT Pro. Quite exciting for little &#8216;ol me!</p>
<p><a href="http://www.windowsitpro.com/article/system-center/The-SCOM-Service-Level-Dashboard.aspx">Windows IT Pro: The SCOM Service Level Dashboard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2010/06/29/scom-service-level-dashboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interacting with the Windows Internal Database</title>
		<link>http://www.raseley.com/2010/04/20/interacting-with-the-windows-internal-database/</link>
		<comments>http://www.raseley.com/2010/04/20/interacting-with-the-windows-internal-database/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 18:04:45 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Small Business Server]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=129</guid>
		<description><![CDATA[Recently I was working on a client&#8217;s system which runs Windows Small Business Server 2008 which, as you probably know, uses the Windows Internal Database Engine for the versions of SharePoint and WSUS (among a few other things) that are &#8230; <a href="http://www.raseley.com/2010/04/20/interacting-with-the-windows-internal-database/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.raseley.com/wp-content/SBS2008Logo.jpg"><img src="http://www.raseley.com/wp-content/SBS2008Logo.jpg" alt="" title="SBS 2008 Logo" width="416" height="148" class="aligncenter size-full wp-image-130" /></a></p>
<p>Recently I was working on a client&#8217;s system which runs Windows Small Business Server 2008 which, as you probably know, uses the Windows Internal Database Engine for the versions of SharePoint and WSUS (among a few other things) that are bundled with it.</p>
<p>Because the Windows Internal Database Engine that ships with SBS doesn&#8217;t offer any management tools, I was kind of stuck when I needed to change the recovery on a runaway SharePoint Config database.</p>
<p>After doing a little bit of research I came across across an article over MySQLTips.com (http://www.mssqltips.com/tip.asp?tip=1577) that got me going in the right direction.</p>
<p>In order to interact with the Windows Internal Database Engine, you must first download and install the SQL Management Studio Express (http://www.microsoft.com/downloads/details.aspx?FamilyID=08e52ac2-1d62-45f6-9a4a-4b76a8564a2b&#038;displaylang=en).</p>
<p>Once that is complete, you can access the Windows Internal Database by connecting to the following (in the &#8220;server&#8221; field at the connection screen):</p>
<p>\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query</p>
<p>Once connected however, you may find that when trying to get to the properties of a database you are greeted with an error that says that the operation failed because the database has no owner.</p>
<p>Instead of messing around with the security settings of the database you can simply use standard SQL Query language in order to make the modifications you need. In my situation I just used the following to change the database recovery method:</p>
<p>ALTER DATABASE [DB_Name] SET RECOVERY SIMPLE<br />
GO</p>
<p>Hopefully Microsoft will include more robust DB management tools out of the box in future releases of SBS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2010/04/20/interacting-with-the-windows-internal-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DPM 2007 and the Windows Firewall</title>
		<link>http://www.raseley.com/2009/09/09/dpm-2007-and-the-windows-firewall/</link>
		<comments>http://www.raseley.com/2009/09/09/dpm-2007-and-the-windows-firewall/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 18:29:01 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=124</guid>
		<description><![CDATA[The following ports need to be opened to allow for successful installation and communication with the DPM 2007 agents. TCP: 5718, 5719, 135, 88, 139, 389 UDP: 53, 88, 137, 138, 389]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.raseley.com/wp-content/DPM2007_Logo.jpg"><img src="http://www.raseley.com/wp-content/DPM2007_Logo.jpg" alt="DPM2007_Logo" title="DPM2007_Logo" width="300" height="150" class="aligncenter size-full wp-image-118" /></a></p>
<p>The following ports need to be opened to allow for successful installation and communication with the DPM 2007 agents.</p>
<p>TCP: 5718, 5719, 135, 88, 139, 389<br />
UDP: 53, 88, 137, 138, 389 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/09/09/dpm-2007-and-the-windows-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protecting Local Data on a DPM 2007 Server</title>
		<link>http://www.raseley.com/2009/09/02/protecting-local-data-on-a-dpm-2007-server/</link>
		<comments>http://www.raseley.com/2009/09/02/protecting-local-data-on-a-dpm-2007-server/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 15:50:07 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=117</guid>
		<description><![CDATA[Recently I was attempting to use Data Protection Manager 2007 to create a protection group that included volumes directly attached to the DPM server. I was slightly dismayed to see that I couldn&#8217;t install the protection agent on the machine &#8230; <a href="http://www.raseley.com/2009/09/02/protecting-local-data-on-a-dpm-2007-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.raseley.com/wp-content/DPM2007_Logo.jpg"><img class="aligncenter size-full wp-image-118" title="DPM2007_Logo" src="http://www.raseley.com/wp-content/DPM2007_Logo.jpg" alt="DPM2007_Logo" width="300" height="150" /></a></p>
<p>Recently I was attempting to use Data Protection Manager 2007 to create a protection group that included volumes directly attached to the DPM server. I was slightly dismayed to see that I couldn&#8217;t install the protection agent on the machine or select anything other than the DPM configuration database in the New Protection Group wizard.</p>
<p>The answer, in my case, was to enable local data protection on the DPM server by executing the following command in the Data Protection Manager Console:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;">Set<span style="color: pink;">-</span>DPMGlobalProperty <span style="color: pink;">-</span>DPMServerName ServerName.Domain.Local <span style="color: pink;">-</span>AllowLocalDataProtection $true</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/09/02/protecting-local-data-on-a-dpm-2007-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 RTM Installation Driver Issue</title>
		<link>http://www.raseley.com/2009/08/28/windows-7-rtm-installation-driver-issue/</link>
		<comments>http://www.raseley.com/2009/08/28/windows-7-rtm-installation-driver-issue/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 22:16:07 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[CD]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=113</guid>
		<description><![CDATA[If you (or your organization) is lucky enough to get ahold of the Windows 7 RTM, you may encounter an issue that has been popping up for a small number of people. After booting from the DVD (or USB Drive) &#8230; <a href="http://www.raseley.com/2009/08/28/windows-7-rtm-installation-driver-issue/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.raseley.com/wp-content/Windows_7_Logo.jpg"><img class="size-full wp-image-114  aligncenter" title="Windows 7 Logo" src="http://www.raseley.com/wp-content/Windows_7_Logo.jpg" alt="Windows 7 Logo" width="180" height="149" /></a></p>
<p>If you (or your organization) is lucky enough to get ahold of the Windows 7 RTM, you may encounter an issue that has been popping up for a small number of people.</p>
<p>After booting from the DVD (or USB Drive) that contains the Windows 7 installation files, and clicking Install, you will be greeted by an error message that says:</p>
<p>A Required CD/DVD Driver is Missing</p>
<p>I pounded my head against the wall for a while on this one. In my case it turned out to be a corrupt ISO file that was causing the issue, but here are some ideas for you to try before you throw your computer out a window.</p>
<p>(1) Download the Windows 7 ISO Verifier tool (<a href="http://www.istartedsomething.com/20090706/windows-7-iso-verifier/">http://www.istartedsomething.com/20090706/windows-7-iso-verifier/</a>). It will check your ISO file, compare it to known good hashes and tell you if the image is good. <strong>Do this first!</strong></p>
<p>(2) Unplug all unnecessary devices from your PC and attempt to install again.</p>
<p>(3) If you have a mixture of SATA and PATA devices, try to remove and / or replace the PATA devices and try to install again.</p>
<p>(4) Transfer the Windows 7 setup to a thumb drive (<a href="http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/">http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/</a>), disconnect the CD / DVD-ROM and try to boot setup from that.</p>
<p>If that doesn&#8217;t work then post in the comments section and I will try to help you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/08/28/windows-7-rtm-installation-driver-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Office 2010 Technical Preview</title>
		<link>http://www.raseley.com/2009/07/14/microsoft-office-2010-technical-preview/</link>
		<comments>http://www.raseley.com/2009/07/14/microsoft-office-2010-technical-preview/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 15:22:42 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=108</guid>
		<description><![CDATA[I don&#8217;t remember where / when I applied, but last night I received an invitation to join the Microsoft Office 2010 Technical Preview! I will post additional information about the software as I use it and learn more about its &#8230; <a href="http://www.raseley.com/2009/07/14/microsoft-office-2010-technical-preview/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.raseley.com/wp-content/Office_2010_About.jpg"><img class="aligncenter size-full wp-image-109" title="Office_2010_About" src="http://www.raseley.com/wp-content/Office_2010_About.jpg" alt="Office_2010_About" width="345" height="184" /></a></p>
<p>I don&#8217;t remember where / when I applied, but last night I received an invitation to join the Microsoft Office 2010 Technical Preview!</p>
<p>I will post additional information about the software as I use it and learn more about its capabilities.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/07/14/microsoft-office-2010-technical-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sliders is now on Hulu!</title>
		<link>http://www.raseley.com/2009/07/03/sliders-is-now-on-hulu/</link>
		<comments>http://www.raseley.com/2009/07/03/sliders-is-now-on-hulu/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 21:04:13 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Hulu]]></category>
		<category><![CDATA[Sliders]]></category>
		<category><![CDATA[Television]]></category>

		<guid isPermaLink="false">http://www.raseley.com/2009/07/sliders-is-now-on-hulu/</guid>
		<description><![CDATA[Three seasons of Sliders is now up on Hulu. A pretty cool show if you ask me. http://www.hulu.com/search?page=1&#38;query=Sliders&#38;showname=sliders&#38;sort_by=air_date]]></description>
			<content:encoded><![CDATA[<p>Three seasons of Sliders is now up on Hulu. A pretty cool show if you ask me.</p>
<p><a href="http://www.hulu.com/search?page=1&amp;query=Sliders&amp;showname=sliders&amp;sort_by=air_date" target="_blank">http://www.hulu.com/search?page=1&amp;query=Sliders&amp;showname=sliders&amp;sort_by=air_date</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/07/03/sliders-is-now-on-hulu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Information Gathering via PowerShell Script Pt. 2</title>
		<link>http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script-pt-2/</link>
		<comments>http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script-pt-2/#comments</comments>
		<pubDate>Wed, 13 May 2009 21:27:24 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=92</guid>
		<description><![CDATA[Here is another script that I created while trying to hone my PowerShell skills. It prompts you for the FQDN of the computer that you want to gather information on, asks you whether you want to see the output on &#8230; <a href="http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script-pt-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is another script that I created while trying to hone my PowerShell skills. It prompts you for the FQDN of the computer that you want to gather information on, asks you whether you want to see the output on the screen or dump it into a text file, and then runs a bunch of WMI queries to get a good general overview of the machine in question.</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># Function Definition: fnCompInfoGatherExecute</span>
<span style="color: #0000FF;">Function</span> fnCompInfoGatherExecute
<span style="color: #000000;">&#123;</span>
	<span style="color: #008000;"># Prompt for FQDN of Computer to be Queried</span>
	<span style="color: #800000;">&quot;Enter the FQDN of the computer you wish to query.&quot;</span>
	<span style="color: #800080;">$CompName</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800000;">&quot; &quot;</span>
&nbsp;
    <span style="color: #008000;"># Prompt for Output Method</span>
	<span style="color: #800000;">&quot; &quot;</span>
	<span style="color: #800000;">&quot;How would you like the output to be handled?&quot;</span>
	<span style="color: #800080;">$MenuTopLevel</span> <span style="color: pink;">=</span> 
<span style="color: #800000;">'
[1] Display on Screen
[2] Output to File
[3] Exit 
&nbsp;
Choice'</span>
&nbsp;
	<span style="color: #008000;"># Define Logic for Top Level Menu</span>
	<span style="color: #0000FF;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800080;">$MenuTopLevel</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #000000;">1</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #008000;"># Define WMI Information to be Retrieved</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_BIOS <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_ComputerSystem <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_DiskDrive <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_DiskPartition <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_NetworkAdapterConfiguration <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_Processor <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span>
		  <span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">2</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #008000;"># Prompt for Output Path</span>
			<span style="color: #800000;">&quot; &quot;</span>
			<span style="color: #800000;">&quot;Enter the path to the output file (i.e. C:\Output.txt).&quot;</span>
			<span style="color: #800080;">$OutputPath</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800000;">&quot; &quot;</span>
&nbsp;
			<span style="color: #008000;"># Define WMI Information to be Retrieved</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_BIOS <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span> <span style="color: pink;">&gt;&gt;</span> <span style="color: #800000;">&quot;$OutputPath&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_ComputerSystem <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span> <span style="color: pink;">&gt;&gt;</span> <span style="color: #800000;">&quot;$OutputPath&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_DiskDrive <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span> <span style="color: pink;">&gt;&gt;</span> <span style="color: #800000;">&quot;$OutputPath&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_DiskPartition <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span> <span style="color: pink;">&gt;&gt;</span> <span style="color: #800000;">&quot;$OutputPath&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_NetworkAdapterConfiguration <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span> <span style="color: pink;">&gt;&gt;</span> <span style="color: #800000;">&quot;$OutputPath&quot;</span>
			<span style="color: #008080; font-weight: bold;">Get-WmiObject</span> Win32_Processor <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;$CompName&quot;</span> <span style="color: pink;">&gt;&gt;</span> <span style="color: #800000;">&quot;$OutputPath&quot;</span>
&nbsp;
			<span style="color: #008000;"># Open Output File</span>
			C:\Windows\notepad.exe <span style="color: #800000;">&quot;$OutputPath&quot;</span>
		  <span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">3</span> <span style="color: #000000;">&#123;</span>Exit<span style="color: #000000;">&#125;</span>
		default <span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;You have chosen an invalid option&quot;</span>; fnPause; fnADSearchMenu<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Call fnCompInfoGatherExecute Function</span>
fnCompInfoGatherExecute</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script-pt-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Information Gathering via PowerShell Script Pt. 1</title>
		<link>http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script/</link>
		<comments>http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script/#comments</comments>
		<pubDate>Wed, 13 May 2009 19:51:23 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.raseley.com/?p=89</guid>
		<description><![CDATA[Here is a simple PowerShell script I wrote to gather either computer, group, or user information depending on your choices. This could easily be done with much simpler scripts, but I wanted to use it as more of a learning &#8230; <a href="http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a simple PowerShell script I wrote to gather either computer, group, or user information depending on your choices. This could easily be done with much simpler scripts, but I wanted to use it as more of a learning process in order to better understand AD queries, variable expansion, functions, and other PowerShell features.</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># Function Definition: fnPause</span>
<span style="color: #0000FF;">Function</span> fnPause <span style="color: #000000;">&#40;</span><span style="color: #800080;">$message</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;Press any key to continue...&quot;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #008080; font-style: italic;">-NoNewLine</span> <span style="color: #800080;">$Message</span>
		<span style="color: #800080;">$null</span> <span style="color: pink;">=</span> <span style="color: #000080;">$Host</span>.UI.RawUI.ReadKey<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;NoEcho,IncludeKeyDown&quot;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;&quot;</span>
		Main_Menu
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Function Definition: fnADSearchMenu </span>
<span style="color: #0000FF;">Function</span> fnADSearchMenu
<span style="color: #000000;">&#123;</span>
	<span style="color: #008000;"># Display Welcome Message</span>
	Clear<span style="color: pink;">-</span>Host
	<span style="color: #800000;">&quot;Active Directory Search Script v1.0&quot;</span>
	<span style="color: #800000;">&quot;Created By: Richard Raseley (Richard@Raseley.com)&quot;</span>
	<span style="color: #800000;">&quot; &quot;</span>
&nbsp;
	<span style="color: #008000;"># Display Top Level Menu Question</span>
	<span style="color: #800000;">&quot;What type of Active Directory object would you like to search for?&quot;</span>
&nbsp;
	<span style="color: #008000;"># Display Top Level Menu</span>
	<span style="color: #800080;">$MenuTopLevel</span> <span style="color: pink;">=</span> 
	<span style="color: #800000;">'
	[1] User(s)
	[2] Group(s)
	[3] Computer(s)
	[4] Exit 
&nbsp;
	Choice'</span>
&nbsp;
	<span style="color: #008000;"># Define Logic for Top Level Menu</span>
	<span style="color: #0000FF;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800080;">$MenuTopLevel</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #000000;">1</span> <span style="color: #000000;">&#123;</span>fnUserSearchMenu<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">2</span> <span style="color: #000000;">&#123;</span>fnGroupSearchMenu<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">3</span> <span style="color: #000000;">&#123;</span>fnComputerSearchMenu<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">4</span> <span style="color: #000000;">&#123;</span>Exit<span style="color: #000000;">&#125;</span>
		default <span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;You have chosen an invalid option&quot;</span>; fnPause; fnADSearchMenu<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Function Definition: fnUserSearchMenu</span>
<span style="color: #0000FF;">Function</span> fnUserSearchMenu
<span style="color: #000000;">&#123;</span>
	<span style="color: #008000;"># Display User Search Menu Question</span>
	<span style="color: #800000;">&quot; &quot;</span>
	<span style="color: #800000;">&quot;What type of user information would you like?&quot;</span>
&nbsp;
	<span style="color: #008000;"># Display User Search Menu</span>
	<span style="color: #800080;">$MenuUserSearch</span> <span style="color: pink;">=</span>
	<span style="color: #800000;">'
	[1] Summary of all users in the current domain
	[2] Return to the main menu
&nbsp;
	Choice'</span>
&nbsp;
	<span style="color: #008000;"># Define Logic for User Search Menu</span>
	<span style="color: #0000FF;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800080;">$MenuUserSearch</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #000000;">1</span> <span style="color: #000000;">&#123;</span>
		  	<span style="color: #008000;">#Define LDAP Filter</span>
			<span style="color: #800080;">$LDAPFilter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;(objectCategory=User)&quot;</span>
&nbsp;
		  	<span style="color: #008000;">#Call fnADSearchExecute</span>
		  	fnADSearchExecute
		  <span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">2</span> <span style="color: #000000;">&#123;</span>
	    	fnADSearchMenu
		  <span style="color: #000000;">&#125;</span>
		default <span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;You have chosen an invalid option&quot;</span>; fnPause; fnADSearchMenu<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Function Definition: fnGroupSearchMenu</span>
<span style="color: #0000FF;">Function</span> fnGroupSearchMenu
<span style="color: #000000;">&#123;</span>
	<span style="color: #008000;"># Display Group Search Menu Question</span>
	<span style="color: #800000;">&quot; &quot;</span>
	<span style="color: #800000;">&quot;What type of group information would you like?&quot;</span>
&nbsp;
	<span style="color: #008000;"># Display Group Search Menu</span>
	<span style="color: #800080;">$MenuGoupSearch</span> <span style="color: pink;">=</span>
	<span style="color: #800000;">'
	[1] Summary of all groups in the current domain
	[2] Return to main menu
&nbsp;
	Choice'</span>
&nbsp;
	<span style="color: #008000;"># Define Logic for Group Search Menu</span>
	<span style="color: #0000FF;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800080;">$MenuGoupSearch</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #000000;">1</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #008000;"># Define LDAP Filter</span>
			<span style="color: #800080;">$LDAPFilter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;(objectCategory=Group)&quot;</span>
&nbsp;
			<span style="color: #008000;">#Call fnADSearchExecute</span>
			fnADSearchExecute
		  <span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">2</span> <span style="color: #000000;">&#123;</span>
			fnADSearchMenu
		  <span style="color: #000000;">&#125;</span>
		default <span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;You have chosen an invalid option&quot;</span>; fnPause; fnADSearchMenu<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Function Definition: fnComputerSearchMenu</span>
<span style="color: #0000FF;">Function</span> fnComputerSearchMenu
<span style="color: #000000;">&#123;</span>
	<span style="color: #008000;"># Display Computer Search Menu Question</span>
	<span style="color: #800000;">&quot; &quot;</span>
	<span style="color: #800000;">&quot;What type of computer information would you like?&quot;</span>
&nbsp;
	<span style="color: #008000;"># Display Group Search Menu</span>
	<span style="color: #800080;">$MenuComputerSearch</span> <span style="color: pink;">=</span>
	<span style="color: #800000;">'
	[1] Summary of all computers in the current domain
	[2] Return to main menu
&nbsp;
	Choice'</span>
&nbsp;
	<span style="color: #008000;"># Define Logic for Group Search Menu</span>
	<span style="color: #0000FF;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #800080;">$MenuComputerSearch</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #000000;">1</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #008000;"># Define LDAP Filter</span>
			<span style="color: #800080;">$LDAPFilter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;(objectCategory=Computer)&quot;</span>
&nbsp;
			<span style="color: #008000;">#Call fnADSearchExecute</span>
			fnADSearchExecute
		  <span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">2</span> <span style="color: #000000;">&#123;</span>
			fnADSearchMenu
		  <span style="color: #000000;">&#125;</span>
		default <span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;You have chosen an invalid option&quot;</span>; fnPause; fnADSearchMenu<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Function Definition: fnADSearchExecute</span>
<span style="color: #0000FF;">Function</span> fnADSearchExecute
<span style="color: #000000;">&#123;</span>
	<span style="color: #008000;"># Define AD Search Filter</span>
	<span style="color: #800080;">$strFilter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;$LDAPFilter&quot;</span>
&nbsp;
	<span style="color: #008000;"># Define AD Location for Search</span>
	<span style="color: #800080;">$objDomain</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.DirectoryServices.DirectoryEntry
&nbsp;
	<span style="color: #008000;"># Define AD Search Parameters</span>
	<span style="color: #800080;">$objSearcher</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.DirectoryServices.DirectorySearcher
	<span style="color: #800080;">$objSearcher</span>.SearchRoot <span style="color: pink;">=</span> <span style="color: #800080;">$objDomain</span>
	<span style="color: #800080;">$objSearcher</span>.PageSize <span style="color: pink;">=</span> <span style="color: #000000;">1000</span>
	<span style="color: #800080;">$objSearcher</span>.<span style="color: #0000FF;">Filter</span> <span style="color: pink;">=</span> <span style="color: #800080;">$strFilter</span>
	<span style="color: #800080;">$objSearcher</span>.SearchScope <span style="color: pink;">=</span> <span style="color: #800000;">&quot;Subtree&quot;</span>
&nbsp;
	<span style="color: #008000;"># Define AD Properties Returned by Search</span>
	<span style="color: #800080;">$colProplist</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;name&quot;</span>
	<span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$i</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$colProplist</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><span style="color: #800080;">$objSearcher</span>.PropertiesToLoad.Add<span style="color: #000000;">&#40;</span><span style="color: #800080;">$i</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #008000;"># Execute AD Search</span>
	<span style="color: #800080;">$colResults</span> <span style="color: pink;">=</span> <span style="color: #800080;">$objSearcher</span>.FindAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
	<span style="color: #008000;"># Format AD Search Results</span>
	<span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$objResult</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$colResults</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #800080;">$objItem</span> <span style="color: pink;">=</span> <span style="color: #800080;">$objResult</span>.Properties
		<span style="color: #800000;">&quot;Name: &quot;</span> <span style="color: pink;">+</span> <span style="color: #800080;">$objItem</span>.name
		<span style="color: #800000;">&quot; &quot;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Call ADSearch Menu Function</span>
fnADSearchMenu</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/05/13/information-gathering-via-powershell-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Left4Dead – Survival – No Mercy, Gas Station</title>
		<link>http://www.raseley.com/2009/04/30/85/</link>
		<comments>http://www.raseley.com/2009/04/30/85/#comments</comments>
		<pubDate>Fri, 01 May 2009 00:50:38 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Gas Station]]></category>
		<category><![CDATA[Left 4 Dead]]></category>
		<category><![CDATA[No Mercy]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[Strategy]]></category>
		<category><![CDATA[Survival]]></category>

		<guid isPermaLink="false">http://www.raseley.com/2009/04/85/</guid>
		<description><![CDATA[Me playing Left 4 Dead Survival mode on the No Mercy &#8211; Gas Station level.]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ytJLBPlH75E&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ytJLBPlH75E&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>Me playing Left 4 Dead Survival mode on the No Mercy &#8211; Gas Station level.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raseley.com/2009/04/30/85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
