Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Local Administrator Password Solution (LAPs) Scripts

Author: Adrian Johnson (adrian207@gmail.com)
Version: 1.0.0
Date: October 2025

Comprehensive PowerShell automation solution for Microsoft's Local Administrator Password Solution (LAPs) deployment, configuration, and management on Windows Server environments.

Executive Overview

Recommendation

Deploy LAPs to centrally manage and secure local administrator passwords across your Windows environment, reducing credential theft risk and ensuring compliance with security best practices.

Why LAPs?

  • Enhanced Security: Eliminates shared local administrator passwords across multiple systems
  • Automated Password Management: Regularly rotates passwords without manual intervention
  • Audit Compliance: Complete audit trail of password access and changes
  • Centralized Control: Store passwords securely in Active Directory

How It Works

  • LAPs components installed on managed computers via Group Policy
  • Local administrator passwords stored as encrypted data in Active Directory
  • Authorized administrators can retrieve passwords when needed
  • Automatic password rotation on configurable schedule

Implementation Approach

  1. Configure LAPs Group Policy settings
  2. Deploy LAPs client to managed computers
  3. Configure password rotation and backup keys
  4. Monitor compliance and health

Key Features

  • Centralized Management: Unified LAPs configuration and deployment
  • Password Retrieval: Secure access to local administrator passwords
  • Group Policy Integration: Automated configuration via GPO
  • Audit & Compliance: Comprehensive tracking and reporting
  • Backup Key Management: Configure and rotate backup encryption keys
  • Health Monitoring: Real-time status and statistics
  • Troubleshooting Tools: Diagnose and resolve issues quickly

Project Structure

LAPs-Scripts/
├── Modules/                       # Core PowerShell modules
│   ├── LAPs-Core.psm1            # Core LAPs operations
│   ├── LAPs-Security.psm1        # Security and compliance features
│   ├── LAPs-Monitoring.psm1      # Monitoring and reporting
│   └── LAPs-Troubleshooting.psm1 # Diagnostics and troubleshooting
├── Scripts/                      # Deployment and management scripts
│   ├── Deployment/               # Installation scripts
│   ├── Configuration/            # Configuration scripts
│   ├── Security/                 # Security scripts
│   ├── Monitoring/               # Monitoring scripts
│   └── Troubleshooting/          # Troubleshooting scripts
├── Configuration/                # Configuration templates
├── Examples/                     # Usage examples
├── Documentation/                # Detailed documentation
└── Tests/                        # Test suite

Installation & Setup

Prerequisites

  • Windows Server 2016 or later (domain controller)
  • PowerShell 5.1 or later
  • Active Directory domain
  • Administrator privileges
  • LAPs Group Policy Administrative Templates installed

Quick Start

# Import LAPs modules
Import-Module ".\LAPs-Scripts\Modules\LAPs-Core.psm1" -Force
Import-Module ".\LAPs-Scripts\Modules\LAPs-Security.psm1" -Force
Import-Module ".\LAPs-Scripts\Modules\LAPs-Monitoring.psm1" -Force
Import-Module ".\LAPs-Scripts\Modules\LAPs-Troubleshooting.psm1" -Force

# Configure LAPs Group Policy
Set-LAPsGroupPolicy -PolicyName "LAPs Policy" -PasswordAgeInDays 30 -PasswordLength 14 -EnableAuditing

# Get LAPs status for computers
Get-LAPsStatus -ComputerName "SERVER01", "SERVER02"

# Retrieve local administrator password
Get-LAPsPassword -ComputerName "SERVER01"

# Perform LAPs audit
Invoke-LAPsAudit -ExportReport

Enterprise Scenarios

1. New LAPs Deployment

Complete deployment of LAPs across the environment.

2. LAPs Configuration Management

Configure and manage LAPs Group Policy settings across OUs.

3. Password Rotation Policy

Implement automated password rotation policies.

4. Backup Key Management

Configure and rotate LAPs backup encryption keys.

5. Compliance Auditing

Regular audits of LAPs deployment and configuration.

6. Password Recovery

Secure retrieval of local administrator passwords.

7. Health Monitoring

Real-time monitoring of LAPs deployment health.

8. Troubleshooting

Diagnose and resolve LAPs connectivity and configuration issues.

Core Functions

Install-LAPs

Deploys LAPs across the environment and configures Group Policy settings.

Get-LAPsPassword

Retrieves the current LAPs-managed local administrator password for a computer.

Set-LAPsGroupPolicy

Configures Group Policy settings for LAPs password management.

Get-LAPsStatus

Retrieves LAPs configuration and status information.

Invoke-LAPsAudit

Performs comprehensive audit of LAPs deployment and configuration.

Get-LAPsStatistics

Gets monitoring statistics and health metrics.

Test-LAPsConnectivity

Tests LAPs connectivity and communications.

Set-LAPsBackupKey

Configures LAPs backup key management.

Get-LAPsComplianceStatus

Gets compliance status for LAPs deployment.

Testing

Comprehensive test suite validates all functionality:

# Run test suite
.\LAPs-Scripts\Tests\Test-LAPsScripts.ps1

Test Results: 10/10 Tests Passing (100%)

Documentation

  • README.md: This file - overview and quick start
  • Documentation/: Detailed technical documentation
  • Examples/: Real-world usage examples

Support

For questions and support:

License

This project is part of the Windows Server PowerShell Solutions Suite.

Version History

  • v1.0.0 (October 2025) - Initial release with core LAPs functionality