<?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: Backing up Event Logs on remote machines with PowerShell</title>
	<atom:link href="http://www.aaronlerch.com/blog/2006/07/22/backing-up-event-logs-on-remote-machines-with-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aaronlerch.com/blog/2006/07/22/backing-up-event-logs-on-remote-machines-with-powershell/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Apr 2010 15:19:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: aaron</title>
		<link>http://www.aaronlerch.com/blog/2006/07/22/backing-up-event-logs-on-remote-machines-with-powershell/comment-page-1/#comment-18</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Wed, 22 Aug 2007 23:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2006/07/22/backing-up-event-logs-on-remote-machines-with-powershell/#comment-18</guid>
		<description>Rock on! Thanks!&lt;BR/&gt;&lt;BR/&gt;BTW, I used your blog as a resource a lot for the little &quot;syntax-y&quot; things I was too lazy to look in the docs for. :) So double-thanks!</description>
		<content:encoded><![CDATA[<p>Rock on! Thanks!</p>
<p>BTW, I used your blog as a resource a lot for the little &#8220;syntax-y&#8221; things I was too lazy to look in the docs for. <img src='http://www.aaronlerch.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So double-thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DontBotherMeWithSpam</title>
		<link>http://www.aaronlerch.com/blog/2006/07/22/backing-up-event-logs-on-remote-machines-with-powershell/comment-page-1/#comment-19</link>
		<dc:creator>DontBotherMeWithSpam</dc:creator>
		<pubDate>Wed, 22 Aug 2007 23:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2006/07/22/backing-up-event-logs-on-remote-machines-with-powershell/#comment-19</guid>
		<description>There is a better way (IMHO) to call Win32 API methods on Lee Holme&#039;s blog page at http://www.leeholmes.com/blog/GetTheOwnerOfAProcessInPowerShellPInvokeAndRefOutParameters.aspx&lt;BR/&gt;&lt;BR/&gt;If you look at how &quot;Invoke-Win32&quot; function is used in his script, you will be able to modify your script a bit cleaner since the one you have posted is, yet, to be cleaned ;)&lt;BR/&gt;&lt;BR/&gt;&gt;I&#039;m having trouble getting $items[0] to expand within a string&lt;BR/&gt;You can do the following for variable expansion inside the string.&lt;BR/&gt;&lt;BR/&gt;Instead of &lt;BR/&gt;&gt;$serverName = $items[0].trim()&lt;BR/&gt;&gt; ...&lt;BR/&gt;&gt; &quot;$serverName&quot;,...&lt;BR/&gt;&lt;BR/&gt;You can do&lt;BR/&gt;... snip ...::Backup(&quot;$($item[0].trim())&quot;, ...&lt;BR/&gt;&lt;BR/&gt;There was a NG(Newsgroup) post on microsoft.public.windows.powershell&lt;BR/&gt;http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windows.powershell&amp;mid=99a62264-cf9f-491b-97cf-5704316c101b&lt;BR/&gt;about exact problem you were having as well as JS(Jeffrey Snover, the Architect of PowerShell and Aspen) on PowerShell team blog site, http://blogs.msdn.com/powershell/archive/2006/07/15/Variable_expansion_in_strings_and_herestrings.aspx&lt;BR/&gt;&lt;BR/&gt;Have fun.~</description>
		<content:encoded><![CDATA[<p>There is a better way (IMHO) to call Win32 API methods on Lee Holme&#8217;s blog page at <a href="http://www.leeholmes.com/blog/GetTheOwnerOfAProcessInPowerShellPInvokeAndRefOutParameters.aspx" rel="nofollow">http://www.leeholmes.com/blog/GetTheOwnerOfAProcessInPowerShellPInvokeAndRefOutParameters.aspx</a></p>
<p>If you look at how &#8220;Invoke-Win32&#8243; function is used in his script, you will be able to modify your script a bit cleaner since the one you have posted is, yet, to be cleaned <img src='http://www.aaronlerch.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>>I&#8217;m having trouble getting $items[0] to expand within a string<br />You can do the following for variable expansion inside the string.</p>
<p>Instead of <br />>$serverName = $items[0].trim()<br />> &#8230;<br />> &#8220;$serverName&#8221;,&#8230;</p>
<p>You can do<br />&#8230; snip &#8230;::Backup(&#8220;$($item[0].trim())&#8221;, &#8230;</p>
<p>There was a NG(Newsgroup) post on microsoft.public.windows.powershell<br /><a href="http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windows.powershell&#038;mid=99a62264-cf9f-491b-97cf-5704316c101b" rel="nofollow">http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windows.powershell&#038;mid=99a62264-cf9f-491b-97cf-5704316c101b</a><br />about exact problem you were having as well as JS(Jeffrey Snover, the Architect of PowerShell and Aspen) on PowerShell team blog site, <a href="http://blogs.msdn.com/powershell/archive/2006/07/15/Variable_expansion_in_strings_and_herestrings.aspx" rel="nofollow">http://blogs.msdn.com/powershell/archive/2006/07/15/Variable_expansion_in_strings_and_herestrings.aspx</a></p>
<p>Have fun.~</p>
]]></content:encoded>
	</item>
</channel>
</rss>
