Skip to main content
    All posts
    Intune
    SYSTEM Context
    HKCU
    Win32 App
    MSI

    Intune Win32 Settings Missing After Install? HKCU and AppData Under SYSTEM (2026)

    Andrew MartyNovember 17, 20266 min read

    Intune reports the Win32 app as "Installed," detection passes, and the user still opens the app to find no license, no default settings and no shortcut. The installer ran as SYSTEM, so every HKCU write and every %APPDATA% file went to the SYSTEM profile (or a temporary hive) instead of the person who actually uses the PC. Nothing failed, so nothing was logged as an error.

    This article explains where per-user data really lands during a SYSTEM-context install, why EXE installers get it wrong, and how to deploy per-user configuration without a fragile wrapper script.

    Fast Verdict Matrix

    BehaviorLegacy EXE BehaviorMSI Behavior
    HKCU writes under SYSTEMWritten to HKU\.DEFAULT / the SYSTEM profile. The signed-in user never sees them, and the installer still exits 0.Per-user data is authored as an Active Setup or advertised-component action that runs for each user at first sign-in.
    %APPDATA% and %LOCALAPPDATA% filesExpand to C:\Windows\System32\config\systemprofile\AppData. Files are created, but in a profile nobody signs in to.Machine files go to Program Files; per-user seeds are applied by a first-run component, not by the installer process.
    New users after installGet nothing. The one-time install-time write never repeats for later profiles.Per-user component keyed to a version stamp runs once for every new profile.
    Detection resultA file or HKLM rule passes, hiding the missing per-user data.Product-code detection passes and the per-user step is verifiable separately.

    The Rule of Thumb

    • Under SYSTEM, "current user" means SYSTEM. Anything the installer writes to HKCU, %APPDATA% or %USERPROFILE% belongs to the wrong account.
    • Install per machine, configure per user at sign-in. Put binaries and defaults in machine scope, then apply per-user state when each user first signs in.

    The Fix: Separate Machine and User Scope

    The usual workaround is a PSAppDeployToolkit script that loads each user's hive with reg load, loops over C:\Users, and copies files into every profile. It works until a profile is locked, roaming or created after the deployment, and you own that script for every application.

    InstallMage converts the EXE into a native MSI that installs per machine and keeps per-user state out of the install process. The package uses Windows Installer's own mechanisms for first-run work, so there is no hive loading and no profile loop to maintain. You deploy it as a standard SYSTEM-context Win32 app with product-code detection, and the result is the same on the first user and the five-hundredth.

    Deep Dive

    Where HKCU Really Goes Under SYSTEM

    The Intune Management Extension launches the install as NT AUTHORITY\SYSTEM. For that token, HKCU maps to HKEY_USERS\.DEFAULT, and %APPDATA% resolves under C:\Windows\System32\config\systemprofile. You can prove it from an elevated session with PsExec:

    psexec -s -i cmd.exe
    reg add "HKCU\Software\Contoso\App" /v Licensed /t REG_DWORD /d 1
    reg query "HKU\.DEFAULT\Software\Contoso\App"
    echo %APPDATA%

    The value shows up under .DEFAULT, and the user's own HKCU\Software\Contoso\App stays empty. The exit code is still 0, which is why Intune cannot flag the problem.

    Why EXE Installers Get It Wrong

    Many vendor installers were written for an interactive admin who is also the end user. Inno Setup scripts with PrivilegesRequired=admin and NSIS scripts using SetShellVarContext current write to the current profile of whoever runs them. Run under SYSTEM, that profile is the wrong one. Some installers compound it by launching the app once at the end to "finish setup," which initializes first-run state in the SYSTEM profile and leaves the real user with an uninitialized one. Check the IME log at C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log and you will see a clean exit and nothing else.

    First Run, New Profiles and Detection

    Windows Installer handles per-user state by deferring it to the user's own session, either through Active Setup style version stamps under HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components or advertised components that self-heal on first launch. Both run in the user's context, so HKCU and %APPDATA% resolve correctly, and a version bump re-applies the change after an update. Keep your detection rule on machine-scope evidence, such as the MSI product code, and treat per-user configuration as a separate, checkable layer. For the context trade-offs see System vs User context and per-machine vs per-user installs.

    Frequently Asked Questions

    Why are my HKCU registry settings missing after an Intune Win32 install?

    The install ran as SYSTEM, so HKCU pointed at HKEY_USERS\.DEFAULT instead of the signed-in user's hive. Confirm with reg query on HKU\.DEFAULT, then move the per-user write to a sign-in-time step.

    Should I switch the Intune app to User context to fix this?

    Usually not. User context fails when the installer needs admin rights, and it installs the app separately for each user. A per-machine install with a per-user first-run step keeps admin rights where needed and user data where it belongs.

    How do I apply per-user settings for users who sign in later?

    Use Active Setup or a Windows Installer per-user component with a version stamp, so the change runs once for every new profile and again after each update. InstallMage generates this structure when it converts your EXE to MSI.

    Keep reading