How glued2/local-admin works
Project type and purpose
• This is an open-source administrative tool composed of a single PowerShell script (localadmin.ps1) designed to manage and audit local-admin privileges on developer laptops in a hybrid AD/GPO environment.
File structure
• Top-level files only:
• localadmin.ps1 – the core script that runs on each endpoint.
• README.md – explains use case (hybrid identity, central management).
• localadmin.ps1 is deployed via GPO or another endpoint-management mechanism.
README for additional insights
• Central goals: grant developers local-admin rights on their laptops based on AD Group membership and device-owner metadata, all under central audit/control.
• Uses a mix of Group Policy for distribution, AD groups for role definition, and device properties (owner) to drive logic.
Key elements to capture
• The GPO (or deployment tool) pushing the script
• The script’s decision logic against AD groups and device-owner attribute
• The local Administrators group modification
• The audit event creation and forwarding pipeline
• The IT Admin role managing AD groups and reviewing logs