Replace / join acl permissions using quest

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 9 months, 2 weeks ago.

  • Author
    Posts
  • #35400
    Profile photo of lemonade
    lemonade
    Participant

    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\","")

  • #35437
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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 :/.

You must be logged in to reply to this topic.