Posted On October 8, 2021

Quick 1-liner to Get a User’s Group Memberships

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Quick 1-liner to Get a User’s Group Memberships
PS C:\Windows\system32> Get-ADPrincipalGroupMembership kimconnect|select name

name
----
Domain Admins
Enterprise Admins
Cloud Admins
Kimconnect Admins

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Chocolatey Ignore Checksums

Issue: Certain choco packages may have mismatched signatures from its repo due to some minor…

Linux: How to Create RSA Keys and SSH Agent

Step 1: Generate RSA Key # Command to generate rsa key for Ubuntu Linuxssh-keygen -t…

Applying Windows Patches

#Example: Disabling Remote Code Execution(new-object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe','C:\temp\vcredist_x64.exe')c\:temp\vcredist_x64.exe /quiet /norestart #Example: Download updates using BITS (cannot invoke…