<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Friendly WMI Dates</title>
	<atom:link href="http://jdhitsolutions.com/blog/2009/08/friendly-wmi-dates/feed/" rel="self" type="application/rss+xml" />
	<link>http://jdhitsolutions.com/blog/2009/08/friendly-wmi-dates/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=friendly-wmi-dates</link>
	<description>Advice, solutions, tips and more for the lonely Windows administrator with too much to do and not enough time.</description>
	<lastBuildDate>Sat, 04 Sep 2010 02:52:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jeffery Hicks</title>
		<link>http://jdhitsolutions.com/blog/2009/08/friendly-wmi-dates/#comment-124</link>
		<dc:creator>Jeffery Hicks</dc:creator>
		<pubDate>Tue, 25 Aug 2009 11:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://jdhitsolutions.com/blog/2009/08/05/friendly-wmi-dates/#comment-124</guid>
		<description>In the Select part of your pipelined expression, a hash table like I did in the post and convert the TimeGenerated value.

.... &#124; Select Logfile, Eventcode,RecordNumber,@{name=&quot;TimeGenerated&quot;;Expression={$_.ConvertToDateTime($_.TimeGenerated}},Type &#124; Export-Csv ...</description>
		<content:encoded><![CDATA[<p>In the Select part of your pipelined expression, a hash table like I did in the post and convert the TimeGenerated value.</p>
<p>&#8230;. | Select Logfile, Eventcode,RecordNumber,@{name=&#8221;TimeGenerated&#8221;;Expression={$_.ConvertToDateTime($_.TimeGenerated}},Type | Export-Csv &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dboftlp</title>
		<link>http://jdhitsolutions.com/blog/2009/08/friendly-wmi-dates/#comment-123</link>
		<dc:creator>dboftlp</dc:creator>
		<pubDate>Mon, 24 Aug 2009 20:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://jdhitsolutions.com/blog/2009/08/05/friendly-wmi-dates/#comment-123</guid>
		<description>Hey Jeff,
     I&#039;m working with event logs and have an export-csv Q?  What I have so far is remote collection of system and application logs for the last week via 
#code
TimeGenerated &gt;= &#039;$((get-date).AddDays(-7).toShortDateString())&#039;
#code
I&#039;ve selected LogFile, EventCode, RecordNumber, TimeGenerated, Type, and several others before I pipe it to export-csv.  When it exports, the TimeGenerated field is in that weird format:
20090820195735.000000-240
and I would like it more readable.  I know it converts the info for the comparison of those logs, but how do I keep that format for the export?

TIA
dboftlp</description>
		<content:encoded><![CDATA[<p>Hey Jeff,<br />
     I&#8217;m working with event logs and have an export-csv Q?  What I have so far is remote collection of system and application logs for the last week via<br />
#code<br />
TimeGenerated &gt;= &#8216;$((get-date).AddDays(-7).toShortDateString())&#8217;<br />
#code<br />
I&#8217;ve selected LogFile, EventCode, RecordNumber, TimeGenerated, Type, and several others before I pipe it to export-csv.  When it exports, the TimeGenerated field is in that weird format:<br />
20090820195735.000000-240<br />
and I would like it more readable.  I know it converts the info for the comparison of those logs, but how do I keep that format for the export?</p>
<p>TIA<br />
dboftlp</p>
]]></content:encoded>
	</item>
</channel>
</rss>
