LINQ and PowerShell

by willsteele at 2012-08-28 08:01:43

I have seen a few examples of LINQ and PowerShell. Kirk demoed a good use, but, I was wondering, what might be some good, general thoughts about when it would be good to use LINQ instead of pure PowerShell. My understanding of LINQ is that it does a lot of what PowerShell already does (with type inference). Now, I know there is MUCH more to both LINQ and PowerShell than type inference. Since LINQ is not a native PowerShell capacity, I am just wondering what sort of functionality one might want badly enough to go through the trouble of incorporating it into scripts which PowerShell doesn’t already do by itself.
by poshoholic at 2012-08-28 18:55:56
Here’s a good example of what someone might want to do with this: http://bartdesmet.net/blogs/bart/archive/2008/06/07/linq-through-powershell.aspx.