I have an array of objects of the following structure:
structure Disk
{
int UID;
String Computer;
}
A computer may have a bunch of shar
While this won't work in the earliest versions, in more recent versions you can just call the .NET LINQ extension functions directly, e.g.
[system.linq.enumerable]::union([object[]](1,2,3),[object[]](2,3,4))
(Without the cast to some enumerable type, PowerShell throws a "cannot find overload" error.)
This definitely works in PowerShell V4 and V5 and definitely doesn't in V2. I don't have a system at hand with V3.