Splat command adding extra curly brace
Posted: Fri Jan 10, 2020 3:20 am
Product, version and build: PowerShell Studio 2019, Build 5.6.170
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1909
Hello,
it seems the splat command shortcut hates me, or perhaphs I'm just abusing it
As per subject under specific circumstances the aforementioned shortcut will add extra curly braces to the command, this can easily be reproduced with the following snippet
Keep in mind this affects the command only when extra parameters follow the curly brace as this will be correctly splatted
Don't mind the fact I'm using Quest cmdlets up there as we use ActiveRoles for AD management that will affect any cmdlet/module.
Thanks in advance for looking into this!
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1909
Hello,
it seems the splat command shortcut hates me, or perhaphs I'm just abusing it
As per subject under specific circumstances the aforementioned shortcut will add extra curly braces to the command, this can easily be reproduced with the following snippet
Code: Select all
Set-QADObject -Identity $objectGuid -ObjectAttributes @{ 'Attr1' = $false } -Service $arsServerName -Proxy
Code: Select all
-Set-QADObject -Identity $objectGuid -Service $arsServerName -Proxy -ObjectAttributes @{ 'Attr1' = $false }
Thanks in advance for looking into this!