Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Windows Active Directory – Compare User Groups

Posted on January 2, 2020 By David Kittell
$user1 = "administrator"
$user2 = "dkittell"

# Left arrow means user1 has the permissions but user2 does not
# Right arrow means user2 has the permissions but user1 does not
diff(get-adprincipalgroupmembership -Identity $user1)(get-adprincipalgroupmembership -Identity $user2) -property 'name'
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Active Directory (AD) Code PowerShell

Post navigation

Previous post
Next post

Related Posts

Battery Life

Posted on May 3, 2013February 8, 2016

By its self this code is rather simple and meaningless but useful when adding to scheduled tasks or applications that take a long time to run and have the potential of running on a laptop. Before using the code below in Design View you’ll need these: 1 Progress Bar 2…

Read More

Android ADB List/Uninstall Apps

Posted on September 29, 2014October 26, 2015

adb shell pm list packages -f >> AppList.txt adb shell pm uninstall -k <PackageName> adb shell pm uninstall -k as.adamsmith.etherealdialpad Originally Posted on September 29, 2014Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is…

Read More

Ektron Content Status Codes

Posted on September 10, 2013October 26, 2015

This is a list of code definitions for the content_status column in the content table SELECT content_status ,count(content_status) FROM content GROUP BY content_status Letter Meaning Content state More Information A Approved Through the workflow and published on the Web site. Approved Content O Checked Out Currently being edited. Has not…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes
 

Loading Comments...
 

You must be logged in to post a comment.