<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Duplicate Files 2</title><link>http://blogs.msdn.com/b/powershell/archive/2006/04/25/583226.aspx</link><description>A long time ago I posted a filter (AddNote) for adding notes to objects. Some time later I posted a function (Get-MD5) for calculating the MD5 hash of a file and somebody asked how that could be used in a script to list all the files in a given folder</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Duplicate Files 2</title><link>http://blogs.msdn.com/b/powershell/archive/2006/04/25/583226.aspx#9974593</link><pubDate>Mon, 08 Mar 2010 04:58:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9974593</guid><dc:creator>kldsts</dc:creator><description>&lt;p&gt;how to find a duplicate files in a remote system based on hash.&lt;/p&gt;
&lt;p&gt;senario : dump of softwares in a files server are copied to local computers and changes the names or extenction of the files. now how can i find the dump of a similar file in a remote system based on hash of a file existing in my file server. using powershell. ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9974593" width="1" height="1"&gt;</description></item><item><title>re: Duplicate Files 2</title><link>http://blogs.msdn.com/b/powershell/archive/2006/04/25/583226.aspx#5512777</link><pubDate>Thu, 18 Oct 2007 22:55:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5512777</guid><dc:creator>Alan</dc:creator><description>&lt;p&gt;The problem is how you called the PS1 script. I presume that you are calling powershell from cmd.exe. In this case you have to do this: &lt;/p&gt;
&lt;p&gt;M:\document\WindowsPowerShell&amp;gt;powershell.exe ./Get_Duplicate_Files.ps1&lt;/p&gt;
&lt;p&gt;You missed the &amp;quot;./&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5512777" width="1" height="1"&gt;</description></item><item><title>re: Duplicate Files 2</title><link>http://blogs.msdn.com/b/powershell/archive/2006/04/25/583226.aspx#5500397</link><pubDate>Thu, 18 Oct 2007 01:28:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5500397</guid><dc:creator>An IT Guy</dc:creator><description>&lt;p&gt;Now if we could only find out why powershell chokes when asked to just do it's job and run the script:&lt;/p&gt;
&lt;p&gt;M:\document\WindowsPowerShell&amp;gt;dir&lt;/p&gt;
&lt;p&gt; Volume in drive M is Data&lt;/p&gt;
&lt;p&gt; Volume Serial Number is 0CE7-363C&lt;/p&gt;
&lt;p&gt; Directory of M:\document\WindowsPowerShell&lt;/p&gt;
&lt;p&gt;17/10/2007 &amp;nbsp;04:25 PM &amp;nbsp; &amp;nbsp;&amp;lt;DIR&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/p&gt;
&lt;p&gt;17/10/2007 &amp;nbsp;04:25 PM &amp;nbsp; &amp;nbsp;&amp;lt;DIR&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;..&lt;/p&gt;
&lt;p&gt;17/10/2007 &amp;nbsp;04:25 PM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 645 Get Duplicate Files.ps1&lt;/p&gt;
&lt;p&gt;17/10/2007 &amp;nbsp;03:55 PM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 716 Microsoft.PowerShell_profile.ps1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 File(s) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1,361 bytes&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 Dir(s) &amp;nbsp;131,402,600,448 bytes free&lt;/p&gt;
&lt;p&gt;M:\document\WindowsPowerShell&amp;gt;powershell.exe Get_Duplicate_Files.ps1&lt;/p&gt;
&lt;p&gt;The term 'Get_Duplicate_Files.ps1' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.&lt;/p&gt;
&lt;p&gt;At line:1 char:23&lt;/p&gt;
&lt;p&gt;+ Get_Duplicate_Files.ps1 &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5500397" width="1" height="1"&gt;</description></item><item><title>re: Duplicate Files 2</title><link>http://blogs.msdn.com/b/powershell/archive/2006/04/25/583226.aspx#897801</link><pubDate>Sun, 29 Oct 2006 23:39:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:897801</guid><dc:creator>anonymous</dc:creator><description>&lt;p&gt;finding duplicate files based on lastwritetime and length.&lt;/p&gt;
&lt;p&gt;get-childitem -force -recurse -erroraction continue | sort-object lastwritetime,length | Group-Object -Property lastwritetime,Length | ? { $_.count -gt 1 } | foreach { $_.group | select-object directory,name,length,lastwritetime } | export-csv files.csv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=897801" width="1" height="1"&gt;</description></item></channel></rss>