none
How to Retrieve TrusteeType from GPO RRS feed

  • Question

  • When I use -- Get-GPPermission -Name TestGPO -All -- I get output like this:

    Trustee: SYSTEM; TrusteeType: WellKnownGroup

    If I use -- Get-GPPermission -Name TestGPO -All | Select Trustee.Name --- I get the Trustee Name as Output; e.g. Authenticated Users.

    But, if I use Get-GPPermission -Name TestGPO -All | Select TrusteeType --- I get no output. So, my question is:

    How can I retrieve ONLY the "TrusteeType" from the result of "Get-GPPermission -Name TestGPO -All"

    I tried --- Trustee.Type/TrusteeType.Name etc. --- but they do not output any result.

    Friday, June 28, 2019 8:31 AM

Answers

  • Get-GPPermission -Name TestGPO -All |
        Select-Object -ExpandProperty Trustee |
            Select-Object -ExpandProperty SiDType


    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    • Proposed as answer by jrv Friday, June 28, 2019 2:09 PM
    • Marked as answer by Monimoy Sanyal Saturday, June 29, 2019 2:32 PM
    Friday, June 28, 2019 11:26 AM

All replies

  • Get-GPPermission -Name TestGPO -All |
        Select-Object -ExpandProperty Trustee |
            Select-Object -ExpandProperty SiDType


    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    • Proposed as answer by jrv Friday, June 28, 2019 2:09 PM
    • Marked as answer by Monimoy Sanyal Saturday, June 29, 2019 2:32 PM
    Friday, June 28, 2019 11:26 AM
  • That works perfect. Thanks a lot, BOfH 666

    Saturday, June 29, 2019 2:32 PM