Skip to content

Tech & Cyber Security

Technology, Cybersecurity, Software Development and Personal Blog!

Primary Menu

  • Home
  • Latest Posts
  • Resources
  • About
  • Contact

Tag Kerberos

Getting security group memberships for the currently logged in user – with PowerShell

August 10, 2021Glenn Mitchell Leave a comment

If you need to check if a security group membership has been applied to a current user, you can run the following PowerShell command to get the group memberships from the current Kerberos Token:

(([System.Security.Principal.WindowsIdentity]::GetCurrent()).Groups) | %{Write-Host (($_).Translate([System.Security.Principal.NTAccount]))}

  • Twitter
  • LinkedIn

Recent Posts

  • Managing a Data Breach: Insights from FinTechSec Solutions Inc.’s Experience January 11, 2024
  • The Essential Guide to Role-Based Access Control December 10, 2022
  • Should I use Chocolatey or Winget? December 4, 2022
  • Adding users to AD Security Groups with PowerShell December 2, 2022
  • Getting security group memberships for the currently logged in user – with PowerShell August 10, 2021

Categories

  • Certifications
  • Fluff
  • Information Security
  • PowerShell and Scripting
  • Software
  • Tips

Tags

Access Control AD Account Management advice Authentication Authorisation automation Certification Exam chocolatey CIRP CISSP cyber-security cybersecurity data breach framework InfoSec Kerberos onboarding package manager PowerShell RBAC regulations Role-Based Access Control Roles security Security Group Study technology whoami winget

I am always happy to connect with you on LinkedIn or Twitter!

Follow me on Twitter

My Tweets

Disclaimer

All opinions are my own and do not reflect those of my employer. Any advice given is to be assessed to ensure that it is suitable for you, your organisation and / or situation.

Hi, I’m Glenn!

Glenn's Profile Picture
Website Powered by WordPress.com.
  • Subscribe Subscribed
    • Tech & Cyber Security
    • Already have a WordPress.com account? Log in now.
    • Tech & Cyber Security
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar