<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Brent Challis&#039; Weblog</title>
	<atom:link href="http://bchallis.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bchallis.wordpress.com</link>
	<description>I intend to use the Blog as a repository of technical information i find interesting or useful.</description>
	<lastBuildDate>Sun, 13 Nov 2011 06:29:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bchallis.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7839294158817a63a9e9690414f680d0?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Brent Challis&#039; Weblog</title>
		<link>http://bchallis.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bchallis.wordpress.com/osd.xml" title="Brent Challis&#039; Weblog" />
	<atom:link rel='hub' href='http://bchallis.wordpress.com/?pushpress=hub'/>
		<item>
		<title>NetComm NP206 Wireless Powerline Kit</title>
		<link>http://bchallis.wordpress.com/2011/11/13/netcomm-np206-wireless-powerline-kit/</link>
		<comments>http://bchallis.wordpress.com/2011/11/13/netcomm-np206-wireless-powerline-kit/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 06:29:12 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/2011/11/13/netcomm-np206-wireless-powerline-kit/</guid>
		<description><![CDATA[I recently wanted to rearrange the WiFi access point in the house to get better overall coverage. Having decided that getting an extra phone point or trying to run cabling was going to be too difficult, I decided to try one of the Ethernet over the power options. I bought the NetComm NP206 units. One [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=58&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to rearrange the WiFi access point in the house to get better overall coverage.  Having decided that getting an extra phone point or trying to run cabling was going to be too difficult, I decided to try one of the Ethernet over the power options.  I bought the NetComm  NP206 units.  One of the advantages of this option is that not only does it provide an ethernet connection so I could reposition the AP that I have, it includes a WiFi Access Point as well (802.11n which is better than the AP I already had.)</p>
<p>I plugged the two units in to the power points, they immediately connected to provide me with the ethernet link I needed to connect the ADSL modem to a better positioned Access Point.  I plugged the AP I had in to one of the ethernet ports (there are two) and it all worked perfectly.  </p>
<p>The I tried to connect to the built in AP.  I could see the SSID, just as the manual described.  The problem was that when I tried to connect to it it would not accept the password as described in the manual.  On one of the devices that I have I received an invalid password message.</p>
<p>The solution &#8211; I downloaded the configuration utility, you can find it here:</p>
<p>http://www.netcomm.com.au/sm/drivers/np206</p>
<p>When I ran this, the password displayed for the AP was nothing like that described in the manual.</p>
<p>I reset the password (And the SSID while I was at it) and now have all my WiFi devices connecting to it.</p>
<p>The units seem to be working very well, and, with the exception (and quite a big one at that!) of the wrong password being described in the manual, it worked very easily.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=58&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/11/13/netcomm-np206-wireless-powerline-kit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding PowerShell cmdlets that use a particular parameter</title>
		<link>http://bchallis.wordpress.com/2011/05/03/finding-powershell-cmdlets-that-use-a-particular-parameter/</link>
		<comments>http://bchallis.wordpress.com/2011/05/03/finding-powershell-cmdlets-that-use-a-particular-parameter/#comments</comments>
		<pubDate>Tue, 03 May 2011 01:27:43 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=48</guid>
		<description><![CDATA[There are times when I have wanted to know what cmdlets use a particular parameter, such as ComputerName or PassThru, so I have added the following function to my profile: function Get-CommandByParameter ([string]$Parameter) { Get-Command &#124; Where-Object {try {$_.Parameters.Keys -contains $Parameter} catch {}} }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=48&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are times when I have wanted to know what cmdlets use a particular parameter, such as ComputerName or PassThru, so I have added the following function to my profile:</p>
<pre>function Get-CommandByParameter ([string]$Parameter)
{
    Get-Command | Where-Object {try {$_.Parameters.Keys -contains $Parameter} catch {}}
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=48&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/05/03/finding-powershell-cmdlets-that-use-a-particular-parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Problem deleting a corrupt SharePoint 2010 List</title>
		<link>http://bchallis.wordpress.com/2011/03/22/problem-deleting-a-corrupt-sharepoint-2010-list/</link>
		<comments>http://bchallis.wordpress.com/2011/03/22/problem-deleting-a-corrupt-sharepoint-2010-list/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 23:58:13 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=40</guid>
		<description><![CDATA[Recently I encounted a problem in deleting a list which had apparently become corrupt.  I was unable to access the list through Central Admin, Site Settings or SharePoint designer.  Attempting to use the forcedeletelist in STSADM was also unsuccessful. I found this useful reference: http://blog.falchionconsulting.com/index.php/2007/11/delete-list-forget-about-forcedeletelist/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=40&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I encounted a problem in deleting a list which had apparently become corrupt.  I was unable to access the list through Central Admin, Site Settings or SharePoint designer.  Attempting to use the forcedeletelist in STSADM was also unsuccessful.</p>
<p>I found this useful reference:</p>
<p><a href="http://blog.falchionconsulting.com/index.php/2007/11/delete-list-forget-about-forcedeletelist/">http://blog.falchionconsulting.com/index.php/2007/11/delete-list-forget-about-forcedeletelist/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=40&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/03/22/problem-deleting-a-corrupt-sharepoint-2010-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 Dev references</title>
		<link>http://bchallis.wordpress.com/2011/03/17/sharepoint-2010-dev-references/</link>
		<comments>http://bchallis.wordpress.com/2011/03/17/sharepoint-2010-dev-references/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 22:46:48 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=29</guid>
		<description><![CDATA[This is a collection of links that I am finding useful as I research and work with SharePoint 2010: Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008 http://msdn.microsoft.com/en-us/library/ee554869.aspx Site Templates and their IDs With the SharePoint PowerShell management console (all one one line): Get-SPWebTemplate &#124; select [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=29&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a collection of links that I am finding useful as I research and work with SharePoint 2010:</p>
<p>Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee554869.aspx">http://msdn.microsoft.com/en-us/library/ee554869.aspx</a></p>
<p>Site Templates and their IDs</p>
<p>With the SharePoint PowerShell management console (all one one line):</p>
<blockquote><p>Get-SPWebTemplate |<br />
select Title,Name,Description | ConvertTo-HTML | Out-File<br />
c:\data\SPTemplates.html</p></blockquote>
<p><a href="http://technet.microsoft.com/en-us/library/ff607979.aspx">http://technet.microsoft.com/en-us/library/ff607979.aspx</a></p>
<p><a href="http://www.toddbaginski.com/blog/archive/2009/11/20/which-sharepoint-2010-site-template-is-right-for-me.aspx">http://www.toddbaginski.com/blog/archive/2009/11/20/which-sharepoint-2010-site-template-is-right-for-me.aspx</a></p>
<p>List reference IDs</p>
<p><a href="http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html">http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html</a></p>
<p>MSDN References</p>
<p>Schema description</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms462947.aspx">http://msdn.microsoft.com/en-us/library/ms462947.aspx</a></p>
<p>SPListTemplateType Enumeration</p>
<p><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx</a></p>
<p>SPMetal</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee538255(office.14).aspx">http://msdn.microsoft.com/en-us/library/ee538255(office.14).aspx</a></p>
<p><a href="http://fabiangwilliams.wordpress.com/2010/01/03/how-to-using-spmetal-utility-in-sharepoint-2010-to-presumably-manipulate-data-on-a-bcs-external-list/">http://fabiangwilliams.wordpress.com/2010/01/03/how-to-using-spmetal-utility-in-sharepoint-2010-to-presumably-manipulate-data-on-a-bcs-external-list/</a></p>
<p>Sandbox Solutions</p>
<p>Namespaces and Types in Sandboxed Solutions</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee537860(office.14).aspx">http://msdn.microsoft.com/en-us/library/ee537860(office.14).aspx</a></p>
<p>Client Side Object Model</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee857094(office.14).aspx">http://msdn.microsoft.com/en-us/library/ee857094(office.14).aspx</a></p>
<p><a href="http://channel9.msdn.com/Learn/Courses/SharePoint2010Developer/ClientObjectModel">http://channel9.msdn.com/Learn/Courses/SharePoint2010Developer/ClientObjectModel</a></p>
<p>Workflow with Visio 2010</p>
<p><a href="http://office.microsoft.com/en-us/visio-help/create-import-and-export-sharepoint-workflows-in-visio-HA101888007.aspx">http://office.microsoft.com/en-us/visio-help/create-import-and-export-sharepoint-workflows-in-visio-HA101888007.aspx</a></p>
<p><a href="http://blogs.msdn.com/b/visio/archive/2010/01/19/sharepoint-workflow-authoring-in-visio-premium-2010-part-2.aspx">http://blogs.msdn.com/b/visio/archive/2010/01/19/sharepoint-workflow-authoring-in-visio-premium-2010-part-2.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=29&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/03/17/sharepoint-2010-dev-references/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>More on PowerShell Common Parameter</title>
		<link>http://bchallis.wordpress.com/2011/02/25/more-on-powershell-common-parameter/</link>
		<comments>http://bchallis.wordpress.com/2011/02/25/more-on-powershell-common-parameter/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 06:35:23 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=25</guid>
		<description><![CDATA[Following up on how to use the Common Parameters with your own functions utlising the cmdlets such as Write-Verbose I went exploring the preference variables to see how they reacted to the switches to see if I could detect the use of the switches for my own code.  The following script is what I used [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=25&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following up on how to use the Common Parameters with your own functions utlising the cmdlets such as Write-Verbose I went exploring the preference variables to see how they reacted to the switches to see if I could detect the use of the switches for my own code.  The following script is what I used to see the variables&#8217; values change and to show that I could detect the switches being used.</p>
<p>function Test-CommonParameterVariables<br />
{<br />
[CmdletBinding()]<br />
Param<br />
(<br />
[string]$switches<br />
)<br />
&#8220;Commandline switches: $switches`n&#8221;<br />
&#8220;Preference Variables:&#8221;<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br />
dir variable:\*Preference | Sort-Object -Property Name<br />
if ($VerbosePreference -ne &#8216;SilentlyContinue&#8217;)<br />
{<br />
Write-Warning &#8220;In the VerbosePreference block&#8221;<br />
}<br />
if ($DebugPreference -ne &#8216;SilentlyContinue&#8217;)<br />
{<br />
Write-Warning &#8220;In the DebugPreference block&#8221;<br />
}<br />
}</p>
<p>Clear-Host<br />
Test-CommonParameterVariables &#8216;No switches&#8217;<br />
Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Test-CommonParameterVariables &#8216;-Verbose&#8217; -Verbose</p>
<p>Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Test-CommonParameterVariables &#8216;-Debug&#8217; -Debug</p>
<p>Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Test-CommonParameterVariables &#8216;-Verbose -Debug&#8217; -Verbose -Debug</p>
<p>Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Test-CommonParameterVariables &#8216;-ErrorAction Continue&#8217; -ErrorAction Continue</p>
<p>Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Test-CommonParameterVariables &#8216;-ErrorAction Inquire&#8217; -ErrorAction Inquire<br />
Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Test-CommonParameterVariables &#8216;-ErrorAction Stop&#8217; -ErrorAction Stop<br />
Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=25&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/02/25/more-on-powershell-common-parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Common Parameters in PowerShell</title>
		<link>http://bchallis.wordpress.com/2011/02/23/using-common-parameters-in-powershell/</link>
		<comments>http://bchallis.wordpress.com/2011/02/23/using-common-parameters-in-powershell/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 00:30:51 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=22</guid>
		<description><![CDATA[I have been exploring how the Common Parameter functionality gets used in custom code.  Basically it looks as though you need to use the CmdletBinding attribute to have the Common Parameters bound to your function, which means that you need to have parameters for this to work.  Then you have to use cmdlets such as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=22&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been exploring how the Common Parameter functionality gets used in custom code.  Basically it looks as though you need to use the CmdletBinding attribute to have the Common Parameters bound to your function, which means that you need to have parameters for this to work.  Then you have to use cmdlets such as Write-Verbose to hook in the the in built support for the Common Parameters.</p>
<p>The following code is what I have been using to check the functionality:</p>
<p>###############################################<br />
# Script to explore common parameters<br />
# Brent Challis<br />
# Dimension Data Learning Solutions<br />
# Melbourne, Victoria, Australia<br />
###############################################<br />
function Test-CommonParametersWithCmdletBinding<br />
{<br />
[CmdletBinding()]<br />
Param<br />
(<br />
[string]$FunctionMessage = &#8220;Initial Value&#8221;<br />
)<br />
Write-Output &#8220;Starting Function with CmdletBinding.&#8221;<br />
Write-Host &#8220;Writing to the host.&#8221;<br />
Write-Output $FunctionMessage<br />
Write-Verbose &#8220;Verbose message.&#8221;<br />
Write-Debug &#8220;Debug message.&#8221;<br />
Write-Warning &#8220;Warning message.&#8221;<br />
Write-Output &#8220;Function Complete.&#8221;<br />
}</p>
<p>function Test-CommonParametersWithoutCmdletBinding<br />
{<br />
Param<br />
(<br />
[string]$FunctionMessage = &#8220;Initial Value&#8221;<br />
)<br />
Write-Output &#8220;Starting Function without CmdletBinding.&#8221;<br />
Write-Host &#8220;Writing to the host.&#8221;<br />
Write-Output $FunctionMessage<br />
Write-Verbose &#8220;Verbose message.&#8221;<br />
Write-Debug &#8220;Debug message.&#8221;<br />
Write-Warning &#8220;Warning message.&#8221;<br />
Write-Output &#8220;Function Complete.&#8221;<br />
}</p>
<p>Clear-Host<br />
Write-Host &#8220;Starting.&#8221;<br />
Write-Host &#8220;==========================================================&#8221;<br />
Write-Host &#8220;Getting help info&#8221;<br />
Get-Help Test-CommonParametersWithCmdletBinding<br />
Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
Get-Help Test-CommonParametersWithoutCmdletBinding<br />
Write-Host &#8220;==========================================================&#8221;<br />
Write-Host &#8220;Run with CmdletBinding.&#8221;<br />
Test-CommonParametersWithCmdletBinding &#8220;Test Message&#8221; -Verbose -Debug<br />
Write-Host &#8220;==========================================================&#8221;<br />
Write-Host &#8220;Run without CmdletBinding.&#8221;<br />
Test-CommonParametersWithoutCmdletBinding &#8220;Test Message&#8221; -Verbose -Debug<br />
Write-Host &#8220;==========================================================&#8221;<br />
Write-Output &#8220;Test complete.&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=22&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/02/23/using-common-parameters-in-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Warming up a SharePoint 2010 Server with PowerShell</title>
		<link>http://bchallis.wordpress.com/2011/02/17/warming-up-a-sharepoint-2010-server-with-powershell/</link>
		<comments>http://bchallis.wordpress.com/2011/02/17/warming-up-a-sharepoint-2010-server-with-powershell/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 02:34:12 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=18</guid>
		<description><![CDATA[In looking for an updated way to warm up SharePoint 2010 sites to improve the user experience I cam across a PowerShell script at the following site: http://nearbaseline.com.au/blog/2010/02/powershell-warmup-script-2/ ############################################################################ #WarmUp2.ps1 &#8211; Enumerates all web sites in web applications in a 2010 # SharePoint farm and opens each in a browser. #Notes: #-&#8221;get-webpage&#8221; function borrowed from: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=18&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In looking for an updated way to warm up SharePoint 2010 sites to improve the user experience I cam across a PowerShell script at the following site:</p>
<p><a href="http://nearbaseline.com.au/blog/2010/02/powershell-warmup-script-2/">http://nearbaseline.com.au/blog/2010/02/powershell-warmup-script-2/</a></p>
<p>############################################################################<br />
#WarmUp2.ps1 &#8211; Enumerates all web sites in web applications in a 2010<br />
# SharePoint farm and opens each in a browser.<br />
#Notes:<br />
#-&#8221;get-webpage&#8221; function borrowed from:<br />
# http://kirkhofer.wordpress.com/2008/10/18/sharepoint-warm-up-script/<br />
#<br />
#Assumptions:<br />
#-Running on machine with WSS/MOSS 2010 installed<br />
############################################################################</p>
<p>Add-PsSnapin Microsoft.SharePoint.PowerShell<br />
$extrasitelistfile = &#8216;c:\Tools\Warmup\warmup-extrasites.txt&#8217;</p>
<p>function get-webpage([string]$url,[System.Net.NetworkCredential]$cred=$null)<br />
{<br />
$wc = new-object net.webclient<br />
if($cred -eq $null)<br />
{<br />
$cred = [System.Net.CredentialCache]::DefaultCredentials;<br />
}<br />
$wc.credentials = $cred;<br />
return $wc.DownloadString($url);<br />
}</p>
<p>#This passes in the default credentials needed. If you need specific<br />
#stuff you can use something else to elevate basically the permissions.<br />
#Or run this task as a user that has a Policy above all the Web<br />
#Applications with the correct permissions</p>
<p>$cred = [System.Net.CredentialCache]::DefaultCredentials;<br />
#$cred = new-object System.Net.NetworkCredential(&#8220;username&#8221;,&#8221;password&#8221;,&#8221;machinename&#8221;)</p>
<p>$apps = get-spwebapplication -includecentraladministration<br />
foreach ($app in $apps) {<br />
$sites = get-spsite -webapplication $app.url<br />
foreach ($site in $sites) {<br />
write-host $site.Url;<br />
$html=get-webpage -url $site.Url -cred $cred;<br />
}<br />
}<br />
# Warm up other sites specified in warmup-extrasites.txt file (such as SSRS)</p>
<p>if (test-path $extrasitelistfile) {<br />
$extrasites = get-content $extrasitelistfile<br />
foreach ($site in $extrasites) {<br />
write-host $site;<br />
$html=get-webpage -url $site -cred $cred;<br />
}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=18&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2011/02/17/warming-up-a-sharepoint-2010-server-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>C# MessageBox with Time Out</title>
		<link>http://bchallis.wordpress.com/2010/12/23/c-messagebox-with-time-out/</link>
		<comments>http://bchallis.wordpress.com/2010/12/23/c-messagebox-with-time-out/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 21:47:29 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[MessageBox]]></category>
		<category><![CDATA[time out]]></category>
		<category><![CDATA[Timeout]]></category>

		<guid isPermaLink="false">http://bchallis.wordpress.com/?p=13</guid>
		<description><![CDATA[In an application that I am currently working on I need to have a MessageBox display a warning to users, but wanted it to close down after a time delay if the user did not click the OK button.  This is functionality that I had in the Shell.Popup in my VBScript work, so simply reused [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=13&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In an application that I am currently working on I need to have a MessageBox display a warning to users, but wanted it to close down after a time delay if the user did not click the OK button.  This is functionality that I had in the Shell.Popup in my VBScript work, so simply reused that functionality.</p>
<p>I did this by adding a reference to the IWshRuntimeLibrary by selecting Add reference and from the COM tab, selecting the Windows Script Host Object Model.</p>
<p>Then in my code simply put:</p>
<blockquote><p>IWshRuntimeLibrary.WshShellClass wshShell = new IWshRuntimeLibrary.WshShellClass();</p>
<p>wshShell.Popup(&#8220;The Master version has shut down, so this instance needs to close as well.&#8221;, 10, &#8220;Master Instance of GhostCaster has closed&#8221;);</p></blockquote>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=13&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2010/12/23/c-messagebox-with-time-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell_ISE utility function to add help tags</title>
		<link>http://bchallis.wordpress.com/2010/09/29/powershell_ise-utility-to-add-help-tags/</link>
		<comments>http://bchallis.wordpress.com/2010/09/29/powershell_ise-utility-to-add-help-tags/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 04:19:47 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[help tags]]></category>

		<guid isPermaLink="false">https://bchallis.wordpress.com/2010/09/29/powershell_ise-utility-to-add-help-tags/</guid>
		<description><![CDATA[The following is a utility function that adds a tag structure to make it easier to add help to your functions to be displayed by the Get-Help Cmdlet. &#60;# .SYNOPSIS &#160; Inset tags to support the Get-Help Cmdlet .DESCRIPTION &#160; Insert-FunctionHelpText inserts text at the current cursor position to provide &#160; a skeleton of tags [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=9&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following is a utility function that adds a tag structure to make it easier to add help to your functions to be displayed by the Get-Help Cmdlet.</p>
<p>&lt;#    <br />.SYNOPSIS     <br />&#160; Inset tags to support the Get-Help Cmdlet     <br />.DESCRIPTION     <br />&#160; Insert-FunctionHelpText inserts text at the current cursor position to provide     <br />&#160; a skeleton of tags which can then be edited to provide support for the function     <br />&#160; and the Get-Help Cmdlet.     <br />.NOTES     <br />&#160; This is a useful function to be called from a menu added to the PowerShell-ISE     <br />&#160; Add-ons menu structure.&#160; <br />.EXAMPLE     <br />&#160; Insert-FunctionHelpText     <br />#&gt;     <br />function Insert-FunctionHelpText()     <br />{     <br />$psISE.CurrentFile.Editor.InsertText(&quot;&lt;#     <br />.SYNOPSIS     <br />&#160; Brief description of function.&#160; Start with a verb.     <br />.DESCRIPTION     <br />&#160; Full description of the function.&#160; Start with &lt;function name&gt;     <br />.PARAMETER parameterName     <br />&#160; Description of parameter     <br />.INPUTS     <br />&#160; List .NET classes the function will accept as input.     <br />.OUTPUTS     <br />&#160; List .NET classes the function will output.     <br />.NOTES     <br />&#160; List information that does not easily fit into other parts of the structure.     <br />.LINK     <br />&#160; about_function     <br />.EXAMPLE     <br />&#160; function-name -parameter     <br />#&gt;     <br />&quot;)     <br />}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=9&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2010/09/29/powershell_ise-utility-to-add-help-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding files owned by a user, or they are on the ACL</title>
		<link>http://bchallis.wordpress.com/2010/09/29/finding-files-owned-by-a-user-or-they-are-on-the-acl/</link>
		<comments>http://bchallis.wordpress.com/2010/09/29/finding-files-owned-by-a-user-or-they-are-on-the-acl/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 03:56:02 +0000</pubDate>
		<dc:creator>Brent Challis</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[custom filter]]></category>
		<category><![CDATA[file acl]]></category>
		<category><![CDATA[file owner]]></category>

		<guid isPermaLink="false">https://bchallis.wordpress.com/2010/09/29/finding-files-owned-by-a-user-or-they-are-on-the-acl/</guid>
		<description><![CDATA[The attached code is for a PowerShell filter that takes a collection of items (mainly aimed at files from a dir/Get-ChildItem query, although it also works on Registry Keys) and only allows those files that have the user name either as the owner or in an ACL entry through the pipeline for further processing &#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=7&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The attached code is for a PowerShell filter that takes a collection of items (mainly aimed at files from a dir/Get-ChildItem query, although it also works on Registry Keys) and only allows those files that have the user name either as the owner or in an ACL entry through the pipeline for further processing </p>
<p>&#160;</p>
<p>&#160;</p>
<p>Set-StrictMode -Version &quot;2.0&quot;    <br />&lt;#     <br />.SYNOPSIS     <br />&#160;&#160;&#160; This filter reads objects from the pipeline and only passes those obects which include the aclName     <br />&#160;&#160;&#160; on the ACL.     <br />.DESCRIPTION     <br />&#160;&#160;&#160; The filter processes the objects passed through the pipeline and examines the ACL to see if the     <br />&#160;&#160;&#160; name passed in as the aclName is either the owner of the object, or is listed as one of the     <br />&#160;&#160;&#160; IdentityReferences in the ACL Entries.&#160; The comparison for the name is performed using the     <br />&#160;&#160;&#160; -like operator which allows for widcard inclusion.&#160; <br />.PARAMETER aclName     <br />&#160;&#160;&#160; The value passed in this parameter is compared to the name of the owner in the ACL and the     <br />&#160;&#160;&#160; IdentityReference values of the ACL entries     <br />.EXAMPLE     <br />&#160;&#160;&#160; dir c:\webdem | Select-ItemsByAclEntry -aclName &quot;*guest*&quot;     <br />.EXAMPLE     <br />&#160;&#160;&#160; dir HKCU:\Software\Microsoft\VisualStudio -recurse | Select-ItemsByAclEntry -aclName *guest     <br />&#160;&#160;&#160; The dir part of this statement, in particular, needs to be executed with credentials that     <br />&#160;&#160;&#160; have sufficent access to the Registry Keys.     <br />#&gt;     <br />filter Select-ItemByAclEntry ([string]$aclName)     <br />{     <br />&#160;&#160;&#160; try     <br />&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $acl = $_.GetAccessControl()     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $foundUser = ($acl.Owner -like $aclName)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (-not $foundUser)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $acl.Access.Count -gt 0)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach ($a in $acl.Access)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($a.IdentityReference -like $aclName)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $foundUser = $true     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <br />&#160;&#160;&#160; }catch     <br />&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;There was an exception: $_&quot;     <br />&#160;&#160;&#160; }     <br />&#160;&#160;&#160; if ($foundUser)     <br />&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Output($_)     <br />&#160;&#160;&#160; }     <br />}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bchallis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bchallis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bchallis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bchallis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bchallis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bchallis.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bchallis.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bchallis.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bchallis.wordpress.com&amp;blog=2522450&amp;post=7&amp;subd=bchallis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bchallis.wordpress.com/2010/09/29/finding-files-owned-by-a-user-or-they-are-on-the-acl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7298e53adf3a4a64bb3a907a1f651f20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
	</channel>
</rss>
