Author Posts

February 18, 2016 at 2:20 am

Is there a way to do this on one line?


$a = Get-QADObject $group -SecurityMask Dacl | Get-QADPermission -ExtendedRight send-as
$b = $a.account -join ";"
$b.replace("DOMAIN\","")

February 18, 2016 at 10:27 am

The Join and Replace functions aren't exactly duplicated by a cmdlet. I mean, you could do this like...

((Get-QADObject $group -SecurityMask Dacl | Get-QADPermission -ExtendedRight send-as).account -join ";").Replace("DOMAIN\","")

...I suppose, but that's not exactly awesome readability :/.