Based on and inspired from leanLAPS from LiebenConsulting: leanLAPS
- does not require/modify registry keys
- does not store the password locally
- automatically renames the local admin account
- can remove any other local admin accounts if desired
- can whitelist approved admins or groups from AzureAD or Active Directory
- stores passwords and the password history in a safe place
- does not need additional PowerShell modules
- Source code from here
- Licenses to have intune and "proactive remediation"
- Microsoft Azure
- Logon to Azure
- Create RessourceGroup or use an existing
- Create a KeyVault in a region of your choice
- Create a simple AzureAD Enterprise Application
- Set Permissions in your KeyVault using a Vault access Policy
- Download the Script to your computer
- Modify line 19, 20 and 21 to the IDs of your Azure Tenant, App ID and App Secret
- Open your intune environment and go to Home --> Reports --> Endpoint analytics
- Create a new custom Script
- Define a name and description etc
- Upload the modified simpleLAPS.PS1 as detection and as remediation
- Disable "Run this Script using logged-on-credentials"
- Disable "Enforce script signature check"
- Enable "Run script in 64-bit PowerShell"
- Assign the script to the destination computers