<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech.It.2.Me-&#62;{By.Anton.Perez} &#187; PowerShell</title>
	<atom:link href="http://antonperez.com/category/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://antonperez.com</link>
	<description>Technical satisfaction guaranteed...</description>
	<lastBuildDate>Mon, 16 Aug 2010 20:46:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get file version remotely using PowerShell</title>
		<link>http://antonperez.com/2010/07/22/get-file-version-remotely-using-powershell/</link>
		<comments>http://antonperez.com/2010/07/22/get-file-version-remotely-using-powershell/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 23:12:18 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://antonperez.com/2010/07/22/get-file-version-remotely-using-powershell/</guid>
		<description><![CDATA[PS C:\&#62; gc servers.txt &#124; foreach { [system.diagnostics.fileversioninfo]::getversioninfo($_) }
]]></description>
			<content:encoded><![CDATA[<p>PS C:\&gt; gc servers.txt | foreach { [system.diagnostics.fileversioninfo]::getversioninfo($_) }</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2010/07/22/get-file-version-remotely-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to: Uninstall PowerShell</title>
		<link>http://antonperez.com/2008/06/30/how-to-uninstall-powershell/</link>
		<comments>http://antonperez.com/2008/06/30/how-to-uninstall-powershell/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 19:43:53 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://antonperez.com/2008/06/30/how-to-uninstall-powershell/</guid>
		<description><![CDATA[I&#8217;m posting this for archival purposes, as I had to figure it out myself&#8230;
Windows PowerShell doesn&#8217;t appear in Add/Remove Programs nor is there an uninstall shortcut in the Programs menu.&#160; So the way to do it uninstall is to check the Show updates option in Add/Remove Programs.
Peace!&#160; \m/
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m posting this for archival purposes, as I had to figure it out myself&#8230;</p>
<p><a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx">Windows PowerShell</a> doesn&#8217;t appear in <strong>Add/Remove Programs </strong>nor is there an uninstall shortcut in the <strong>Programs </strong>menu.&nbsp; So the way to do it uninstall is to check the <strong>Show updates </strong>option in <strong>Add/Remove Programs</strong>.</p>
<p>Peace!&nbsp; \m/</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2008/06/30/how-to-uninstall-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell Cheat Sheet</title>
		<link>http://antonperez.com/2007/07/27/powershell-cheat-sheet/</link>
		<comments>http://antonperez.com/2007/07/27/powershell-cheat-sheet/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 05:03:51 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Resource]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=190</guid>
		<description><![CDATA[A handy cheat sheet I found on one of the MSDN Blogs.
]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://blogs.msdn.com/powershell/attachment/1525634.ashx">handy cheat sheet</a> I found on one of the <a href="http://blogs.msdn.com/">MSDN Blogs</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/07/27/powershell-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Windows PowerShell course book</title>
		<link>http://antonperez.com/2007/05/15/free-windows-powershell-course-book/</link>
		<comments>http://antonperez.com/2007/05/15/free-windows-powershell-course-book/#comments</comments>
		<pubDate>Tue, 15 May 2007 19:03:35 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=144</guid>
		<description><![CDATA[The Schweizer IT Professional and TechNet Blog is sharing a free Windows PowerShell course book that they&#8217;ve translated to English.&#160; The book seems to be pretty good.
From their blog entry:
&#160;Due to its great popularity, we have decided to translate the Windows PowerShell course book to English. So if your mother tongue is not German, maybe [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="Schweizer IT Professional and TechNet Blog" href="https://blogs.technet.com/chitpro-de/default.aspx" target="_blank">Schweizer IT Professional and TechNet Blog</a> is sharing a free Windows PowerShell course book that they&#8217;ve translated to English.&nbsp; The book seems to be pretty good.</p>
<p>From their blog entry:</p>
<blockquote><p>&nbsp;Due to its great popularity, we have decided to translate the Windows PowerShell course book to English. So if your mother tongue is not German, maybe you are interested in the English version instead. The book gives you a short introduction with many exercises about the interactive part of Windows PowerShell as well as some hints how to use other objects like WMI, .NET or COM objects like Excel or Internet Explorer.</p>
<p>The <a href="https://profile.microsoft.com/RegSysProfileCenter/wizard.aspx?wizid=adf74b41-ae6a-42f4-8445-db39ecabb8b3&amp;lcid=1033&amp;fu=http://download.microsoft.com/download/a/9/4/a94270c7-ed16-4c72-8280-658c66315719/Windows%20Powershell%20-%20EN.zip">book is available for free</a> and you can share it with all your colleagues or friends if you leave it as it is. The books can be used with or without the <a href="http://download.microsoft.com/download/a/9/4/a94270c7-ed16-4c72-8280-658c66315719/PowerShell-Demofiles.zip">demo files</a> available at this blog as well.</p>
</blockquote>
<p>Enjoy!&nbsp; =0)</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/05/15/free-windows-powershell-course-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing specific event logs on a remote server</title>
		<link>http://antonperez.com/2007/05/11/accessing-specific-event-logs-on-a-remote-server/</link>
		<comments>http://antonperez.com/2007/05/11/accessing-specific-event-logs-on-a-remote-server/#comments</comments>
		<pubDate>Fri, 11 May 2007 16:05:48 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=142</guid>
		<description><![CDATA[An old friend and classmate of mine, Zahid Faisal, wanted to know how to access/read event logs on a remote server using Windows PowerShell. I thought it was an interesting challenge, so after some research and playing around I found that you can make use of the WMI objects to do this.
Follow along to try [...]]]></description>
			<content:encoded><![CDATA[<p>An old friend and classmate of mine, <strong>Zahid Faisal</strong>, wanted to know how to access/read event logs on a remote server using <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Windows PowerShell</a>. I thought it was an interesting challenge, so after some research and playing around I found that you can make use of the <a href="http://www.microsoft.com/whdc/system/pnppwr/wmi/default.mspx" target="_blank">WMI</a> objects to do this.
<p>Follow along to try it out:
<p>1. Open PowerShell and type in the following:
<p><font face="Courier New" color="#0000ff" size="2">PS C:\&gt; $logs = [System.Diagnostics.EventLog]::GetEventLogs(&#8217;servername&#8217;) </font>
<p>This will create a new <strong>EventLog</strong> object that uses the <strong>GetEventLogs</strong> method, which by the way, accepts a machine name as an argument. This is exactly what we&#8217;re looking for.
<p>2. If the command did not return any errors, continue with the following:
<p><font face="Courier New" color="#0000ff" size="2">PS C:\&gt; $logs[0]</font>
<p>You should get something like this:
<p><font face="Courier New" color="#0000ff" size="2"><u>Max(K)</u> <u>Retain</u> <u>OverflowAction</u>&nbsp;&nbsp;&nbsp;&nbsp; <u>Entries</u> <u>Name</u> </font>
<p><font face="Courier New" color="#0000ff" size="2">10,240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 OverwriteAsNeeded&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;838 Application</font>
<p>The <strong>[0]</strong> after <strong>$logs</strong> is simply an array of the different types of event logs, which in this case, <strong>[0]</strong> equals the <strong>Application</strong> logs.
<p>3. Next, the bread-and-butter &#8211; filtering:
<p><font face="Courier New" color="#0000ff" size="2">PS C:\&gt; $logs[0].entries | where ` </font>
<p><font face="Courier New" color="#0000ff" size="2">&gt;&gt; {($_.Source -eq &#8220;Orion&#8221;) -AND ($_.TimeWritten -ge $recent)} </font>
<p><font face="Courier New" color="#0000ff" size="2">&gt;&gt;</font>
<p>By using the <strong>where</strong> object, we&#8217;re able to filter what we&#8217;re specifically looking for. In Zahid&#8217;s case, he wanted to grab the <strong>most recent logs</strong> that are only related to &#8220;<strong>Orion</strong>.&#8221;
<p>Take note that this will only work if you&#8217;re an administrator on the remote server.
<p>Hope this helps. =0) </p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/05/11/accessing-specific-event-logs-on-a-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
