<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/popular/language/windows-powershell</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 20:47:05 GMT</pubDate>
<item>
<title>(Windows PowerShell) Use Powershell to remove all instances of thumbs.db in current tree - ericmorin21</title>
<link>http://snipplr.com/view/14097/use-powershell-to-remove-all-instances-of-thumbsdb-in-current-tree/</link>
<description><![CDATA[ <p>Powershell 1.0's Remove-Item recursion "doesn't work" according to the help, so you must find all instances with Get_ChildItem then pass the results to Remove-Item.  Use th ecommented -"WhatIf" argument to determine what will be deleted before executing for real.</p> ]]></description>
<pubDate>Thu, 16 Apr 2009 12:21:45 GMT</pubDate>
<guid>http://snipplr.com/view/14097/use-powershell-to-remove-all-instances-of-thumbsdb-in-current-tree/</guid>
</item>
<item>
<title>(Windows PowerShell) FindInFiles, PowerShell - jimfred</title>
<link>http://snipplr.com/view/10140/findinfiles-powershell/</link>
<description><![CDATA[ <p>-force will include system/hidden files.
%{$_.path } will print the filepath rather than the grep-like line containing searchText
-List results in 1 hit per file rather than each line containing searchText.</p> ]]></description>
<pubDate>Fri, 28 Nov 2008 21:16:16 GMT</pubDate>
<guid>http://snipplr.com/view/10140/findinfiles-powershell/</guid>
</item>
<item>
<title>(Windows PowerShell) Replace String in file contents and file names using PowerShell - dreamlusion</title>
<link>http://snipplr.com/view/8193/replace-string-in-file-contents-and-file-names-using-powershell/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Sep 2008 11:58:08 GMT</pubDate>
<guid>http://snipplr.com/view/8193/replace-string-in-file-contents-and-file-names-using-powershell/</guid>
</item>
<item>
<title>(Windows PowerShell) Delete all the Thumbs.db files on your drive - sachinbhavsar</title>
<link>http://snipplr.com/view/5650/delete-all-the-thumbsdb-files-on-your-drive/</link>
<description><![CDATA[ <p>Use this command to delete all the thumbs.db files on your drive.</p> ]]></description>
<pubDate>Wed, 02 Apr 2008 02:48:17 GMT</pubDate>
<guid>http://snipplr.com/view/5650/delete-all-the-thumbsdb-files-on-your-drive/</guid>
</item>
<item>
<title>(Windows PowerShell) Powershell - Replace multiple spaces with single spaces - ericmorin21</title>
<link>http://snipplr.com/view/14387/powershell--replace-multiple-spaces-with-single-spaces/</link>
<description><![CDATA[ <p>I needed to clean up strings with an unpredictable number of spaces interspersed throughout. Powershell's Replace method to the rescue.</p> ]]></description>
<pubDate>Fri, 24 Apr 2009 17:24:06 GMT</pubDate>
<guid>http://snipplr.com/view/14387/powershell--replace-multiple-spaces-with-single-spaces/</guid>
</item>
<item>
<title>(Windows PowerShell) Create a textfile listing all paths to a certain file or wildcard. - Vordreller</title>
<link>http://snipplr.com/view/14155/create-a-textfile-listing-all-paths-to-a-certain-file-or-wildcard/</link>
<description><![CDATA[ <p>First of all, for all Stackoverflow.com members who have seen my question about this snippet on Stackoverflow, yes I am the same person as WebDevhobo. Last time I asked a question about something I posted here I got a bucketload of comments saying I couldn't claim the work of that snippet to be mine >_>



This is a function for Windows Powershell. What this will do is create a list of all paths that lead to a  certain file on your computer.


Example input: `listAllPaths c:\ *.zip c:\allZips.txt`

This will create a file allZips.txt under your root harddrive(the third parameter). The content will be a list of all paths to every file that ends with the  characters .zip(second parameter) and Powershell will start looking from c:\(the first parameter)

You'll have to make sure Powershell knows the function first. So you'll have to add it to your Powershell profile, which will make it so that every time you start Powershell, you can use the function.

More info on the Powershell profile can be found [here][1]


  [1]: http://superuser.com/questions/63446#63458</p> ]]></description>
<pubDate>Sat, 18 Apr 2009 13:37:19 GMT</pubDate>
<guid>http://snipplr.com/view/14155/create-a-textfile-listing-all-paths-to-a-certain-file-or-wildcard/</guid>
</item>
<item>
<title>(Windows PowerShell) Use PowerShell to flatten your folders (batch rename) - dreamlusion</title>
<link>http://snipplr.com/view/8188/use-powershell-to-flatten-your-folders-batch-rename/</link>
<description><![CDATA[ <p>This command will recursively move your *.jpg images into the current directory, and add the originally containing directory name as a prefix for the image file.</p> ]]></description>
<pubDate>Thu, 04 Sep 2008 10:33:59 GMT</pubDate>
<guid>http://snipplr.com/view/8188/use-powershell-to-flatten-your-folders-batch-rename/</guid>
</item>
<item>
<title>(Windows PowerShell) Directory Verification - westonmillergmailcom</title>
<link>http://snipplr.com/view/29060/directory-verification/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 01 Mar 2010 12:56:07 GMT</pubDate>
<guid>http://snipplr.com/view/29060/directory-verification/</guid>
</item>
<item>
<title>(Windows PowerShell) PowerShell Massive/Batch Extraction - dreamlusion</title>
<link>http://snipplr.com/view/8187/powershell-massivebatch-extraction/</link>
<description><![CDATA[ <p>To run this script you will need the open source 7-Zip utility which is available [here](http://www.7-zip.org/).</p> ]]></description>
<pubDate>Thu, 04 Sep 2008 10:21:21 GMT</pubDate>
<guid>http://snipplr.com/view/8187/powershell-massivebatch-extraction/</guid>
</item>
<item>
<title>(Windows PowerShell) rename file with to current date - jleblanc</title>
<link>http://snipplr.com/view/5883/rename-file-with-to-current-date/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Apr 2008 10:47:59 GMT</pubDate>
<guid>http://snipplr.com/view/5883/rename-file-with-to-current-date/</guid>
</item>
<item>
<title>(Windows PowerShell) IPConfig Reset - rickygri</title>
<link>http://snipplr.com/view/70216/ipconfig-reset/</link>
<description><![CDATA[ <p>Reset DNS and flush ip config, then renew</p> ]]></description>
<pubDate>Sat, 02 Mar 2013 23:26:06 GMT</pubDate>
<guid>http://snipplr.com/view/70216/ipconfig-reset/</guid>
</item>
<item>
<title>(Windows PowerShell) Copy Files by Date Modified - danfsmith</title>
<link>http://snipplr.com/view/57176/copy-files-by-date-modified/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 27 Jul 2011 04:50:27 GMT</pubDate>
<guid>http://snipplr.com/view/57176/copy-files-by-date-modified/</guid>
</item>
<item>
<title>(Windows PowerShell) Delete files in a directory tree matching a regex - jarnaldich</title>
<link>http://snipplr.com/view/56129/delete-files-in-a-directory-tree-matching-a-regex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 05 Jul 2011 16:42:18 GMT</pubDate>
<guid>http://snipplr.com/view/56129/delete-files-in-a-directory-tree-matching-a-regex/</guid>
</item>
<item>
<title>(Windows PowerShell) Select-String to get unique matches, trim and ouput - danfsmith</title>
<link>http://snipplr.com/view/48302/selectstring-to-get-unique-matches-trim-and-ouput/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 03 Feb 2011 02:45:45 GMT</pubDate>
<guid>http://snipplr.com/view/48302/selectstring-to-get-unique-matches-trim-and-ouput/</guid>
</item>
<item>
<title>(Windows PowerShell) Replace content from files - danfsmith</title>
<link>http://snipplr.com/view/48301/replace-content-from-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 03 Feb 2011 02:44:49 GMT</pubDate>
<guid>http://snipplr.com/view/48301/replace-content-from-files/</guid>
</item>
<item>
<title>(Windows PowerShell) Powershell snips - michanne</title>
<link>http://snipplr.com/view/46270/powershell-snips/</link>
<description><![CDATA[ <p>Short Random lines of code mostly from Powershell.com</p> ]]></description>
<pubDate>Thu, 30 Dec 2010 04:55:15 GMT</pubDate>
<guid>http://snipplr.com/view/46270/powershell-snips/</guid>
</item>
<item>
<title>(Windows PowerShell) Change Masterpage in SP 2010 via Powershell - scholli</title>
<link>http://snipplr.com/view/43248/change-masterpage-in-sp-2010-via-powershell/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 Oct 2010 21:00:15 GMT</pubDate>
<guid>http://snipplr.com/view/43248/change-masterpage-in-sp-2010-via-powershell/</guid>
</item>
<item>
<title>(Windows PowerShell) Retract and Uninstall SharePoint Solution via Powershell - scholli</title>
<link>http://snipplr.com/view/43124/retract-and-uninstall-sharepoint-solution-via-powershell/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 28 Oct 2010 20:12:11 GMT</pubDate>
<guid>http://snipplr.com/view/43124/retract-and-uninstall-sharepoint-solution-via-powershell/</guid>
</item>
<item>
<title>(Windows PowerShell) Add and install SharePoint 2010 Solution via Powershell - scholli</title>
<link>http://snipplr.com/view/43123/add-and-install-sharepoint-2010-solution-via-powershell/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 28 Oct 2010 20:06:46 GMT</pubDate>
<guid>http://snipplr.com/view/43123/add-and-install-sharepoint-2010-solution-via-powershell/</guid>
</item>
<item>
<title>(Windows PowerShell) Uninstall assembly from GAC with gacutil.exe - scholli</title>
<link>http://snipplr.com/view/43032/uninstall-assembly-from-gac-with-gacutilexe/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 27 Oct 2010 20:12:04 GMT</pubDate>
<guid>http://snipplr.com/view/43032/uninstall-assembly-from-gac-with-gacutilexe/</guid>
</item>
<item>
<title>(Windows PowerShell) Windows DIR - List only the filenames of all files in a directory - theonlyalterego</title>
<link>http://snipplr.com/view/42589/windows-dir--list-only-the-filenames-of-all-files-in-a-directory/</link>
<description><![CDATA[ <p>I found this today and don't want too lose it. In windows the following command will create a text file named fileListing.txt which will contain a list of all the files in the current directory ( including fileListing.txt )</p> ]]></description>
<pubDate>Wed, 20 Oct 2010 07:36:35 GMT</pubDate>
<guid>http://snipplr.com/view/42589/windows-dir--list-only-the-filenames-of-all-files-in-a-directory/</guid>
</item>
<item>
<title>(Windows PowerShell) robocopy - myke</title>
<link>http://snipplr.com/view/42172/robocopy/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 13 Oct 2010 09:35:29 GMT</pubDate>
<guid>http://snipplr.com/view/42172/robocopy/</guid>
</item>
<item>
<title>(Windows PowerShell) batch file duration caluculation - simondiercks</title>
<link>http://snipplr.com/view/36521/batch-file-duration-caluculation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 Jun 2010 17:07:26 GMT</pubDate>
<guid>http://snipplr.com/view/36521/batch-file-duration-caluculation/</guid>
</item>
<item>
<title>(Windows PowerShell) Activate Remote desktop remotely! - adkatrit</title>
<link>http://snipplr.com/view/28692/activate-remote-desktop-remotely/</link>
<description><![CDATA[ <p>make sure your tubes are locked down first</p> ]]></description>
<pubDate>Sun, 21 Feb 2010 16:32:27 GMT</pubDate>
<guid>http://snipplr.com/view/28692/activate-remote-desktop-remotely/</guid>
</item>
<item>
<title>(Windows PowerShell) Left-padding in Powershell - ericmorin21</title>
<link>http://snipplr.com/view/14130/leftpadding-in-powershell/</link>
<description><![CDATA[ <p>For clarity, I have broken two variables out, but this could easily be a one-liner.
Usage:
Replace X with the character you wish to use to pad (e.g. 0 (zero)).
Replace Y with an integer representing the desired TOTAL length of the string.</p> ]]></description>
<pubDate>Fri, 17 Apr 2009 17:04:04 GMT</pubDate>
<guid>http://snipplr.com/view/14130/leftpadding-in-powershell/</guid>
</item>
</channel>
</rss>