Skip to content

Account and group exclusions

Some accounts cannot or should not go through the second factor — service accounts, administrative accounts, service workstations. The provider lets you exclude them with two lists:

Entry What it contains
excluded_accounts accounts: name, name with domain (domain\account), or SID
excluded_groups groups: name or SID

Both entries are of type REG_MULTI_SZ, i.e. a list — one account or group per line.

Why a SID, not a name

The names of built-in groups are translated: the same set is Administrators, Administratorzy, or Administratoren, depending on the system language. The SID is the same in every language:

Group SID
Administrators S-1-5-32-544
Remote Desktop Users S-1-5-32-555

A SID entry matches on every system, regardless of language. A name entry works too — the provider resolves it on the machine that checks membership, so the name is translated where it matters.

Global groups

Membership in global (domain) groups cannot be checked locally — you have to ask a domain controller. The excluded_group_controllers list says whom to ask. An empty list does not mean "do not check": the provider then asks the domain locator for the nearest controller. A populated list is an override and decides.

Failure direction

This is the most important thing in this chapter:

When there is no way to check membership — no controller, no network response, a query error — there is no match, so the second factor is still required.

So an infrastructure failure cannot disable authentication. The check works only when it has something to answer with.

A second safeguard: an exclusion does not waive password verification. An excluded account signs in like any other — Windows checks the password through Kerberos, the provider merely stops asking for the second factor.

Scope of exclusions: Windows sign-in versus CredUI

An exclusion is a local credential-provider rule on a particular workstation, not a domain-wide or server-side MFA exemption.

Scenario Behavior for an excluded account
Windows console sign-in (LogonUI) The provider skips MFA; Windows still verifies the password.
Windows session unlock The provider skips MFA; Windows still verifies the password.
CredUI, e.g. RunAs, UAC or an application requesting credentials No password-only credential is returned based on the exclusion. Without completed MFA, access is refused.
RDP with NLA via mstsc on a workstation with AMFA CP The client-side prompt is CredUI. An exclusion on the source workstation cannot authorize handing a password-only credential to mstsc.

This is primarily a mechanism for emergency local sign-in and unlock, not for bypassing MFA in RDP or applications that request credentials.

Why the distinction matters

During local sign-in, the provider submits a credential to Windows for sign-in or unlock. With CredUI, the credential would be returned to the calling application, potentially outside the second-factor boundary. Therefore, a credential authorized only through excluded_accounts or excluded_groups cannot be returned to CredUI unless MFA has been completed.

Example: an excluded account configured on computer A can sign in locally on A without MFA. That does not authorize mstsc running on A to obtain its password to connect to computer B. Authentication behavior on B is a separate matter.

This CredUI restriction is deliberate: WIN-UAC-09 (#668); measured WIN-RDP-14 (#1656). It must not be removed while fixing messages or diagnostics.

What an exclusion does not do

An exclusion works on the provider side: during local sign-in/unlock, it skips the second-factor prompt. It changes nothing in the directory or in the account — it does not disable the account, does not change passwords, does not write any information into the domain.