<?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: Data Profiling with Windows PowerShell</title>
	<atom:link href="http://gotitsolutions.org/2010/01/30/data-profiling-with-windows-powershell.html/feed" rel="self" type="application/rss+xml" />
	<link>http://gotitsolutions.org/2010/01/30/data-profiling-with-windows-powershell.html</link>
	<description>Get Information Technology Conjecture...</description>
	<lastBuildDate>Tue, 20 Apr 2010 01:12:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rbocchinfuso</title>
		<link>http://gotitsolutions.org/2010/01/30/data-profiling-with-windows-powershell.html/comment-page-1#comment-544</link>
		<dc:creator>rbocchinfuso</dc:creator>
		<pubDate>Sun, 31 Jan 2010 17:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://gotitsolutions.org/2010/01/30/data-profiling-with-windows-powershell.html#comment-544</guid>
		<description>&lt;p&gt;I have not run the PS2 code but does it output the results to a CSV files?&#160; It does not look like it.&#160; The problem that I am trying to solve is the memory footprint when the scan runs using an array to store output and then write the array to a CSV files.&#160; I would like to write each row and remove the use of the array, the issue that I have is that the Export-CSV function does not support appending to a CSV (I don&#039;t think this is supported on PS2 either), I did find a replacement Export-CSV function here http://dmitrysotnikov.wordpress.com/2010/01/19/export-csv-append/ which says it supports an -Append flag but have not had a chance to try yet.&#160; I tried using the out-file function in the PS1 script but formatting was a little mote work than what I bargained for.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I have not run the PS2 code but does it output the results to a CSV files?&nbsp; It does not look like it.&nbsp; The problem that I am trying to solve is the memory footprint when the scan runs using an array to store output and then write the array to a CSV files.&nbsp; I would like to write each row and remove the use of the array, the issue that I have is that the Export-CSV function does not support appending to a CSV (I don&#39;t think this is supported on PS2 either), I did find a replacement Export-CSV function here <a href="http://dmitrysotnikov.wordpress.com/2010/01/19/export-csv-append/" rel="nofollow">http://dmitrysotnikov.wordpress.com/2010/01/19/export-csv-append/</a> which says it supports an -Append flag but have not had a chance to try yet.&nbsp; I tried using the out-file function in the PS1 script but formatting was a little mote work than what I bargained for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://gotitsolutions.org/2010/01/30/data-profiling-with-windows-powershell.html/comment-page-1#comment-542</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Sun, 31 Jan 2010 14:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://gotitsolutions.org/2010/01/30/data-profiling-with-windows-powershell.html#comment-542</guid>
		<description>&lt;p&gt;
  Nice work. For PowerShell V2 you can work it like this.
&lt;/p&gt;
&lt;p&gt;
  Function Get-FileDetails ($target) { &#160;&#160;&#160;
  get-childitem $target -recurse&#124; Select-Object FullName, Root,
  Directory, Parent, Name, Extension, PSIsContainer, IsReadOnly,
  Length, CreationTime, LastAccessTime, LastWriteTime, Attributes }
  foreach($file in&#160; (Get-FileDetails
  C:\temp\ConsoleApplication2) ) { &#160;&#160;&#160; $acl =
  get-acl $file.fullname &#124; select-object
  path,owner,accesstostring,group &#160;&#160;&#160;
  &#160;&#160;&#160; $properties = @{} &#160;&#160;&#160;
  &#160;&#160;&#160; $properties.Root = $file.Root
  &#160;&#160;&#160; $properties.Directory = $file.Directory
  &#160;&#160;&#160; $properties.Parent = $file.Parent
  &#160;&#160;&#160; $properties.Name = $file.Name
  &#160;&#160;&#160; $properties.Extension = $file.Extension
  &#160;&#160;&#160; $properties.IsDIR = $file.PSIsContainer
  &#160;&#160;&#160; $properties.IsReadOnly = $file.IsReadOnly
  &#160;&#160;&#160; $properties.Size = $file.Length
  &#160;&#160;&#160; $properties.CreationTime = $file.CreationTime
  &#160;&#160;&#160; $properties.LastAccessTime =
  $file.LastAccessTime &#160;&#160;&#160; $properties.LastWriteTime
  = $file.LastWriteTime &#160;&#160;&#160; $properties.Attributes =
  $file.Attributes &#160;&#160;&#160; $properties.Owner =
  $acl.owner &#160;&#160;&#160; $properties.AccessToString =
  $acl.accesstostring &#160;&#160;&#160; $properties.Group =
  $acl.group&#160;&#160;&#160;&#160; &#160;&#160;&#160;
  &#160;&#160;&#160; New-Object PSObject -Property $properties }
  &#160;
&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>
  Nice work. For PowerShell V2 you can work it like this.
</p>
<p>
  Function Get-FileDetails ($target) { &nbsp;&nbsp;&nbsp;<br />
  get-childitem $target -recurse| Select-Object FullName, Root,<br />
  Directory, Parent, Name, Extension, PSIsContainer, IsReadOnly,<br />
  Length, CreationTime, LastAccessTime, LastWriteTime, Attributes }<br />
  foreach($file in&nbsp; (Get-FileDetails<br />
  C:\temp\ConsoleApplication2) ) { &nbsp;&nbsp;&nbsp; $acl =<br />
  get-acl $file.fullname | select-object<br />
  path,owner,accesstostring,group &nbsp;&nbsp;&nbsp;<br />
  &nbsp;&nbsp;&nbsp; $properties = @{} &nbsp;&nbsp;&nbsp;<br />
  &nbsp;&nbsp;&nbsp; $properties.Root = $file.Root<br />
  &nbsp;&nbsp;&nbsp; $properties.Directory = $file.Directory<br />
  &nbsp;&nbsp;&nbsp; $properties.Parent = $file.Parent<br />
  &nbsp;&nbsp;&nbsp; $properties.Name = $file.Name<br />
  &nbsp;&nbsp;&nbsp; $properties.Extension = $file.Extension<br />
  &nbsp;&nbsp;&nbsp; $properties.IsDIR = $file.PSIsContainer<br />
  &nbsp;&nbsp;&nbsp; $properties.IsReadOnly = $file.IsReadOnly<br />
  &nbsp;&nbsp;&nbsp; $properties.Size = $file.Length<br />
  &nbsp;&nbsp;&nbsp; $properties.CreationTime = $file.CreationTime<br />
  &nbsp;&nbsp;&nbsp; $properties.LastAccessTime =<br />
  $file.LastAccessTime &nbsp;&nbsp;&nbsp; $properties.LastWriteTime<br />
  = $file.LastWriteTime &nbsp;&nbsp;&nbsp; $properties.Attributes =<br />
  $file.Attributes &nbsp;&nbsp;&nbsp; $properties.Owner =<br />
  $acl.owner &nbsp;&nbsp;&nbsp; $properties.AccessToString =<br />
  $acl.accesstostring &nbsp;&nbsp;&nbsp; $properties.Group =<br />
  $acl.group&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br />
  &nbsp;&nbsp;&nbsp; New-Object PSObject -Property $properties }<br />
  &nbsp;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
