How to read the computer security token to get group membership

186 views Asked by At

I can read the user account token using:

[Security.Principal.WindowsIdentity]::GetCurrent()

And then get the groups the account is a member of.

How can I read the computer account token to get the group membership?

Answers relying on querying Active Directory are not what I am looking for.

Tried:

[Security.Principal.WindowsIdentity]::GetCurrent().DeviceClaims

but it's an empty collection.

0

There are 0 answers