Why the one credential that should rotate most, rotates least
A service account is the identity an application uses to authenticate — to the directory, to a database, to another service. It has no person behind it, no phone, and nobody to notice when something is wrong. It often holds broad rights, because narrowing them once meant risking an integration. And its password is frequently the oldest secret in the environment.
That is the reverse of what you would want, and it happens for a reason that has nothing to do with laziness.

The same password is in more than one place. It was typed into the application’s configuration at install. Then into a second server when the service scaled out. Then into a scheduled task, a connection string, a backup job, a monitoring check. Nobody kept the list.
Rotating it means changing every copy at once. Miss one and that service fails — maybe immediately, maybe at 2am when the batch job runs. So rotation becomes a coordinated outage with a rollback plan, scheduled for a quiet weekend that keeps getting quieter.
A person’s password expires. A service account’s password is a decision nobody wants to be responsible for making twice.
Microsoft’s group managed service accounts solve exactly this where they fit — the directory rotates the password itself. But they only cover applications that can use them, which leaves the appliance, the third-party product, the in-house system and the cross-domain integration on a password entered at install and untouched since.
You cannot rotate what nobody has listed
Rotation projects usually start in the wrong place: with a list somebody wrote from memory.
Worth knowing why that list is always incomplete. Active Directory has no attribute that marks an account as a service account. It isn’t an object type — it’s a usage pattern. Managed service accounts are the exception and can be identified directly; everything else has to be recognized by the shape it leaves in the directory.
Mirket’s discovery looks for that shape in the same run that finds servers and local accounts. Each account is scored: a managed account, a service principal name, delegation, a password that never expires or has not changed in a year, a name or description that matches your own patterns, an OU where service accounts are kept — set against the signals that mark a person, like an employee ID, a manager, a mailbox, a phone number or a smart-card logon. The weights, the thresholds and the patterns are yours to calibrate, and saving re-scores every run at once.
Some things stay out of reach of a directory-based look: credentials embedded in configuration files, accounts local to individual servers, and the databases that keep their own. Those are found by other means and are worth scoping separately — but the directory-side list is where most estates find more than they expected.
Rotation, and the honest edge of it
Once an account is under management, its password changes on a schedule you set per account — an interval and a time — rather than when somebody is brave enough to run it.
It is worth being straight about coverage. No directory-based approach finds every machine identity in an estate, and not every system can have its password changed the same way. What the platform aims at is the large, reachable middle — the accounts the directory knows about — and an API to extend past it where your environment needs something specific.
Why the password stays frozen
| Why it persists | What’s actually going on |
|---|---|
| The copies aren’t inventoried | The password lives in configurations, scripts and scheduled tasks that were never listed. Rotation is an act of faith that you’ve found them all. |
| One miss is an outage | Every copy has to change together. The first failed rotation teaches the team that the safe move is to leave it alone. |
| gMSA doesn’t reach far enough | The directory can rotate the accounts that support it — the appliance, the third-party product and the legacy application can’t use it, and those hold the oldest passwords. |
| Nobody owns the machine identities | Human accounts have a joiner-mover-leaver process. Service accounts have an installer, and then silence. |
Find the ones that have never rotated
One read-only query, from data your directory already holds. An account with a service principal name is authenticating as a service, and PasswordLastSet is the day someone last touched its secret.
Get-ADUser -Filter {ServicePrincipalName -like '*' -and Enabled -eq $true} `
-Properties ServicePrincipalName, PasswordLastSet, PasswordNeverExpires, LastLogonDate |
Sort-Object PasswordLastSet |
Select-Object SamAccountName, PasswordLastSet, PasswordNeverExpires, LastLogonDateRead the top of that list against today’s date. Where PasswordNeverExpires is set, somebody turned expiry off deliberately — because letting the password lapse would have taken the service down with it.
The number that ends the debate. Take the oldest PasswordLastSet on a privileged service account and count the years. That is how long one leaked configuration file, backup or memory dump has been enough to authenticate as that account.
This query only sees accounts with a service principal name, which is a useful start rather than the whole population — the point of discovery is everything this misses.
Where this sits next to the rest
Rotation answers how old is the secret. It sits alongside two neighbors, and they are not the same question.
LDAP Service Account Security changes what the application is holding in the first place — a virtual credential with no directory account behind it — so that a captured configuration file yields nothing reusable. That is the trust-model answer; rotation is the hygiene one, and they work best together.
Privileged Password Vaulting covers the accounts a person uses, where the question is who has seen the password rather than how long it has been the same.
What changes
| Today | With Mirket |
|---|---|
| The service-account list is written from memory | Discovery proposes candidates from what the directory actually shows |
| The password was set at install and never changed | It changes on a schedule, per account |
| Rotating means finding every copy first | Where the application authenticates through the proxy, there is no copy to find |
| One missed copy is a 2am outage | Rotation is a scheduled operation rather than a change window |
| gMSA covers some accounts; the rest are frozen | The accounts gMSA cannot reach can be brought under management too |
| An unusual system means rotation stops there | An agent you write against the API carries it the last step |
| Nobody owns the machine identities | They are discovered, rotated, scoped and logged in one place |
