autorunsc 14.3 skips all user profiles when run as SYSTEM (works in 14.2)

FD7992 0 Reputation points
2026-11-13T18:29:55.45+00:00

autorunsc64 v14.3, running as NT AUTHORITY\SYSTEM through our remote management tool (NinjaOne), returns no per-user (HKCU) entries. For every profile it prints "Error expanding profile path... ":

Error expanding profile path for NT AUTHORITY\LOCAL SERVICE

Error expanding profile path for NT AUTHORITY\NETWORK SERVICE

Error expanding profile path for NTTS\Dov

Error expanding profile path for NTTS\ybaron

Command: autorunsc64.exe -accepteula -nobanner -a * -s -h *
The result is the same with -a l, with -o before or after the *, and with a named user instead of *.

Previous version 14.2 scans all profiles correctly on the same machine!

Sysinternals
Sysinternals

Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.

0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-13T18:31:26.6966667+00:00

    Continue using a pinned Autorunsc 14.2 binary for SYSTEM-context inventory and report the 14.3 behavior to Microsoft/Sysinternals as a reproducible version-specific regression.

    The command syntax is valid: -a * selects all autostart categories, while the final * selects all user profiles. Microsoft explicitly documents the final * for scanning every profile ^1^. Since 14.2 succeeds on the same machine and 14.3 fails for every profile—including named users—changing switch order or profile selection is not a useful next step.

    Production workaround

    Place 14.2 in a version-specific directory that NinjaOne does not update or overwrite. A separate directory prevents replacement only if the applicable NinjaOne deployment and update policies leave it unchanged.

    The following example:

    • verifies that the pinned executable exists;
    • keeps CSV output separate from diagnostics;
    • preserves Autorunsc’s exit code;
    • returns 2 if the pinned binary is missing.

    Adjust the paths first, and ensure the output directory exists.

    @echo off
    setlocal
    set "EXE=C:\Tools\Sysinternals\Autoruns-14.2\autorunsc64.exe"
    set "OUT=C:\ProgramData\NinjaRMMAgent\autoruns.csv"
    
    if not exist "%EXE%" (
      echo Missing pinned Autorunsc 14.2: "%EXE%" 1>&2
      exit /b 2
    )
    
    "%EXE%" -accepteula -nobanner -a * -s -h -c * >"%OUT%" 2>"%OUT%.err"
    set "RC=%ERRORLEVEL%"
    exit /b %RC%
    

    Do not modify ProfileList, ProfileImagePath, or users’ NTUSER.DAT files as a workaround. The same profiles work with 14.2, so the available evidence does not establish damaged Windows profiles.

    Confirm and capture the regression

    Run one controlled test outside NinjaOne under SYSTEM. This separates Autorunsc behavior from any RMM-specific environment handling.

    Capture the following for both 14.2 and 14.3:

    $files = @(
      'C:\Tools\Sysinternals\Autoruns-14.2\autorunsc64.exe',
      'C:\Tools\Sysinternals\Autoruns-14.3\autorunsc64.exe'
    )
    Get-Item $files | Select-Object FullName,
      @{N='Version';E={$_.VersionInfo.FileVersion}},
      Length, LastWriteTime
    Get-FileHash $files -Algorithm SHA256
    

    Also record:

    • Exact command line and execution identity (NT AUTHORITY\SYSTEM).
    • Windows edition and build.
    • Standard output, standard error, and exit code from each version.
    • Whether both versions came from the same Microsoft download package.
    • Confirmation that 14.3 also reproduces outside NinjaOne.

    Version 14.3 changed Autorunsc to align its capabilities with the GUI, in addition to bug fixes, so the version boundary is relevant to the report ^2^.

    Process Monitor evidence

    If Microsoft requests deeper diagnostics, capture both executions with Process Monitor:

    1. Start Process Monitor as administrator.
    2. Add a filter: Process Name is autorunsc64.exe → Include.
    3. Clear existing events.
    4. Run 14.3 as SYSTEM and reproduce the messages.
    5. Stop capture and save All events in native PML format.
    6. Repeat separately with 14.2.

    Process Monitor records Registry and file-system operations, process identity, command line, user/session details, results, and thread stacks, making the paired traces suitable for finding the operation that differs between releases ^3^.

    Escalation

    Only Microsoft/Sysinternals can diagnose and correct an underlying Autorunsc 14.3 defect. Report it through a Microsoft support case or the official Microsoft Q&A Sysinternals channel, attaching:

    • 14.2 and 14.3 output/error files;
    • both file versions and SHA-256 hashes;
    • Windows build;
    • exact SYSTEM launch method;
    • reproduction result outside NinjaOne;
    • paired Process Monitor PML files.

    No official release note currently identifies Error expanding profile path as a known 14.3 issue. Therefore, describe it as a reproducible suspected regression rather than a confirmed known bug.


    References

    1. Autoruns v14.3
    2. Autoruns, ZoomIt, Coreinfo, DebugView, LiveKd, ProcDump for Linux ...
    3. Process Monitor - Sysinternals | Microsoft Learn
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.