If you're reading my ramblings, I'm going to assume you're part of a small IT shop, possibly the only member of it, and you need all the help you can get. This week is about a few easy defenses for your network.
Some of you will think these are no-brainers. Others will think, "Why didn't I do this sooner?" And a few will think, "Security? That's part of my job too?!" I hope something here resonates with all of you.
Two quick wins first
Take away local admin rights from regular users. Yes, that includes your everyday sign-in on your own workstation. It's one of the easiest ways to reduce risk across your network, and it sets up the bigger topic below.
Don't do admin work from your everyday account. Think of this as 1A to the first item. Set up some level of account tiering: the account you use for email and the web should be no different from any other user's. Do administrative work with a separate admin account.
If you use Microsoft 365 with hybrid identity, apply the same thinking to the cloud. Your Microsoft 365 admin roles belong on a separate, cloud-only account, not one synchronized from your on-premises Active Directory. That way, a compromised on-premises account can't be used to take over your tenant.
The problem with one local admin password
If you're like me, you set a strong password on the local administrator account on all your computers. (Or maybe not that strong, since you had to type it so often during setup.)
That's good, except it's the same password on every device. If someone gets it from one machine, they have it for every machine, and they can move across your network with ease. That's a big problem.
But you still need a working local admin account on each device. A different password for every machine? Managing that by hand would be a nightmare, even on a small network. And where would you keep them so they're easy to get to but still secure? Hint: not a network share.
Enter Windows LAPS
Windows Local Administrator Password Solution (LAPS) gives every computer its own local admin password, rotates it on a schedule, and stores it securely in Active Directory (or in Microsoft Entra ID, for cloud-joined devices). If one device is compromised, its password doesn't open any other device.
It's built into Windows and managed with Group Policy, so there's nothing to buy and nothing to install on the clients:
- Windows 11 23H2 and later. 21H2 and 22H2 need the April 11, 2023 update or later.
- Windows Server 2025. Server 2019 and 2022 need the April 11, 2023 update or later.
- Windows 10 with the April 2023 update, but only while it's still getting updates through Extended Security Updates.
If you're still running the older, separately installed Microsoft LAPS, it's deprecated, and Windows LAPS is its replacement. Microsoft has a migration guide.
Microsoft has a ton of documentation on LAPS, and plenty of other people have written guides, so this isn't a how-to. It's our experience deploying it, plus a few tips.
How we set it up
We followed Microsoft's documentation, with two choices worth calling out.
We manage a custom account, not the built-in Administrator. The built-in account should have a long, difficult password and be disabled. Attackers try the easy option first, and "Administrator," or some variation of it, is the first place they look.
We use automatic account management mode. The default is manual mode, where you create and maintain the account yourself and LAPS only manages its password. In automatic mode, LAPS manages the whole account: it creates it, adds it to the local Administrators group, and can even randomize its name. We wanted this to run itself. At a minimum, I'd recommend automatic mode and a non-default account.
One catch: automatic mode only works on Windows 11 24H2, Windows Server 2025 and later. Older machines will happily manage the password but won't create the account, so you need another way to create it there. More on that below.
Check your domain functional level first
If your domain functional level is below 2016, you can't turn on Windows LAPS password encryption. Without encryption, the passwords are protected only by permissions in Active Directory.
If you're not at 2016, put LAPS on hold and find out why. Fix those reasons and raise your functional level.
While you're there, look at your domain controllers. If they run Windows Server 2016, plan to upgrade them: Windows Server 2016 reaches end of support in January 2027. And please tell me you have more than one domain controller.
Rolling it out slowly
Don't test on production machines. I keep a couple of computers around that still run Windows 11 but aren't fit for a user's desk, for exactly this kind of thing.
- Test OU. Put your test machines in their own organizational unit and link the LAPS Group Policy there. We let it bake for about a month, checking that passwords were set and rotated on the schedule we wanted.
- IT department. We eat our own dog food. If it doesn't work on our everyday computers, we don't push it to anyone else. Another month with IT, and no issues.
- Departments, one at a time. Our Active Directory has an OU for each department, which makes it easy to roll a policy out in stages.
- Servers. They have their own OU too, and they get the same policy.
What a few years of LAPS has taught us
We've been running LAPS for a few years now, and it's been rock solid. The lessons are mostly about our own processes:
- Make sure the managed account exists. On machines too old for automatic mode, something has to create it. We use a nightly task in our remote monitoring and management (RMM) tool that creates the account on any machine where it's missing.
- The passwords will be ugly. Depending on the complexity rules you set, they can be awful to type. That's great for security, less great when you're recovering a machine at the console. Plan for it.
- Get the password before you remove a computer from the domain. The password lives on the computer's account in Active Directory. Once that account is gone, getting the password back can be difficult.
- Read the FAQ. Microsoft's LAPS FAQ answers most of the questions you'll have.
What's stopping you?
Now that you know what LAPS is, and that it isn't scary, what's stopping you from deploying it? Go make your network more secure.
Checklist
- Remove local admin rights from everyday user accounts, including your own
- Give admins separate admin accounts, and cloud-only accounts for Microsoft 365 admin roles
- Confirm your domain functional level is 2016 or higher, and plan upgrades for Server 2016 domain controllers
- Disable the built-in Administrator account, and manage a custom account with LAPS
- Decide how the account gets created on devices older than Windows 11 24H2 and Server 2025
- Turn on password encryption
- Pilot in a test OU, then IT, then departments and servers
- Decide who can read LAPS passwords, and add "retrieve the password" to your decommissioning process