<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><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:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">

<channel>
	<title>Get-Powershell</title>
	
	<link>http://getpowershell.wordpress.com</link>
	<description>Andy Schneider's Blog about Windows Powershell</description>
	<lastBuildDate>Mon, 06 Oct 2008 14:52:41 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="getpowershell.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/38b75106e3a0a406d1f1333a3503c1c8?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Get-Powershell</title>
		<link>http://getpowershell.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Get-powershell" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Getting Admin’s to adopt PowerShell</title>
		<link>http://getpowershell.wordpress.com/2008/10/06/getting-admins-to-adopt-powershell/</link>
		<comments>http://getpowershell.wordpress.com/2008/10/06/getting-admins-to-adopt-powershell/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 14:52:22 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[PowerShell NewComer]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/10/06/getting-admins-to-adopt-powershell/</guid>
		<description><![CDATA[The RTM of PowerShell was released over 2 years ago. But still there are multiple occasions in which I find myself trying to convince someone that they should really start looking into using this incredible new tool but they end up fighting me pretty hard. There have been a couple consistent themes that I have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=90&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font face="Arial" size="3">The RTM of PowerShell was released over 2 years ago. But still there are multiple occasions in which I find myself trying to convince someone that they should really start looking into using this incredible new tool but they end up fighting me pretty hard. There have been a couple consistent themes that I have detected in these conversations that I think are very valid points.</font></p>
<p><font face="Arial" size="3">First, I would like to point out that my role at work is a System Engineer. I am not the Operations guy down in the trenches with </font><a href="http://www.hanselman.com/blog/ILikeCakeCakemailNinjasOnFireAndOtherAnecdotes.aspx" target="_blank"><font face="Arial" size="3">Ninjas on fire</font></a><font face="Arial" size="3"> chasing me everywhere I go. My role on the Infrastructure team is to figure out how to incorporate new technology into our existing infrastructure without breaking stuff. I also help troubleshoot issues that get escalated to our team. So suffice to say, I am not an Admin. But, here is some feedback I have gotten from our Ops team members.</font></p>
<p><font face="Arial" size="3">The first is that Admins are never going to use something unless they need to. Necessity is the mother of invention, or innovation for that matter. Why would anyone switch from something that works to something that may work but they don&#8217;t know how to&nbsp; use yet? I think the PowerShell team is working very hard to address this very issue, although I think sometimes we miss it in the background when we are introducing people to PowerShell. One of the beauties of PowerShell is that it is a solid consistent language that can be used across multiple technologies. Regardless of whether you are administering an Exchange server or Virtual Machine manager, you are going to likely be doing a &#8220;get-doohickey | set-Doohickey.&#8221; Also there is tremendous power in the consistency of naming parameters and arguments. All Cmdlets are verb-noun -parameter argument. </font></p>
<p><font face="Arial" size="3">I think what the Admin is thinking is that PowerShell is just one more thing to learn. We are having a hard time telling them that the investment they make in learning PowerShell to manage Exchange will also help them with VMM, desktop management, AD,Group Policy, and Terminal Services, just to name a few. </font></p>
<p><font face="Arial" size="3">The second issue is really a two-edged a sword. There is an awesome community supporting PowerShell and a ton of great content on the web that has been worked on over the years and is really quite mature. The problem here is that newcomers to PowerShell start seeing some of this stuff and get completely overwhelmed right away. If a complete beginner asks &#8220;How can I filter the services to see just the ones that are stopped?&#8221; and they find something like <font face="cons">&#8220;</font><font face="Consolas" size="2">gsv | ? {$_.status -eq &#8220;Stopped&#8221;}&#8221;</font> they will completely freak out. On the other hand, they may use it but not understand what is going on and just save it as another tool in their tool bag, without understanding that they can filter just as easily on processes or on Virtual Machines.</font></p>
<p>&nbsp;</p>
<p><font face="Arial" size="3">There is one thing that I believe has not been sold quite as much as necessary is Tab-Completion. Take the example below copied from <a href="http://msexchangeteam.com/archive/2007/07/02/445698.aspx" target="_blank">a blog entry</a>&nbsp;</font><font face="Arial" size="3">from the MS Exchange Team</font></p>
<p><em>This is the Exchange Management Shell (EMS) command Tom would enter to generate the cert request to be provided to the 3<sup>rd</sup> party CA in order to generate the actual certificate: </em><br />
<blockquote>
<p><strong><em>New-Exchangecertificate -domainname mail.contoso.com, contoso.com, contoso.local, autodiscover.contoso.com, server01.contoso.local, server01 -Friendlyname contosoinc -generaterequest:$true -keysize 1024 -path c:\certrequest.req -privatekeyexportable:$true –subjectname &#8220;c=US o=contoso inc, CN=server01.contoso.com&#8221;</em></strong></p>
</blockquote>
<p><em>We have found that the &#8216;–subjectname&#8217; option is the most confusing. The help contents in EMS are vague as well. The best description is found in the TLS whitepaper mentioned at the beginning of this post so we&#8217;re not going to reproduce it here.</em>
<p>&nbsp;</p>
<p><font face="Arial" size="3">As an admin I would look at this and say something like, &#8220;Crap, who created this huge long command line entry. Editing this is going to suck.&#8221; What people don&#8217;t get is that they have Tab Completion available, not just for the Cmdlets but for parameters as well. This </font><font face="Arial" size="3">just doesn&#8217;t get conveyed when we are posting examples. Now if you throw in </font><a href="http://thepowershellguy.com/blogs/posh/pages/powertab.aspx" target="_blank"><font face="Arial" size="3">PowerTab</font></a><font face="Arial" size="3"> or Intellisense from </font><a href="http://www.idera.com/Products/PowerShell" target="_blank"><font face="Arial" size="3">PowerShell Plus</font></a><font face="Arial" size="3">, its just gravy.</font></p>
<p><font face="Arial" size="3">And so, I would like to pose the question to you, how do you as an engineer or an admin get your teammates to start using PowerShell. What walls have you come up against and what can we as a community to do to help break down these walls. </font></p>
<p><font face="Arial" size="3">One thing I have been doing lately is using PowerShell in the build guides and Ops guide that I write, to at least get people started with using it. What else can we do?</font></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=90&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/10/06/getting-admins-to-adopt-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Consolas in PowerShell Plus on a 64 bit machine</title>
		<link>http://getpowershell.wordpress.com/2008/09/26/using-consolas-in-powershell-plus-on-a-64-bit-machine/</link>
		<comments>http://getpowershell.wordpress.com/2008/09/26/using-consolas-in-powershell-plus-on-a-64-bit-machine/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 14:22:45 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[PowerShell Plus]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/09/26/using-consolas-in-powershell-plus-on-a-64-bit-machine/</guid>
		<description><![CDATA[I love the Consolas Font for code. I spent a while trying to get PowerShell Plus to use the font in the interactive console. I noticed that when I went to save my settings I got a Console Settings windows just like the console for CMD and PowerShell out of the box.
It kept going back [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=87&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I love the Consolas Font for code. I spent a while trying to get PowerShell Plus to use the font in the interactive console. I noticed that when I went to save my settings I got a Console Settings windows just like the console for CMD and PowerShell out of the box.</p>
<p>It kept going back to Lucida Console.&#160; I added consolas with the PS Plus Add font utility but that didn&#8217;t do the trick on my 64 bit machine.</p>
<p>I found <a target="_blank" href="http://www.hanselman.com/blog/UsingConsolasAsTheWindowsConsoleFont.aspx">this article</a> on Scott Hanselman&#8217;s Blog and it seemed to do the trick.</p>
<p>Add a REG_SZ with name 00 and value Consolas to HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont</p>
<p>Note that you need to reboot.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=87&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/09/26/using-consolas-in-powershell-plus-on-a-64-bit-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Plus 2.0 Ships!</title>
		<link>http://getpowershell.wordpress.com/2008/09/25/powershell-plus-20-ships/</link>
		<comments>http://getpowershell.wordpress.com/2008/09/25/powershell-plus-20-ships/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 22:46:03 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[PowerShell Plus]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/09/25/powershell-plus-20-ships/</guid>
		<description><![CDATA[The great folks over at Idera have released PowerShell Plus Professional 2.0. Once you use it, you&#8217;ll never go back to cmd.
Plus (no pun intended) they have support for C#, VB, and a great XML editor. 
Go and get a free 14 day trial now and use the 2 weeks to find a way to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=85&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="left">The great folks over at Idera have released PowerShell Plus Professional 2.0. Once you use it, you&#8217;ll never go back to cmd.</p>
<p align="left">Plus (no pun intended) they have support for C#, VB, and a great XML editor. </p>
<p align="left">Go and <a href="http://www.idera.com/Products/PowerShell/" target="_blank">get a free 14</a> day trial now and use the 2 weeks to find a way to convince your boss that it is worth so much more than the $79.00 price tag.</p>
<p align="left"><strong><u>Update:</u></strong> </p>
<p align="left">The $79 price tag goes up to $145 on October 1st.&nbsp; but you still have a week to sell it to your boss !</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=85&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/09/25/powershell-plus-20-ships/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>Roles and Features Part 2</title>
		<link>http://getpowershell.wordpress.com/2008/09/18/roles-and-features-part-2/</link>
		<comments>http://getpowershell.wordpress.com/2008/09/18/roles-and-features-part-2/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 14:18:19 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows 2008 Core]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/09/18/roles-and-features-part-2/</guid>
		<description><![CDATA[I have been playing with a tool called servermanagercmd which is a commandline tool which functions like ServerManager. It allows you to install different Roles, Features, and Role Services in Windows Server 2008. I mentioned in an earlier post that you can output it to an XML file and use Powershell to look at what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=82&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been playing with a tool called servermanagercmd which is a commandline tool which functions like ServerManager. It allows you to install different Roles, Features, and Role Services in Windows Server 2008. I mentioned in an earlier post that you can output it to an XML file and use Powershell to look at what is installed.</p>
<p>There is an -inputpath parameter that takes an answer.xml file. You would think that you could go to one server, do a servermanagercmd -query role.xml and then take that file to another server and do a servermananagercmd -inputpath role.xml and it would install all the roles and services that were on the original server. Yeah.. that would be nice, but no such luck. They are two different XML Schemas that apparently have nothing to do with one another.</p>
<p>&lt;rant&gt;</p>
<p>To further complicate the issue, servermangercmd is used in the full version of Windows 2008. But what if you wanted to install or remove roles in Windows 2008 Core. Forget servermanagercmd, its not there. Instead you have to use two different commands, ocsetup and oclist. OC standing for &#8220;Optional Component&#8221; ?</p>
<p><strong>oclist</strong> in Core is the same as servermanagercmd -query</p>
<p><strong>ocsetup</strong> is servermanagercmd -install</p>
<p>To screw things up even more, the aliases for the roles are not even the same between the two tools. Just an example, in the full version with servermanagercmd you add the feature called Failover-Clustering. In core, you use ocsetup to install FailoverCluster-Core.</p>
<p>Completely inconsistent, no intuitive, and unnecessarily complex.</p>
<p>&lt;/rant&gt;</p>
<p>Perhaps what would be cool is a PowerShell function that could at least convert the output of servermanagercmd -query query.xml and turn it into an xml file that could be used by servermanagercmd -input input.xml. Any PowerShell XML Ninjas up for the challenge ?</p>
<p>Andy</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/82/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/82/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=82&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/09/18/roles-and-features-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>Viewing Roles and Features with PowerShell</title>
		<link>http://getpowershell.wordpress.com/2008/09/08/viewing-roles-and-features-with-powershell/</link>
		<comments>http://getpowershell.wordpress.com/2008/09/08/viewing-roles-and-features-with-powershell/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 20:27:33 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[ServerManager]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/09/08/viewing-roles-and-features-with-powershell/</guid>
		<description><![CDATA[I am in the process of deploying a fairly large TS Server Farm with Windows Server 2008. You probably know that in 2008, you have roles and features that can be added to the Operating System. In fact, PowerShell shows up as a feature in 2008. 
All of these roles and features are managed through [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=81&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am in the process of deploying a fairly large TS Server Farm with Windows Server 2008. You probably know that in 2008, you have roles and features that can be added to the Operating System. In fact, PowerShell shows up as a feature in 2008. </p>
<p>All of these roles and features are managed through an MMC called ServerManager. It&#8217;s fairly intuitive to add or remove roles and features using this tool. There is also a command line version called servermanagercmd.</p>
<p>I just started playing with this and you can use servermanagercmd to install or remove roles, and you can also use it to query what is installed. The cool thing about the query feature is that it can dump it to an XML file. </p>
<p>So check this out</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> servermanagercmd -q rolesandfeatures.xml</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> $xml = [xml](gc rolesandfeatures.xml)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> $roles = $xml.get_documentelement()</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> $roles</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> $roles.role</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> $roles.role | ? {$_.Installed <span style="color:#cc6633;">-eq</span> <span style="color:#006080;">"true"</span>} | ft DisplayName</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>&nbsp; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> DisplayName</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> -----------</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> Terminal Services</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> Web Server (IIS)</pre>
</div>
</div>
<p>&nbsp;</p>
<p>Their is also input functionality built into the tool and I am sure that this is reversible. I&#8217;ll keep you posted on how that goes.</p>
<p>&nbsp;</p>
<p>Andy</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/81/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/81/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=81&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/09/08/viewing-roles-and-features-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>New-HyperVVm</title>
		<link>http://getpowershell.wordpress.com/2008/09/07/new-hypervvm/</link>
		<comments>http://getpowershell.wordpress.com/2008/09/07/new-hypervvm/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 02:55:15 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PoshCode.org]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/09/07/new-hypervvm/</guid>
		<description><![CDATA[I recently had the need to be able to create a VM on a few of our Hyper-V servers at work. I found a great article by The Virtual PC Guy on how to create a new VM. I took what he had and extended the functionality a bit. To manage Hyper-V, for now, we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=77&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently had the need to be able to create a VM on a few of our Hyper-V servers at work. I found <a href="http://blogs.msdn.com/virtual_pc_guy/archive/2008/05/28/scripting-vm-creation-with-hyper-v.aspx">a great article by The Virtual PC Guy on how to create a new VM.</a> I took what he had and extended the functionality a bit. To manage Hyper-V, for now, we are pretty much stuck with WMI. However, Virtual Machine Manager will help us out a bunch. In the meantime, we can start with WMI. I figured it never hurts to know what is going on under the hood anyway.</p>
<p>One key piece of functionality that was not included was the ability to override the default location for new VM&#8217;s when they are created. This is critical to us as we are using a SAN and have dedicated LUN&#8217;s for our clustered VM&#8217;s. So now that you have the background, here&#8217;s the code</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">function</span> New-HyperVVM {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>     <span style="color:#0000ff;">param</span>    (</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>             [string]$Hypervhost = <span style="color:#006080;">"localhost"</span>,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>             [string]$Vm = <span style="color:#006080;">"VM Courtesy of PowerShell"</span>,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>             [string]$location = <span style="color:#006080;">"C:\MyVirtualMachines\$vm"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>             )</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>     $wmiClassString = <span style="color:#006080;">"\\" + $Hypervhost + "</span>\root\virtualization:Msvm_VirtualSystemGlobalSettingData<span style="color:#006080;">"</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     $wmiclass = [WMIClass]$wmiClassString</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     $newVSGlobalSettingData = $wmiClass.CreateInstance()</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>     $newVSGlobalSettingData.psbase.Properties.Item("</span>ExternalDataRoot<span style="color:#006080;">").value = $location</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>     $newVSGlobalSettingData.psbase.Properties.Item("</span>ElementName<span style="color:#006080;">").value = $Vm</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>     $VSManagementService = gwmi MSVM_VirtualSystemManagementService -namespace "</span>root\virtualization" -ComputerName $Hypervhost</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>     $GlobalSettings  = $newVSGlobalSettingData.psbase.GetText(1)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>     $VSManagementService.DefineVirtualSystem($GlobalSettings, $ResourceSettings)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> }</pre>
</div>
</div>
<p>By the way, this is posted up at <a href="http://poshcode.org/571" target="_blank">PoshCode</a>. I highly recommend getting the code from their, and updating it !</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=77&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/09/07/new-hypervvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>Start Posting to http://poshcode.org – NOW !!!</title>
		<link>http://getpowershell.wordpress.com/2008/08/18/start-posting-to-httpposhcodeorg-now/</link>
		<comments>http://getpowershell.wordpress.com/2008/08/18/start-posting-to-httpposhcodeorg-now/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 04:08:11 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[PoshCode.org]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/08/18/start-posting-to-httpposhcodeorg-now/</guid>
		<description><![CDATA[Hal posted a comment a while back asking if I would consider putting some of the functions i had been blogging about up on http://www.poshcode.org. I had heard of it and even used some of the scripts up there but for whatever reason I hadn&#8217;t bothered to post anything. Hal finally convinced me to put [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=76&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://halr9000.com/contact-me">Hal</a> posted a comment a while back asking if I would consider putting some of the functions i had been blogging about up on <a href="http://www.poshcode.org">http://www.poshcode.org</a>. I had heard of it and even used some of the scripts up there but for whatever reason I hadn&#8217;t bothered to post anything. Hal finally convinced me to put some code up there. I have to say, its ridiculously easy.</p>
<p>My 0.02 is this should be the default shared online repository for Powershell scripts and functions. So I have one question for you.. Why are you still reading this and not posting your latest and greatest script up to PoshCode? </p>
<p>Go and do it.. now !</p>
<p>-Andy</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/76/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/76/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=76&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/08/18/start-posting-to-httpposhcodeorg-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>Get-GreatestSwimmerEver</title>
		<link>http://getpowershell.wordpress.com/2008/08/17/get-greatestswimmerever/</link>
		<comments>http://getpowershell.wordpress.com/2008/08/17/get-greatestswimmerever/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 23:25:13 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Michael Phelps]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Swimming]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/08/17/get-greatestswimmerever/</guid>
		<description><![CDATA[&#160;


   1: PS C:\&#62; Get-GreatestSwimmerEver
   2:&#160; 
   3:&#160; 
   4: NumberGoldMedalsIn2008    : 8
   5: NumberWorldRecordsIn2008  : 7
   6: LifetimeOlympicGoldMedals : 14
   7: FirstName               [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=73&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&nbsp;</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> PS C:\&gt; Get-GreatestSwimmerEver</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>&nbsp; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>&nbsp; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> NumberGoldMedalsIn2008    : 8</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> NumberWorldRecordsIn2008  : 7</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> LifetimeOlympicGoldMedals : 14</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> FirstName                 : Michael</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> LastName                  : Phelps</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> GreatestSwimmerEver       : True</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>&nbsp; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>&nbsp; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>&nbsp; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span> PS C:\&gt;</pre>
</div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/73/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/73/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=73&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/08/17/get-greatestswimmerever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>A thank you note from an intern</title>
		<link>http://getpowershell.wordpress.com/2008/08/15/a-thank-you-note-from-an-intern/</link>
		<comments>http://getpowershell.wordpress.com/2008/08/15/a-thank-you-note-from-an-intern/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 20:38:15 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/08/15/a-thank-you-note-from-an-intern/</guid>
		<description><![CDATA[We had several high school students working for us this summer as interns. It was a great experience. I just had to share a section of a thank you note I received from one of them the day they completed their internship.
&#34;I thought it would never be possible for me like coding again, after a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=72&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We had several high school students working for us this summer as interns. It was a great experience. I just had to share a section of a thank you note I received from one of them the day they completed their internship.</p>
<p>&quot;I thought it would never be possible for me like coding again, after a <u>year</u> of programming class. But after a week of PowerShell, I liked coding again .. but only in PowerShell !!&quot;</p>
<p>I love the fact that Powershell helped me get a high school student interested in scripting, and that it is quite literally <a href="http://blogs.msdn.com/powershell/" target="_blank">&quot;Changing the world one line at a time.&quot;</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=72&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/08/15/a-thank-you-note-from-an-intern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Function Set-NetInterfaceName</title>
		<link>http://getpowershell.wordpress.com/2008/08/13/powershell-function-set-netinterfacename/</link>
		<comments>http://getpowershell.wordpress.com/2008/08/13/powershell-function-set-netinterfacename/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 14:14:24 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Rename NIC]]></category>
		<category><![CDATA[ipconfig]]></category>

		<guid isPermaLink="false">http://getpowershell.wordpress.com/2008/08/13/powershell-function-set-netinterfacename/</guid>
		<description><![CDATA[Now that you are able to set an IP address given a name of a network interface, you may want to change that name. 
Here&#8217;s a quick little function to do that.


   1: function Set-InterfaceName {
   2:         param(  
   3: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=71&subd=getpowershell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Now that you are <a href="http://getpowershell.wordpress.com/2008/08/13/powershell-function-set-ipaddress/" target="_blank">able to set an IP address given a name of a network interface</a>, you may want to change that name. </p>
<p>Here&#8217;s a quick little function to do that.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">function</span> Set-InterfaceName {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>         <span style="color:#0000ff;">param</span>(  </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>                 [string]$oldName,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>                 [string]$newName</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>          )</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>         </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>         $NicInterfaceName = gwmi Win32_NetworkAdapter | where {$_.netconnectionid <span style="color:#cc6633;">-eq</span> $oldName}</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>         $NicInterfaceName.netconnectionid = $newName</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>         $NicInterfaceName.put()</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>         </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> }</pre>
</div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/getpowershell.wordpress.com/71/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/getpowershell.wordpress.com/71/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/getpowershell.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/getpowershell.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/getpowershell.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/getpowershell.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/getpowershell.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/getpowershell.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/getpowershell.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/getpowershell.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/getpowershell.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/getpowershell.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=getpowershell.wordpress.com&blog=1380567&post=71&subd=getpowershell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://getpowershell.wordpress.com/2008/08/13/powershell-function-set-netinterfacename/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9df178858bacbe5b0cdaa541b590c283?s=96&amp;d=identicon" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
