This is something we’d like to fix, but we’re still evaluating at a high-level how to make future improvements to Out-GridView.
We’re not currently working on this, but the work is being tracked in this GitHub issue: https://github.com/PowerShell/PowerShell/issues/2463
It’s marked as `Up-for-Grabs` to indicate that anyone is welcome to help us implement support for it.
You’re right in that this is annoying. We will likely change the behavior as a bugfix. If anyone really, really likes the old behavior, we may decide to add an option to re-enable it.
Thank you for your input. Based on its current ranking compared to other feedback items and product schedule, work on this item is pending (and will be driven by) further customer input. If you did not open this issue and are also impacted by it, please vote this item up.
What would be the point of this? It totally defeats the point of using splatting.
Splatting is smart for when you use the same parameters for different cmdlets or calling the same cmdlet multiple times with only a few parameters changing, or for building up parameters.
If you do it like in this idea then you cannot reuse the splat since it not stored in a variable.
If it is purely for your code formatting then use the backtick to make it look "pretty" like this:
-ResourceGroupName = $ResourceGroupName `
-Location = $location `
-Whatif = $true `
-ErrorVarible = "err" `
-ErrorAction = "SilentlyContinue"
Forgot to say this bug has been there since Out-GridView was introduced in PS 3.0, and is still there with 5.0.10586.63.Per Martin Møller shared this idea ·
Tracking a list of missing robocopy-like functionality in this GitHub Issue: https://github.com/PowerShell/PowerShell/issues/2581
Feel free to continue to vote here, but you’re also welcome to add comments there or even contribute some of the missing functionality!
Also worth noting is that if the Property name has multiple underscores in the name it will only truncate the first one.
So if the property name is "foo_bar_foo" it will be displayed as "foobar_foo"