Update request - Determine which groups a user is a member of in a logon script
doctordns opened this issue · 1 comments
doctordns commented
Summary of the update request
-
Link to the post in the old blog:
https://devblogs.microsoft.com/scripting/how-can-i-determine-which-groups-a-user-belongs-to/ -
Description of what needs to be changed:
Needs to show implicit remoting of AD cmdlets from the DC, then use get-ADPrincipalGroupMembership to get the group memberships. Use whoami.exe .upn, to get the date, then look the user up using the UPN.