Don’t overcomplicate things.
The full Microsoft Guide to installing LAPS
I boiled this down to one function in powershell. The Badblood Repo Laps Install Folder has the function .BadBlood/AD_LAPS_Install/InstallLAPSSchema.ps1
.BadBlood/AD_LAPS_Install/InstallLAPSSchema.ps1
Which runs the following code.
function Get-ScriptDirectory { Split-Path -Parent $PSCommandPath } $scriptPath = Get-ScriptDirectory copy-item -path ($scriptpath + "\admpwd.ps") -destination "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" get-childitem -path ($scriptpath + "\admpwd.ps") -recurse |Foreach-object { Copy-item -literalpath $_.fullname -destination "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\admpwd.ps" } copy-item -path ($scriptpath + "\AdmPwd.admx") -destination "C:\Windows\PolicyDefinitions" copy-item -path ($scriptpath + "\AdmPwd.adml") -destination "C:\Windows\PolicyDefinitions\en-US" Import-Module ADMPwd.ps Update-AdmPwdADSchema Set-AdmPwdComputerSelfPermission -OrgUnit (Get-ADDomain).distinguishedname
If you are a Domain Administrator and Schema Administrator, and logged into a domain controller this function does the following for you:
Step one complete by running one script
onto…
There are two GPOs to configure in the domain: One for servers. One for workstations
Here’s an outline of what the LAPS GPO should look like for workstations, tier 2 devices.
The settings are outlined as follows
Keep it easy.
Install Laps using the same GPO created in step 2
Automate the installation of LAPS onto all the windows machines on the domain.
gpupdate /force
Per the pdf linked above:
You now see that LAPS x64 has been imported. In case you are adding x86 LAPS, once you add the package be sure to edit the x86 package to uncheck the option Make this 32-bit X86 application available to Win64 machines. You will find this option when you right click the x86 package > Properties > Deployment. This will ensure that 64-bit computers get the 64-bit DLL, and 32-bit machines get the 32-bit DLL. Close the GPM editor.
Congratulations. Microsoft LAPS is now successfully deployed in the domain.
Pictures from this post are from the Microsoft PDF linked at the top of the page.
866c159343fd62168cf13ce8d43db4082ee96ef2