This is a simple function that will allow you to find all possible combinations of a given string, otherwise known as a Permutation. This only works with a single string and does not work on an array of items at this time. This was more of a proof of concept type function rather than anything really useful. :) Maybe in the future I will update this to make it allow a collection and add some other things to really make this more useful.

 

Blog post: http://learn-powershell.net/2013/02/21/fun-with-powershell-and-permutations/

 

PowerShell
Edit|Remove
Get-StringPermutation -String "This"