<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>String Theory</title>
	
	<link>http://cmschill.net/stringtheory</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Wed, 03 Sep 2008 16:20:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<geo:lat>34.020621</geo:lat><geo:long>-84.142944</geo:long><creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/StringTheory" type="application/rss+xml" /><item>
		<title>Script Cmdlet to Empty the Recycle bin</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/382460918/</link>
		<comments>http://cmschill.net/stringtheory/2008/09/script-cmdlet-to-empty-the-recycle-bin/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 16:20:26 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/2008/09/script-cmdlet-to-empty-the-recycle-bin/</guid>
		<description><![CDATA[&#160; This weekend I needed to delete some files so I could defrag my hard drive. I only had 2% free and needed to get past that 15% threshold so it would work efficiently. I proceeded to do some house cleaning and started deleting old unneeded files. When I was done I had to empty [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p> <p>This weekend I needed to delete some files so I could defrag my hard drive. I only had 2% free and needed to get past that 15% threshold so it would work efficiently. I proceeded to do some house cleaning and started deleting old unneeded files. When I was done I had to empty the recycle bin. Yes I know I could have just done Shift-Delete to permanently delete the files, but I usually don&#8217;t remember and this is a little safer in case I do delete something I need. So as with everything else I do, I immediately though how could I do this in PowerShell. Deleting the files was the easy part. Emptying the Recycle Bin, I had to research. </p> <p>After some research I found out there was a Windows API function, <a href="http://msdn.microsoft.com/en-us/library/bb762160(VS.85).aspx" class="aptureAutolink" onclick="javascript:pageTracker._trackPageview ('/outbound/msdn.microsoft.com');">SHEmptyRecycleBin</a>, that does exactly what I needed.&nbsp; Of course, since it wasn&#8217;t a .Net function I wasn&#8217;t sure how I was going to use it in PowerShell. Then I realized that I had seen an <a href="http://www.poshcode.org/491" onclick="javascript:pageTracker._trackPageview ('/outbound/www.poshcode.org');">example</a> by <a href="http://www.huddledmasses.org" onclick="javascript:pageTracker._trackPageview ('/outbound/www.huddledmasses.org');">jaykul</a> where he imbedded C# code into a PowerShell script. He pretty much did all the work. I just tweaked it to fit my situation.&nbsp; </p> <p>This script cmdlet will only work in the version 2 CTP, but if you are driven to get it to work in version 1 I think there are ways to get it done. </p> <script src="http://PoshCode.org/embed/566"></script>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=OkXjMV"><img src="http://feeds.feedburner.com/~a/StringTheory?i=OkXjMV" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=ebnrfL"><img src="http://feeds.feedburner.com/~f/StringTheory?i=ebnrfL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=FxhoJl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=FxhoJl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=iDcxRl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=iDcxRl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/382460918" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/09/script-cmdlet-to-empty-the-recycle-bin/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/09/script-cmdlet-to-empty-the-recycle-bin/</feedburner:origLink></item>
		<item>
		<title>Check out the PowerScripting Podcast Live Video Feed</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/371493454/</link>
		<comments>http://cmschill.net/stringtheory/2008/08/check-out-the-powerscripting-podcast-live-video-feed/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 02:58:19 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/2008/08/check-out-the-powerscripting-podcast-live-video-feed/</guid>
		<description><![CDATA[&#160; Watch the guys in action   ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p> <p>Watch the guys in action</p> <p> <object id="utv_o_855274" height="320" width="400" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="_cx" value="10583"></param><param name="_cy" value="8467"></param><param name="FlashVars" value=""></param><param name="Movie" value="http://www.ustream.tv/flash/live/274919"></param><param name="Src" value="http://www.ustream.tv/flash/live/274919"></param><param name="WMode" value="Transparent"></param><param name="Play" value="0"></param><param name="Loop" value="-1"></param><param name="Quality" value="High"></param><param name="SAlign" value="LT"></param><param name="Menu" value="-1"></param><param name="Base" value=""></param><param name="AllowScriptAccess" value="always"></param><param name="Scale" value="NoScale"></param><param name="DeviceFont" value="0"></param><param name="EmbedMovie" value="0"></param><param name="BGColor" value=""></param><param name="SWRemote" value=""></param><param name="MovieData" value=""></param><param name="SeamlessTabbing" value="1"></param><param name="Profile" value="0"></param><param name="ProfileAddress" value=""></param><param name="ProfilePort" value="0"></param><param name="AllowNetworking" value="all"></param><param name="AllowFullScreen" value="true"> <embed name="utv_e_575650" id="utv_e_645537" flashvars="viewcount=false&amp;brand=embed" width="400" height="320" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" src="http://www.ustream.tv/flash/live/274919" type="application/x-shockwave-flash" /></param></object></p>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=Zo80aO"><img src="http://feeds.feedburner.com/~a/StringTheory?i=Zo80aO" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=AcTtDK"><img src="http://feeds.feedburner.com/~f/StringTheory?i=AcTtDK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=X8LmGk"><img src="http://feeds.feedburner.com/~f/StringTheory?i=X8LmGk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=6XVzuk"><img src="http://feeds.feedburner.com/~f/StringTheory?i=6XVzuk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/371493454" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/08/check-out-the-powerscripting-podcast-live-video-feed/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/08/check-out-the-powerscripting-podcast-live-video-feed/</feedburner:origLink></item>
		<item>
		<title>The Meaning of My Blog Name</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/277617701/</link>
		<comments>http://cmschill.net/stringtheory/2008/04/the-meaning-of-my-blog-name/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 13:00:15 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/2008/04/the-meaning-of-my-blog-name/</guid>
		<description><![CDATA[ If you are reading my blog then you might be wondering what the importance of the name of String Theory. Before you guess, No I am not talking about strings in the computing sense. I am talking about strings in the Physics&#8217; Unified Field Theory sense.&#160; I majored in Physics in college and had [...]]]></description>
			<content:encoded><![CDATA[<p> If you are reading my blog then you might be wondering what the importance of the name of <em>String Theory</em>. Before you guess, No I am not talking about strings in the computing sense. I am talking about strings in the Physics&#8217; Unified Field Theory sense.&nbsp; I majored in Physics in college and had I not decided to venture into the computing field I probably would have set my sights on the String Theory for study. </p> <p>If you have no idea what the String Theory, is watch the video below from&nbsp; <a href="http://www.ted.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.ted.com');">http://www.ted.com</a> where the well-known physicist <a href="http://en.wikipedia.org/wiki/Brian_Greene" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/en.wikipedia.org');">Brian Greene</a> gives a nontechnical, easy to understand explanation of String Theory. </p><br /> <center><!--cut and paste--> <object id="VE_Player" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="285" width="320" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="_cx" value="8467"></param><param name="_cy" value="7541"></param><param name="FlashVars" value=""></param><param name="Movie" value="http://static.videoegg.com/ted2/flash/loader.swf"></param><param name="Src" value="http://static.videoegg.com/ted2/flash/loader.swf"></param><param name="WMode" value="Window"></param><param name="Play" value="0"></param><param name="Loop" value="-1"></param><param name="Quality" value="High"></param><param name="SAlign" value="LT"></param><param name="Menu" value="-1"></param><param name="Base" value=""></param><param name="AllowScriptAccess" value="always"></param><param name="Scale" value="NoScale"></param><param name="DeviceFont" value="0"></param><param name="EmbedMovie" value="0"></param><param name="BGColor" value="FFFFFF"></param><param name="SWRemote" value=""></param><param name="MovieData" value=""></param><param name="SeamlessTabbing" value="1"></param><param name="Profile" value="0"></param><param name="ProfileAddress" value=""></param><param name="ProfilePort" value="0"></param><param name="AllowNetworking" value="all"></param><param name="AllowFullScreen" value="false"> <embed src="http://static.videoegg.com/ted2/flash/loader.swf" flashvars="bgColor=FFFFFF&amp;file=http://static.videoegg.com/ted/movies/BrianGreene_2005_high.flv&amp;autoPlay=false&amp;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&amp;forcePlay=false&amp;logo=&amp;allowFullscreen=true" quality="high" allowscriptaccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="320" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></param></object></center>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=GWGV2l"><img src="http://feeds.feedburner.com/~a/StringTheory?i=GWGV2l" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=v7uuL"><img src="http://feeds.feedburner.com/~f/StringTheory?i=v7uuL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=19T3l"><img src="http://feeds.feedburner.com/~f/StringTheory?i=19T3l" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=0X97l"><img src="http://feeds.feedburner.com/~f/StringTheory?i=0X97l" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/277617701" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/04/the-meaning-of-my-blog-name/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/04/the-meaning-of-my-blog-name/</feedburner:origLink></item>
		<item>
		<title>My Technical Library</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/275745530/</link>
		<comments>http://cmschill.net/stringtheory/2008/04/my-technical-library/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 23:25:37 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/2008/04/my-technical-library/</guid>
		<description><![CDATA[&#160;  In response to Steven Murawski&#8217;s blog post, here are the books currently in my library in no particular order.                       Web Database Applications with PHP &#38; MySQL, 2nd Edition    [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>  <p>In response to Steven Murawski&#8217;s <a href="http://powershell-basics.com/my-books/" onclick="javascript:pageTracker._trackPageview ('/outbound/powershell-basics.com');">blog post</a>, here are the books currently in my library in no particular order. </p>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596005431%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596005431%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51RLqGD8Q5L._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Web Database Applications with PHP &amp; MySQL, 2nd Edition</b>           <br />by Hugh E. Williams           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596005431%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596005431%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764575368%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764575368%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/5151HW3EGKL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Professional VB 2005 (Programmer to Programmer)</b>           <br />by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Rama Ramachandran, Kent Sharkey, Bill Sheldon           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764575368%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764575368%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764549863%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764549863%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51ZBYZ9BY6L._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>XML 1.1 Bible</b>           <br />by Elliotte Rusty Harold           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764549863%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764549863%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596528124%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596528124%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51ZC0NNT8QL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Mastering Regular Expressions</b>           <br />by Jeffrey Friedl           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596528124%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596528124%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=067232928X%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/067232928X%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51XQ6CRKQJL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Microsoft Operations Manager 2005 Unleashed (MOM): With A Preview of Operations Manager 2007 (Unleashed)</b>           <br />by Kerrie Meyler, Cameron Fuller           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=067232928X%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/067232928X%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0131882228%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0131882228%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51QCV660XSL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Official Samba-3 HOWTO and Reference Guide, The (2nd Edition) (Bruce Perens&#8217; Open Source Series)</b>           <br />by John H. Terpstra, Jelmer R. Vernooij           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0131882228%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0131882228%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0672329298%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0672329298%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51mScsFYYzL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Red Hat Fedora Core 6 Unleashed</b>           <br />by Paul Hudson, Andrew Hudson           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0672329298%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0672329298%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=1932394907%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/1932394907%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/11X10PQT0CL.jpg" border="1" /></a></td>        <td valign="top"><b>Windows PowerShell in Action</b>           <br />by Bruce Payette           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=1932394907%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/1932394907%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596528493%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596528493%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51Kt0BUd9RL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Windows PowerShell Cookbook: for Windows, Exchange 2007, and MOM V3</b>           <br />by Lee Holmes           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596528493%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596528493%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0735619670%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0735619670%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/517HN84P6FL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Code Complete: A Practical Handbook of Software Construction</b>           <br />by Steve McConnell           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0735619670%26tag=ws%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0735619670%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764575341%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764575341%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/51RHqu22ldL._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Professional C# 2005 (Wrox Professional Guides)</b>           <br />by Christian Nagel, Bill Evjen, Jay Glynn, Morgan Skinner, Karli Watson, Allen Jones           <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764575341%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764575341%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>  <table border="0"><tbody>     <tr>       <td valign="top"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0470041781%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0470041781%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');"><img src="http://ecx.images-amazon.com/images/I/41kVI2FV%2BML._SL75_.jpg" border="1" /></a></td>        <td valign="top"><b>Professional ASP.NET 2.0 Special Edition (Wrox Professional Guides)</b>          <br />by Bill Evjen, Scott Hanselman, Devin Rader, Farhan Muhammad, Srinivasa Sivakumar          <br />          <br /><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0470041781%26tag=depoffoc-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0470041781%253FSubscriptionId=0525E2PQ81DD7ZTWTK82" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amazon.com');">Read more about this book&#8230;</a></td>     </tr>   </tbody></table>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=rirHpf"><img src="http://feeds.feedburner.com/~a/StringTheory?i=rirHpf" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=zltbL"><img src="http://feeds.feedburner.com/~f/StringTheory?i=zltbL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=VMX6l"><img src="http://feeds.feedburner.com/~f/StringTheory?i=VMX6l" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=swzUl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=swzUl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/275745530" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/04/my-technical-library/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/04/my-technical-library/</feedburner:origLink></item>
		<item>
		<title>XenServer VM PowerShell Cmdlet</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/271390164/</link>
		<comments>http://cmschill.net/stringtheory/2008/04/xenserver-vm-powershell-cmdlet/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 12:21:09 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[Citrix]]></category>

		<category><![CDATA[PowerShell]]></category>

		<category><![CDATA[XenServer]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/2008/04/xenserver-vm-powershell-cmdlet/</guid>
		<description><![CDATA[&#160; Citrix has released some cmdlets for use with their XenServer virtualization product. No where near as powerful as VMWare&#8217;s cmdlets, but at least its a start. You can check them out and get more information at the URL below. http://community.citrix.com/display/cdn/XenServe+VM+PowerShell+CmdLet]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p> <p>Citrix has released some cmdlets for use with their XenServer virtualization product. No where near as powerful as VMWare&#8217;s cmdlets, but at least its a start. You can check them out and get more information at the URL below.</p> <p><a href="http://community.citrix.com/display/cdn/XenServe+VM+PowerShell+CmdLet" title="http://community.citrix.com/display/cdn/XenServe+VM+PowerShell+CmdLet" onclick="javascript:pageTracker._trackPageview ('/outbound/community.citrix.com');">http://community.citrix.com/display/cdn/XenServe+VM+PowerShell+CmdLet</a></p>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=oE4LYj"><img src="http://feeds.feedburner.com/~a/StringTheory?i=oE4LYj" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=dv79L"><img src="http://feeds.feedburner.com/~f/StringTheory?i=dv79L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=yZrel"><img src="http://feeds.feedburner.com/~f/StringTheory?i=yZrel" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=LKdkl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=LKdkl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/271390164" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/04/xenserver-vm-powershell-cmdlet/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/04/xenserver-vm-powershell-cmdlet/</feedburner:origLink></item>
		<item>
		<title>Setting PowerShell Execution Policy Remotely</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/269695145/</link>
		<comments>http://cmschill.net/stringtheory/2008/04/setting-powershell-execution-policy-remotely/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 00:20:50 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[PowerShell]]></category>

		<category><![CDATA[ExecutionPolicy]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/?p=8</guid>
		<description><![CDATA[&#160; So, you have seen the light and want to use PowerShell for all your daily tasks. By default the PowerShell execution policy is set to Restricted, meaning that PowerShell does not load configuration files and does not run scripts. You will have to change the execution policy for any machine you want to run [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p> <p>So, you have seen the light and want to use PowerShell for all your daily tasks. By default the PowerShell execution policy is set to <em>Restricted, </em>meaning that PowerShell does not load configuration files and does not run scripts. You will have to change the execution policy for any machine you want to run scripts on. For a large number of machines that would be a pain so I will give you three different methods for setting the execution policy for PowerShell.</p>
<span id="more-8"></span>
 <h3></h3> <h2>PowerShell Command</h2> <p>So the first method is actually just running a PowerShell command. You can set the PowerShell execution policy by running </p><code>powershell -command "&amp; {set-executionpolicy remotesigned}"</code>  <p>This just runs the set-executionpolicy cmdlet directly so it bypasses the script restriction. This solution is ideal for using via psexec or in a scripted build solution. I use the Altiris Deployment Solution to build my servers so I just add this command as a step in the build job. </p> <h1></h1> <h1></h1> <h2></h2> <h2></h2> <h2>Registry</h2> <p>The second solution is to set the execution policy via the ever present registry. You can set the execution policy directly by setting the value to the desired execution policy. </p> <p>Key: HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell\ <br />Value Name: ExecutionPolicy</p> <h2>Group Policy</h2> <p>The last solution is to set the execution policy with a Windows Group Policy Object. After spending some time creating my own template I discovered that Microsoft actually created a template to use. It has sections in the computer and user area and can be downloaded <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2917a564-dbbc-4da7-82c8-fe08b3ef4e6d&amp;displaylang=en&amp;Hash=AfTfsRfzVkIqmfORFqOEpQBQX8nGpXKjdIHB9TvLuBw55%2f82GkJML5OXMef3oVCXNogoJjYygdjV2qa1HCVwKQ%3d%3d " target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">here</a>.</p>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=Tuegwg"><img src="http://feeds.feedburner.com/~a/StringTheory?i=Tuegwg" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=q5lAL"><img src="http://feeds.feedburner.com/~f/StringTheory?i=q5lAL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=VHZal"><img src="http://feeds.feedburner.com/~f/StringTheory?i=VHZal" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=1v6ql"><img src="http://feeds.feedburner.com/~f/StringTheory?i=1v6ql" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/269695145" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/04/setting-powershell-execution-policy-remotely/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/04/setting-powershell-execution-policy-remotely/</feedburner:origLink></item>
		<item>
		<title>Bitwise Operators</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/265978340/</link>
		<comments>http://cmschill.net/stringtheory/2008/04/bitwise-operators/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 23:59:46 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/?p=5</guid>
		<description><![CDATA[Today we will take a look at the Bitwise Operators in Windows PowerShell and how you can manipulate them for your needs.&#160; First we will get some insight into the enumeration. Let&#8217;s begin by looking at the values for the [System.IO.FileAttributes] enumeration which provides attributes for files and directories.  As you can see from [...]]]></description>
			<content:encoded><![CDATA[<p>Today we will take a look at the Bitwise Operators in Windows PowerShell and how you can manipulate them for your needs.&#160; First we will get some insight into the enumeration. Let&#8217;s begin by looking at the values for the [System.IO.FileAttributes] enumeration which provides attributes for files and directories.</p>  <p style="text-align: left">As you can see from the table below each member corresponds to a different attribute that you can apply to files and directories. Some of these are common values that you see daily such as <em>ReadOnly</em> and <em>Hidden</em>, but others are not so common. I won&#8217;t go into the meaning of each of these, but if you are interested you can review them on the MSDN site <a href="http://msdn2.microsoft.com/en-us/library/system.io.fileattributes(VS.80).aspx" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/msdn2.microsoft.com');">here</a>. Each value, in decimal, is a power of 2 greater than the previous value. To add attributes you add the binary value. So the attributes for a file that is <em>ReadOnly</em> and <em>Hidden</em> would be &quot;1&quot; + &quot;10&quot; = &quot;11&quot; or 3.</p>  <p>An interesting note is that given any enumeration value there can be only <strong>ONE</strong> possible combination of values that will add up to the enumeration value.</p>  <p></p> <center>   <p></p>    <table style="height: 192px; text-align: left" cellspacing="0" cellpadding="0" width="371" border="1"><tbody>       <tr>         <th>Member Name</th>          <th>Binary Value</th>          <th>Decimal Value</th>       </tr>        <tr>         <td>ReadOnly</td>          <td align="right">1</td>          <td>1</td>       </tr>        <tr>         <td>Hidden</td>          <td align="right">10</td>          <td>2</td>       </tr>        <tr>         <td>System</td>          <td align="right">100</td>          <td>4</td>       </tr>        <tr>         <td>Directory</td>          <td align="right">10000</td>          <td>16</td>       </tr>        <tr>         <td>Archive</td>          <td align="right">100000</td>          <td>32</td>       </tr>        <tr>         <td>Device</td>          <td align="right">1000000</td>          <td>64</td>       </tr>        <tr>         <td>Normal</td>          <td align="right">10000000</td>          <td>128</td>       </tr>        <tr>         <td>Temporary</td>          <td align="right">100000000</td>          <td>256</td>       </tr>        <tr>         <td>SparseFile</td>          <td align="right">1000000000</td>          <td>512</td>       </tr>        <tr>         <td>Compressed</td>          <td align="right">10000000000</td>          <td>2048</td>       </tr>        <tr>         <td>Offline</td>          <td align="right">100000000000</td>          <td>4096</td>       </tr>        <tr>         <td>Encrypted</td>          <td align="right">1000000000000</td>          <td>16384</td>       </tr>     </tbody></table>    <p></p> </center>  <p>So. Enough for the theory. Let&#8217;s have fun.</p>  <h2>Determining if an attribute is set</h2>  <p>The first task we want to accomplish is checking to see whether an attribute is set on a specified file. In this case we are using a file called &quot;test.txt&quot; with the <em>Hidden</em> and <em>ReadOnly</em> attributes set. First we get the file information and attributes. Then we use the -band bitwise operator to compare the objects.</p>  <p><code>$File = Get-ChildItem .\test.txt -Force      <br />$File.Attributes       <br />if ( $File.Attributes -band [System.IO.FileAttributes]::Hidden )       <br />{ Write-Host &quot;Hidden Attribute Set&quot; }</code></p>  <p>With the &quot;-band&quot; operator each binary value is compared and in each position if a 1 is present in both numbers then a 1 is returned. If not, a 0 is returned. So for our example <code>&quot;11 -band 10&quot;</code> is equal to 10 because a 1 is in the second position in both numbers. The way that enumerations are setup dictate two possible values for this comparison. Either the returned value is equal to the attribute being compared or 0, indicating that the attribute is not set.</p>  <h2>Setting an attribute</h2>  <p>The next task we want to perform is setting an attribute. We are going to use the same file we used in the previous example and set the <em>System</em> attribute. For this task we are going to use the -bor operator.</p>  <p><code>$File = Get-ChildItem .\test.txt -Force      <br />$File.Attributes       <br />$File.Attributes = ( $File.Attributes -bor [System.IO.FileAttributes]::System )       <br />$File.Attributes</code></p>  <p>Here, by using the &quot;-bor&quot; operator each binary value is compared and in each position if there is a one present in either number then a one is returned for that position. It&#8217;s like a light switch. If it is turned on in either number then it is turned on in the resulting output.&#160; Using this analogy we are flipping on the switch that corresponds to the <em>System</em> attribute.</p>  <h2>Removing an attribute</h2>  <p>The last task is removing an attribute. For this example we are using the &quot;-bxor&quot; operator. This operator is like a two-way light switch. If you turn on one light switch, the light is on. If you then turn on the other switch, the light turns off.&#160; So you can probably see the issue. If you run the following script a couple of times on the same file you will notice that the <em>System</em> attributes gets turned on or off each time you run it.</p>  <p><code>$File = Get-ChildItem .\test.txt -Force      <br />$File.Attributes       <br />$File.Attributes = ( $File.Attributes -bxor [System.IO.FileAttributes]::System )       <br />$File.Attributes</code></p>  <p>This is good if you want to set an attribute to the opposite of the current setting. However if you want to just remove an attribute you will need the following script.</p>  <p><code>     <br />$File = Get-ChildItem .\test.txt -Force       <br />$File.Attributes       <br />if (&#160; $File.Attributes -band [System.IO.FileAttributes]::System)       <br />{ $File.Attributes = ( $File.Attributes -bxor [System.IO.FileAttributes]::System )&#160; } $File.Attributes       <br /></code></p>  <p>We use the &quot;-band&quot; operator to make sure the option is set and then unset it using the &quot;-bxor&quot; operator.</p>
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=qShPKN"><img src="http://feeds.feedburner.com/~a/StringTheory?i=qShPKN" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=SyB9L"><img src="http://feeds.feedburner.com/~f/StringTheory?i=SyB9L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=NHOcl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=NHOcl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=BjObl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=BjObl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/265978340" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/04/bitwise-operators/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/04/bitwise-operators/</feedburner:origLink></item>
		<item>
		<title>PowerScripting Podcast - Episode 22 “The One About Brandon”</title>
		<link>http://feeds.feedburner.com/~r/StringTheory/~3/263622766/</link>
		<comments>http://cmschill.net/stringtheory/2008/04/powerscripting-podcast-episode-22-the-one-about-brandon/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 23:12:16 +0000</pubDate>
		<dc:creator>Mark Schill</dc:creator>
		
		<category><![CDATA[PowerShell]]></category>

		<category><![CDATA[podcast]]></category>

		<guid isPermaLink="false">http://cmschill.net/stringtheory/?p=6</guid>
		<description><![CDATA[
Hal and Jonathan have done it again.
Today we’ll bring you the second half of our interview with Jeffrey Snover. We think this part is even better than the first half. We’ve also got some news, resources, and a bunch of PowerShell tips for you.
Go pick up the podcast at http://powerscripting.wordpress.com/.]]></description>
			<content:encoded><![CDATA[<br /><br />
Hal and Jonathan have done it again.
<blockquote>Today we’ll bring you the second half of our interview with Jeffrey Snover. We think this part is even better than the first half. We’ve also got some news, resources, and a bunch of PowerShell tips for you.</blockquote>
Go pick up the podcast at <a href="http://powerscripting.wordpress.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/powerscripting.wordpress.com');">http://powerscripting.wordpress.com/</a>.
<p><a href="http://feeds.feedburner.com/~a/StringTheory?a=2DMM3M"><img src="http://feeds.feedburner.com/~a/StringTheory?i=2DMM3M" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/StringTheory?a=mkllL"><img src="http://feeds.feedburner.com/~f/StringTheory?i=mkllL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=81GZl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=81GZl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/StringTheory?a=81Jrl"><img src="http://feeds.feedburner.com/~f/StringTheory?i=81Jrl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/StringTheory/~4/263622766" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cmschill.net/stringtheory/2008/04/powerscripting-podcast-episode-22-the-one-about-brandon/feed/</wfw:commentRss>
		<feedburner:origLink>http://cmschill.net/stringtheory/2008/04/powerscripting-podcast-episode-22-the-one-about-brandon/</feedburner:origLink></item>
	</channel>
</rss>
