Listen to this Post
Managing local admin passwords has always been a silent security risk for organizations. Many either set a static local admin password across all devices or manually rotate them, which is nearly impossible to track at scale. The danger? If one machine gets breached, that password can be used to jump across the entire network, putting critical systems at risk.
Windows LAPS in Entra ID eliminates that headache for good. With Windows LAPS in Entra ID, you get:
– ✅ Automatic rotation of local admin passwords
– ✅ Secure storage in Entra ID
– ✅ Granular access control & auditing—so only the right people have access.
No more password reuse risks—Microsoft has finally made LAPS cloud-native! Here’s how to enable it and secure your endpoints: Enable Windows LAPS in Entra ID.
You Should Know:
1. Enabling Windows LAPS in Entra ID
To enable Windows LAPS in Entra ID, follow these steps:
1. Prerequisites:
- Ensure you have an Entra ID tenant.
- Verify that your devices are running Windows 10 or later.
- Ensure you have administrative privileges in Entra ID.
2. Enable Windows LAPS:
- Navigate to the Entra ID Admin Center.
- Go to Devices > Windows LAPS.
- Click Enable Windows LAPS.
- Configure the settings for password rotation and storage.
3. Deploy via Group Policy:
- Open the Group Policy Management Console.
- Create a new GPO or edit an existing one.
- Navigate to Computer Configuration > Administrative Templates > Windows Components > Windows LAPS.
- Enable the policy Configure Windows LAPS.
- Set the Password Rotation Interval and Password Complexity requirements.
4. Verify Configuration:
- Run the following command on a target device to verify LAPS is working:
Get-LapsAADPassword
- This command retrieves the current local admin password stored in Entra ID.
2. Commands for Managing Windows LAPS
Here are some essential PowerShell commands for managing Windows LAPS:
- Check LAPS Status:
Get-LapsAADStatus
This command checks if LAPS is enabled and configured correctly on the device.
-
Force Password Rotation:
Invoke-LapsAADPasswordRotation
Use this command to manually trigger a password rotation.
-
Audit LAPS Access:
Get-LapsAADAuditLog
This command retrieves the audit logs for LAPS access and password retrieval.
3. Linux Equivalent: Managing Local Passwords Securely
For Linux systems, you can achieve similar security using tools like Vault or Ansible for password management. Here’s how:
1. Install Vault:
sudo apt-get install vault
2. Store and Rotate Passwords:
- Use Vault to store local admin passwords securely.
- Rotate passwords using a cron job:
0 0 * * * /usr/local/bin/rotate-passwords.sh
3. Audit Access:
- Use the `auditd` tool to monitor access to sensitive files:
sudo auditctl -w /etc/shadow -p rwxa -k shadow-file
4. Windows Security Best Practices
- Enable BitLocker: Encrypt your drives to protect data in case of physical theft.
Enable-BitLocker -MountPoint "C:" -EncryptionMethod XtsAes256
- Use Windows Defender: Ensure real-time protection is enabled.
Set-MpPreference -DisableRealtimeMonitoring $false
- Regularly Update Systems: Keep your systems updated to patch vulnerabilities.
Install-WindowsUpdate -AcceptAll -AutoReboot
What Undercode Say:
Windows LAPS in Entra ID is a significant step forward in securing local admin passwords and reducing lateral movement risks in case of a breach. By automating password rotation and securely storing credentials in the cloud, organizations can enhance their endpoint security posture. Additionally, integrating tools like Vault for Linux systems ensures a consistent security approach across platforms. IT admins should prioritize enabling Windows LAPS and adopt best practices like BitLocker and regular updates to fortify their defenses.
Expected Output:
- Windows LAPS enabled in Entra ID.
- Local admin passwords automatically rotated and securely stored.
- Granular access controls and auditing in place.
- Linux systems secured using Vault and
auditd. - Windows systems protected with BitLocker and Windows Defender.
For more details, visit: Enable Windows LAPS in Entra ID.
References:
Reported By: Jake Admindroid – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅



