Autoruns is missing services with very long paths

David Tapuchi 0 Reputation points
2026-11-05T23:14:20.16+00:00

I was running Autoruns to confirm no unexpected services, and I noticed the Screenconnect instance I was connected through, is not in the list.

Creating a new service with a long path gives the same result. Considering that Screenconnect is commonly abused, seeing Screenconnect services is important.

I'm 99% sure I've seen Screenconnect in Autoruns before, so what changed now? Is it a change in Windows?

The following reproduces the behavior with a test service (thanks, Claude):
$long = 'x' * 3000

New-Service -Name 'ZZLongPathTest' -BinaryPathName ""C:\Windows\System32\notepad.exe" $long" -StartupType Automatic

.\autorunsc64.exe -accepteula -nobanner -a s -ct | sls ZZLongPathTest

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. MotoX80 37,951 Reputation points
    2026-11-13T18:52:37.1966667+00:00

    Is it the path to the executable or the length of the command line arguments?

    It works for me on Win11, PS 5.1, Autoruns v13.91, 4000 characters.

    I had to add extra quotes to the binpathname.

    sc.exe delete ZZLongPathTest
    $long = 'x' * 4000
    New-Service -Name 'ZZLongPathTest' -BinaryPathName """C:\Windows\System32\notepad.exe"" $long" -StartupType Automatic
    autorunsc64.exe | sls autoruns
    autorunsc64.exe -accepteula -nobanner -a s -ct | sls ZZLongPathTest
    

    I tried to add a screen snip like I normally do, but it reports "failed". Maybe a hangover all the problems MS had yesterday.

    PS C:\temp> sc.exe delete ZZLongPathTest
    [SC] DeleteService SUCCESS
    PS C:\temp> $long = 'x' * 4000
    PS C:\temp> New-Service -Name 'ZZLongPathTest' -BinaryPathName """C:\Windows\System32\notepad.exe"" $long" -StartupType Automatic
    Status   Name               DisplayName
    ------   ----               -----------
    Stopped  ZZLongPathTest     ZZLongPathTest
    PS C:\temp> autorunsc64.exe | sls autoruns
    Sysinternals Autoruns v13.91 - Autostart program viewer
    PS C:\temp> autorunsc64.exe -accepteula -nobanner -a s -ct | sls ZZLongPathTest
    9/16/2018 12:58 AM      HKLM\System\CurrentControlSet\Services  ZZLongPathTest  enabled Services        System-wide     ZZLongPathTest: Notepad Microsoft Corporation
    c:\windows\system32\notepad.exe 10.0.26100.9818 ""C:\Windows\System32\notepad.exe"" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

    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.