Installation and upgrade¶
The installer is an MSI package. It carries the credential provider, the filter and the translation files; nothing else has to be installed alongside.
Requirements¶
| Item | Requirement |
|---|---|
| System | Windows 10, Windows 11 or Windows Server (logon, unlock, RDP sessions, CredUI/UAC prompts) |
| Rights | administrator on the machine |
| Deployment data | address of the AMFA server and the realm the machine should use |
| FIDO2 key | only if the deployment uses key-based logon |
| Side libraries | none — the provider is built with a static CRT and a static libfido2, so it needs neither a Visual C++ package nor fido2.dll; the MSI carries two DLLs and the translations |
The provider works in every scenario where LogonUI creates its own window: logon, unlock, RDP sessions and CredUI prompts (UAC, “Run as”, signing PIN prompts).
Interactive installation¶
- Run
AMITRONICWindowsMFACredentialProviderSetup.msion the target machine. - Enter the server address (with an optional path), the realm, the identity format, the excluded accounts and
groups and the domain controllers; choose whether to enable the filter and which scenarios to gate. The
interface language (
LANGUAGE, by defaultpl) and the logon mode (password) are fixed values — the wizard shows them, it does not collect them. - Finish the installation and sign out (LogonUI keeps the DLL in memory until the next session starts).
After installation, verify that the provider really works — a clean build proves nothing; the order of checks is in Troubleshooting, section “Proof after installation”.
Silent installation¶
msiexec /i AMITRONICWindowsMFACredentialProviderSetup.msi /qn HOSTNAME=<server> APPLIANCE_URL=<https://amfa.example> DEFAULT_REALM=<realm> LANGUAGE=en
Installer properties map to the registry values:
| MSI property | Registry value |
|---|---|
HOSTNAME |
amfa_auth |
APPLIANCE_URL |
amfa_server |
CPUS_LOGON |
windows_logon |
CPUS_UNLOCK |
windows_unlock |
CPUS_CREDUI |
windows_credui |
DEFAULT_REALM |
amfa_realm |
LANGUAGE |
ui_language |
AUTH_MODE |
auth_mode |
LOG_LEVEL |
log_level |
IDENTITY_FORMAT |
identity_format |
ENABLE_FILTER |
windows_filter |
EXCLUDED_ACCOUNTS |
excluded_accounts |
EXCLUDED_GROUPS |
excluded_groups |
EXCLUDED_GROUP_CONTROLLERS |
excluded_group_controllers |
LOCALES_PATH |
locales_path |
What every value means: Configuration.
What the installer writes¶
- Product settings under
HKLM\SOFTWARE\AMITRONIC\AMFAplus therealm-mappingsubkey — but only on a machine that has noamfa_realmyet. Upgrade, repair and reinstall leave an existing deployment configuration untouched, and uninstalling does not remove it. - COM registration of provider and filter under
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{…}and…\Credential Provider Filters\{…}.
Upgrade¶
- The installer replaces the package in place (
MajorUpgrade) and, apart from a normal upgrade, accepts a rebuild with the same version number (AllowSameVersionUpgrades). Installing a version older than the installed one is refused —AllowDowngrades="no"and thePreventDowngradingaction block the downgrade. - Deployment settings stay; fresh values are written only on a machine without
amfa_realm. - The product code (the one used by
msiexec /x) changes with every rebuild of the package, so read it from the registry instead of from documentation:
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*' |
Where-Object DisplayName -like '*AMITRONIC*' |
Select-Object DisplayName, DisplayVersion, PSChildName
Uninstalling¶
Uninstalling leaves the deployment configuration in the registry — the AmfaSettings component is permanent
and MSI does not remove it. Keep a copy of the configuration in case you need it after a reinstall; uninstalling
deletes nothing. Restart the computer after uninstalling —
LogonUI releases the DLL only when the session starts again.
Safety net when rolling out to workstations¶
Before rolling out to every machine, install the package on one and put a local account into
exclusions (excluded_accounts). Such an account signs in without the second factor
at the console and at unlock (see surfaces),
which keeps a way in when the configuration goes wrong — also when there is no network.