<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Vista Forums - PowerShell</title>
		<link>http://www.vistax64.com/</link>
		<description>The new Microsoft shell, formerly known as Monad</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:21:21 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>15</ttl>
		<image>
			<url>http://www.vistax64.com/images/styles/vista/misc/rss.jpg</url>
			<title>Vista Forums - PowerShell</title>
			<link>http://www.vistax64.com/</link>
		</image>
		<item>
			<title>remote executtion of a batch file</title>
			<link>http://www.vistax64.com/powershell/261094-remote-executtion-batch-file.html</link>
			<pubDate>Fri, 20 Nov 2009 16:25:41 GMT</pubDate>
			<description><![CDATA[Hello, 
  
Im on server 1 trying to execute a .bat on server 2.  All the .bat does is create a folder called "test".  I've tried a couple different...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
 <br />
Im on server 1 trying to execute a .bat on server 2.  All the .bat does is create a folder called &quot;test&quot;.  I've tried a couple different ways and neither seems to work:<br />
 <br />
1) Invoke-Command -computer $server -scriptBlock {&quot;C:\sqltest\test.bat&quot;}<br />
 <br />
I have powershell V2, and part of the reason to going to PS2 vs PS1 was for this command, and when i try the above i also get the following error:<br />
PS P:\&gt; Get-Help Invoke-Command<br />
Get-Help : Cannot find Help for topic &quot;Invoke-Command&quot;.<br />
At line:1 char:9<br />
+ Get-Help &lt;&lt;&lt;&lt;  Invoke-Command<br />
 <br />
2) $job = &quot;cmd.exe /c cscript C:\sqltest\test.bat&quot;,$null,$null,1<br />
$result = (Get-WmiObject -List -Computer $server | where{$_.Name -eq &quot;Win32_Process'}).Create($job)<br />
<br />
 <br />
any ideas on what may be going wrong?<br />
 <br />
thank you!<br />
makani</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>makaman</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/261094-remote-executtion-batch-file.html</guid>
		</item>
		<item>
			<title>How to clear the Manager attribute for a user</title>
			<link>http://www.vistax64.com/powershell/260989-how-clear-manager-attribute-user.html</link>
			<pubDate>Wed, 18 Nov 2009 20:43:02 GMT</pubDate>
			<description>supposedly I can use the set-qaduser cmdlt to clear the manager attribute and 
not just change it.  the following command runs without error but does...</description>
			<content:encoded><![CDATA[<div>supposedly I can use the set-qaduser cmdlt to clear the manager attribute and<br />
not just change it.  the following command runs without error but does not<br />
clear the attribute:<br />
set-qaduser a054100 -manager $Null<br />
<br />
Is there anyway to clear this attribute?<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>TPGBrennan</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260989-how-clear-manager-attribute-user.html</guid>
		</item>
		<item>
			<title>Change AD User Password</title>
			<link>http://www.vistax64.com/powershell/260986-change-ad-user-password.html</link>
			<pubDate>Wed, 18 Nov 2009 20:35:01 GMT</pubDate>
			<description><![CDATA[I am not AD admin. Give a user's current password, how to change his/her 
password in powershell? 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>I am not AD admin. Give a user's current password, how to change his/her<br />
password in powershell?<br />
<br />
Thanks<br />
<br />
<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Ben</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260986-change-ad-user-password.html</guid>
		</item>
		<item>
			<title>Powershell as a Java Scripting Language</title>
			<link>http://www.vistax64.com/powershell/260953-powershell-java-scripting-language.html</link>
			<pubDate>Wed, 18 Nov 2009 17:02:01 GMT</pubDate>
			<description>Just to add some details - Mono-based Powershell is called Pash and you can 
find some details here: 
http://pash.sourceforge.net/ 
 
As far as I...</description>
			<content:encoded><![CDATA[<div>Just to add some details - Mono-based Powershell is called Pash and you can<br />
find some details here:<br />
<a href="http://pash.sourceforge.net/" target="_blank">http://pash.sourceforge.net/</a><br />
<br />
As far as I know, it was not completely abandoned, even thought its not very<br />
active this year :(<br />
<br />
Martin<br />
<br />
&quot;Marco Shaw [MVP]&quot; &lt;marco.shaw@newsgroup_SPAMgmail.com&gt; wrote in message<br />
news:OzOnTSIaKHA.5300@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; There was a port for Mono that started up, but quickly stalled.<br />
&gt;<br />
&gt; I'm going to say 99.9% &quot;NO&quot; on someone working on jPowerShell...  Without<br />
&gt; the underlying .NET, I can't see the &quot;fun&quot; in porting...<br />
&gt;<br />
&gt; Marco<br />
&gt;<br />
&gt; &quot;Gary Furash&quot; &lt;GaryFurash@newsgroup&gt; wrote in message<br />
&gt; news:2F6A1C8D-C953-44FD-A56C-87782820E15F@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="green"><br />
&gt;&gt; Does anyone know if there is an open source project to port PowerShell as<br />
&gt;&gt; a<br />
&gt;&gt; Java scripting language like Jython, Jruby, and Jperl?</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>&gt;</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Gary Furash</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260953-powershell-java-scripting-language.html</guid>
		</item>
		<item>
			<title>Background Job Hung</title>
			<link>http://www.vistax64.com/powershell/260952-background-job-hung.html</link>
			<pubDate>Wed, 18 Nov 2009 16:43:02 GMT</pubDate>
			<description><![CDATA[I want to use background jobs to manipulate SQL data. I have a PS script 
JobName.ps1 as the following: 
 
param([string]$instance,...]]></description>
			<content:encoded><![CDATA[<div>I want to use background jobs to manipulate SQL data. I have a PS script<br />
JobName.ps1 as the following:<br />
<br />
param([string]$instance, [string]$database)<br />
<br />
$destinationConnection = New-Object System.Data.SqlClient.SqlConnection<br />
$destinationConnection.ConnectionString =<br />
&quot;Server=$instance;Database=$database;Integrated Security=True&quot;<br />
$destinationConnection.Open()<br />
<br />
$sqlCmd = New-Object System.Data.SqlClient.SqlCommand<br />
$sqlCmd.Connection = $destinationConnection<br />
$sqlCmd.CommandText = &quot;TRUNCATE TABLE MyTable ;&quot;<br />
$sqlCmd.ExecuteNonQuery()<br />
<br />
$destinationConnection.Close()<br />
<br />
exit<br />
<br />
<br />
In the main script, I use Start-Job command to call JobName.ps1.<br />
<br />
$inst = &quot;MySQLServer&quot;<br />
$db = &quot;MyDB&quot;<br />
<br />
Invoke-Expression &quot;Start-Job -ScriptBlock {powershell.exe -File<br />
C:\Scripts\JobName.ps1 $inst $db}&quot;<br />
<br />
This background job never completes (always in Running state) even though<br />
every statement inside JobName.ps1 is done. Oddly, if there are only same<br />
simple statements in JobName.ps1, it will complete.<br />
<br />
What is wrong? Thanks<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Ben</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260952-background-job-hung.html</guid>
		</item>
		<item>
			<title>Re: Mount Exchange 2003 databases using Powershell</title>
			<link>http://www.vistax64.com/powershell/260880-re-mount-exchange-2003-databases-using-powershell.html</link>
			<pubDate>Wed, 18 Nov 2009 13:31:39 GMT</pubDate>
			<description><![CDATA[> However I cannot mount them by issuing the Mount-Database cmdlet. Anyone 
---Quote--- 
> got 
> the equivalent code to achieve this result? I am...]]></description>
			<content:encoded><![CDATA[<div>&gt; However I cannot mount them by issuing the Mount-Database cmdlet. Anyone<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; got<br />
&gt; the equivalent code to achieve this result? I am not a coding expert by<br />
&gt; any<br />
&gt; means so if someone has the code I need could they please post it?</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div>Mount-Database may not support Exchange 2003.<br />
<br />
If you need to do this using PowerShell, you'll need to look at the WMI<br />
methods or some other way to do this.<br />
<br />
For example, I wonder if this would help somewhat:<br />
<a href="http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/AdminTips/Exchange/MountDismountDeleteaMailboxStorefromtheCommandLine.html" target="_blank">http://www.windowsnetworking.com/kba...mmandLine.html</a><br />
<br />
Marco<br />
<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator><![CDATA[Marco Shaw [MVP]]]></dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260880-re-mount-exchange-2003-databases-using-powershell.html</guid>
		</item>
		<item>
			<title>Set security DACL issues</title>
			<link>http://www.vistax64.com/powershell/260879-set-security-dacl-issues.html</link>
			<pubDate>Wed, 18 Nov 2009 08:54:01 GMT</pubDate>
			<description><![CDATA[Hi Jason, 
 
Apologies, it should have been $SD.Properties["DACL"]. However, if 
you're creating a security descriptor you need the ManagementObject...]]></description>
			<content:encoded><![CDATA[<div><br />
Hi Jason,<br />
<br />
Apologies, it should have been $SD.Properties[&quot;DACL&quot;]. However, if<br />
you're creating a security descriptor you need the ManagementObject not<br />
the ManagementClass.<br />
<br />
Extending that with a bit of an example we end up with:<br />
<br />
# A shortcut to create the management class<br />
$SDClass = [WMIClass]&quot;Win32_SecurityDescriptor&quot;<br />
# Create a new instance of the management object from the class.<br />
$SD = $SDClass.CreateInstance()<br />
<br />
# Create an Access Control Entry - shorter version of creation<br />
$ACE = ([WMIClass]&quot;Win32_ACE&quot;).CreateInstance()<br />
# Create a Trustee<br />
$Trustee = ([WMIClass]&quot;Win32_Trustee&quot;).CreateInstance()<br />
# Assign a username and password. Setting a SID is an alternative here.<br />
$Trustee.Name = &quot;someone&quot;<br />
$Trustee.Domain = &quot;domain&quot;<br />
<br />
# Assign the trustee to the ACE<br />
$ACE.Trustee = $Trustee<br />
<br />
# These need values according to the rights you wish to grant<br />
# An Allow ACE:<br />
$ACE.AceType = [Security.AccessControl.AceType]::AccessAllowed<br />
# Full Control:<br />
$ACE.AccessMask = [Security.AccessControl.FileSystemRights]::FullControl<br />
<br />
# Add the new ACE to the (currently blank) DACL<br />
$SD.DACL = $ACE<br />
<br />
# etc...<br />
<br />
You're trying to create a Security Descriptor for use with the Create<br />
method under Win32_Share?<br />
<br />
AccessMask values are here:<br />
<br />
<a href="http://msdn.microsoft.com/en-us/library/system.security.accesscontrol.filesystemrights.aspx" target="_blank">http://msdn.microsoft.com/en-us/libr...temrights.aspx</a><br />
<br />
AceTypes here:<br />
<br />
<a href="http://msdn.microsoft.com/en-us/library/system.security.accesscontrol.acetype.aspx" target="_blank">http://msdn.microsoft.com/en-us/libr...l.acetype.aspx</a><br />
<br />
AceFlags aren't really relevant for shares, they tend to be nothing.<br />
<br />
HTH<br />
<br />
Chris<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Jason Ferguson</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260879-set-security-dacl-issues.html</guid>
		</item>
		<item>
			<title>Slow?</title>
			<link>http://www.vistax64.com/powershell/260878-slow.html</link>
			<pubDate>Wed, 18 Nov 2009 07:13:15 GMT</pubDate>
			<description>Having a quick peek at your code, I would write it little bit different and 
use RegEx replace instead:...</description>
			<content:encoded><![CDATA[<div>Having a quick peek at your code, I would write it little bit different and<br />
use RegEx replace instead:<br />
<a href="http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.replace.aspx" target="_blank">http://msdn.microsoft.com/en-us/libr...x.replace.aspx</a><br />
<br />
Martin<br />
<br />
&quot;Al Fansome&quot; &lt;al_fansome@newsgroup&gt; wrote in message<br />
news:INKdnSG6dLcWA57WnZ2dnUVZ_j6dnZ2d@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; I have a set of about 230 files that I want to modify. I use the following<br />
&gt; script:<br />
&gt;<br />
&gt; rm tmp.tmp<br />
&gt;<br />
&gt; foreach ($file in dir *exitlc.cfg)<br />
&gt; {<br />
&gt;         echo $file.name<br />
&gt;         mv $file tmp.tmp<br />
&gt;<br />
&gt;         foreach ($line in cat tmp.tmp)<br />
&gt;         {<br />
&gt;                 if ($line -match &quot;^#.+version&quot;)<br />
&gt;                 {<br />
&gt;                         $line = $line -replace &quot;version[ \t]+[^ \t]+&quot;,<br />
&gt; &quot;version 1.03&quot;<br />
&gt;                 }<br />
&gt;<br />
&gt;                 if ($line -match &quot;(.+DS60_[^ \t]+[ \t]+[^ \t]+[ \t]+)&quot;)<br />
&gt;                 {<br />
&gt;                         $line = $matches[1] + &quot;25    25&quot;<br />
&gt;                 }<br />
&gt;<br />
&gt;                 $line | add-content -encoding ascii $file<br />
&gt;         }<br />
&gt;     rm tmp.tmp<br />
&gt; }<br />
&gt;<br />
&gt; The script works just fine, but it takes between 1.5 and 2.0 seconds to<br />
&gt; execute for each file. Each of these files are simple ASCII text, of about<br />
&gt; 300 lines. At first blush this seems like a very long time to process such<br />
&gt; small files. I'd appreciate comments as to whether I could do better, and<br />
&gt; as to why this script takes so long.<br />
&gt;<br />
&gt; This is using PS 2.0. My OS is Windows XP SP3. CPU is 2.6 ghz, and RAM is<br />
&gt; 1 gigabyte. Disk is a Promise Raid 1 array of two 120 gb drives.<br />
&gt;<br />
&gt; Thanks,<br />
&gt;<br />
&gt; Al</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Al Fansome</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260878-slow.html</guid>
		</item>
		<item>
			<title>Re: How do I get absolute path of a file?</title>
			<link>http://www.vistax64.com/powershell/260877-re-how-do-i-get-absolute-path-file.html</link>
			<pubDate>Wed, 18 Nov 2009 06:12:28 GMT</pubDate>
			<description><![CDATA[Except for a typo where you have $docss I don't see why that would not work. 
 
I've recoded as 
 
copy-item $doc c:\ -whatif 
 
to see exactly how...]]></description>
			<content:encoded><![CDATA[<div>Except for a typo where you have $docss I don't see why that would not work.<br />
<br />
I've recoded as<br />
<br />
copy-item $doc c:\ -whatif<br />
<br />
to see exactly how the paths are defined for the copies and I see what you are<br />
saying.  It seems like a bug to me.<br />
<br />
Even recoding as<br />
<br />
$docs | % { copy-item $_ c:\ -whatif }<br />
<br />
does not help.  I don't see what default property would cause it to lose a node<br />
in the path during the copy from the items in subfolders.<br />
<br />
- Larry<br />
<br />
<br />
Megaton wrote:<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; I would like to copy a collection of .doc files to C:\ one by one and print<br />
&gt; out on screen.<br />
&gt;<br />
&gt; What I am doing is first getting a collection of doc files:<br />
&gt; $docs = get-childitem -recurse d: | where-object {$_.Name -like &quot;*.doc&quot;}<br />
&gt;<br />
&gt; then I use a foreach loop to go through these .doc files<br />
&gt;<br />
&gt; foreach ($doc in $docss)<br />
&gt; {<br />
&gt; 	copy-item $doc c:\<br />
&gt; 	write-host &quot;Copied file &quot;&quot;$doc&quot;&quot; to directory: C:\&quot;<br />
&gt; }<br />
&gt;<br />
&gt; but the problem is that the copy-item statement looks for files under the<br />
&gt; current working directory so I get lots errors. How do I get the path for<br />
&gt; each $doc?</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Larry__Weiss</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260877-re-how-do-i-get-absolute-path-file.html</guid>
		</item>
		<item>
			<title>converting 1.0 snap-ins to 2.0 modules</title>
			<link>http://www.vistax64.com/powershell/260876-converting-1-0-snap-ins-2-0-modules.html</link>
			<pubDate>Wed, 18 Nov 2009 03:06:20 GMT</pubDate>
			<description><![CDATA[Per the subject line, is this documented anywhere? I did a search on MSDN 
and Google and didn't find anything particularly clear. I have some C#...]]></description>
			<content:encoded><![CDATA[<div>Per the subject line, is this documented anywhere? I did a search on MSDN<br />
and Google and didn't find anything particularly clear. I have some C#<br />
snap-ins that I'd like to convert to 2.0 modules and am looking for<br />
developer best practices, tips, hints, etc..<br />
<br />
Thanks!<br />
<br />
Darren<br />
<br />
</div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Darren Mar-Elia \(Group Policy MVP\)</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260876-converting-1-0-snap-ins-2-0-modules.html</guid>
		</item>
		<item>
			<title>Re: How do I get absolute path of a file?</title>
			<link>http://www.vistax64.com/powershell/260875-re-how-do-i-get-absolute-path-file.html</link>
			<pubDate>Wed, 18 Nov 2009 02:34:27 GMT</pubDate>
			<description>Because default property to return is Name, not FullName... 
 
You will get fullname by calling other .NET functions thought (retrieval of 
files or...</description>
			<content:encoded><![CDATA[<div>Because default property to return is Name, not FullName...<br />
<br />
You will get fullname by calling other .NET functions thought (retrieval of<br />
files or subfolders returns array of strings)<br />
<br />
Martin<br />
<br />
&quot;Larry__Weiss&quot; &lt;lfw@newsgroup&gt; wrote in message<br />
news:OCC6zPAaKHA.5852@newsgroup<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt; I'm wondering why you have to refer to a file's fullname property<br />
&gt; explicitly.<br />
&gt;<br />
&gt; I thought that the object itself would have been defined well enough to<br />
&gt; resolve it to a specific file resident at a specific location.<br />
&gt;<br />
&gt; Isn't that the point of collecting the objects and not just the names?<br />
&gt;<br />
&gt;  - Larry<br />
&gt;<br />
&gt;<br />
&gt; Al Fansome wrote:<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="green"><br />
&gt;&gt; Oops, actually<br />
&gt;&gt; copy-item $doc.fullname c:\<br />
&gt;&gt; works. Sorry.<br />
&gt;&gt;<br />
&gt;&gt; Megaton wrote:<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="darkred"><br />
&gt;&gt;&gt; Hi<br />
&gt;&gt;&gt; I would like to copy a collection of .doc files to C:\ one by one and<br />
&gt;&gt;&gt; print out on screen.<br />
&gt;&gt;&gt;<br />
&gt;&gt;&gt; What I am doing is first getting a collection of doc files:<br />
&gt;&gt;&gt; $docs = get-childitem -recurse d: | where-object {$_.Name -like &quot;*.doc&quot;}<br />
&gt;&gt;&gt;<br />
&gt;&gt;&gt; then I use a foreach loop to go through these .doc files<br />
&gt;&gt;&gt;<br />
&gt;&gt;&gt; foreach ($doc in $docss)<br />
&gt;&gt;&gt; {<br />
&gt;&gt;&gt;     copy-item $doc c:\<br />
&gt;&gt;&gt;     write-host &quot;Copied file &quot;&quot;$doc&quot;&quot; to directory: C:\&quot;<br />
&gt;&gt;&gt; }<br />
&gt;&gt;&gt;<br />
&gt;&gt;&gt; but the problem is that the copy-item statement looks for files under<br />
&gt;&gt;&gt; the current working directory so I get lots errors. How do I get the<br />
&gt;&gt;&gt; path for each $doc?</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>Al Fansome</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260875-re-how-do-i-get-absolute-path-file.html</guid>
		</item>
		<item>
			<title>parse logs with multiple variables</title>
			<link>http://www.vistax64.com/powershell/260691-parse-logs-multiple-variables.html</link>
			<pubDate>Mon, 16 Nov 2009 18:58:03 GMT</pubDate>
			<description><![CDATA[What's the format of your log file? 
 
 
"jlo" wrote: 
 
---Quote--- 
> 
> i am trying to parse log files (text files) by searching multiple 
>...]]></description>
			<content:encoded><![CDATA[<div>What's the format of your log file?<br />
<br />
<br />
&quot;jlo&quot; wrote:<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<font color="blue"><br />
&gt;<br />
&gt; i am trying to parse log files (text files) by searching multiple<br />
&gt; variables and i cant seem to tie them all together through regex or<br />
&gt; pipelining properly.<br />
&gt; here are all the things i am trying to parse through:<br />
&gt; - log date entry- i want to only accept entries between certain hours<br />
&gt; of the day (i.e - 9am to 5pm (17:00:00)<br />
&gt; - if between those hours then i want search for a keyword and output<br />
&gt; all lines with both these positive conditions of hour and keyword to a<br />
&gt; text file then...<br />
&gt; - count all entries  per hour and output seperate hour count<br />
&gt; - count all entries per day and out day count.<br />
&gt;<br />
&gt; is this possible :)<br />
&gt;<br />
&gt;<br />
&gt; --<br />
&gt; jlo<br />
&gt; .<br />
&gt;</font>
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://www.vistax64.com/powershell/">PowerShell</category>
			<dc:creator>jlo</dc:creator>
			<guid isPermaLink="true">http://www.vistax64.com/powershell/260691-parse-logs-multiple-variables.html</guid>
		</item>
	</channel>
</rss>
