Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I suggest a slightly different approach. Replacing <code>utilman.exe</code> or basically anything in the <code>system32</code> folder isn't a good idea, since you can't really know what the OS is doing with them in the background (e.g. checking hashsums, expecting specific output etc.).<br> There's a better way to replace Utilman by any executable you want without the need to manipulate any files in the Windows folder: The registry provides an option called <code>Image File Execution Options</code>. This basically lets you replace an exe by name. While this could be problematic with non-unique names, I believe running into trouble with <code>utilman.exe</code> is less likely. </p> <p><strong>1) Compile your script</strong> anywhere you want. I suggest using the following code as a basis:</p> <pre><code>Sleep, 1000 ; Here's what you want to do/run instead of cmd: Run, calc.exe ExitApp m:: Run, % comspec ExitApp return </code></pre> <p><strong>2) In the registry</strong>, go to:<br> <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options</code></p> <p><strong>3) Add a new key</strong> called <code>utilman.exe</code> (in the folder view on the left), and in it, add a key called <code>Debugger</code>. Set its value to the path in double quotes of the exe you'd like to run instead, e.g. <code>"C:\some\file.exe"</code>. It will look like this (sorry for the German): <img src="https://i.stack.imgur.com/vazrP.png" alt="Registry"></p> <p>Your replacement will now run whenever an executable called <code>utilman.exe</code> is started.</p> <p><strong>4) Click the ease of access button</strong>. CMD will open when you hold down <kbd>M</kbd> before you click as well as when you press it just after the click. Modify the <code>Sleep</code> in the script above to rule how long to wait for the key press.</p> <h1><strong>Update:</strong></h1> <p>I get your problem now. From the lock screen, it just doesn't seem to work. Interestingly enough, you aren't even able to open the control panel or anything similar from the Windows standard functions (like opening <em>My Computer</em>) when you're in the lockscreen. I tried the following from cmd while locked: open explorer.exe, click on the appearing start menu, open control panel. I also opened internet explorer from the start menu and pressed <kbd>F1</kbd>.<br> After a while, there just comes a weird error message that says freely translated: <em>"Starting the server failed"</em>.<br> Running ease of access can be achieved in severval ways, excluding your way I tried: </p> <pre><code>Run, control.exe /name Microsoft.EaseOfAccessCenter </code></pre> <p>and</p> <pre><code>Run rundll32.exe shell32.dll`,Control_RunDLL access.cpl </code></pre> <p>Both work while logged in, but none of them work while the screen is locked, triggering the <em>server start error</em>. Unfortunately, I'm at my wit's end here. Maybe someone else has an idea...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload