Replace / join acl permissions using quest

Welcome Forums General PowerShell Q&A Replace / join acl permissions using quest

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
2 years, 9 months ago.

  • Author
    Posts
  • #35400

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,674
    Helping HandTeam Member
    Rank: Community Hero

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

The topic ‘Replace / join acl permissions using quest’ is closed to new replies.