Opening "elevate-shim.exe" causes Computer to glitch #22401

Closed
opened 2026-01-31 08:12:08 +00:00 by claunia · 10 comments
Owner

Originally created by @ghost on GitHub (Oct 15, 2024).

Windows Terminal version

1.21.2701.0

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

It looks like a regression, this bug has been reported before in #16009

  1. In Windows Explorer, double-click on "elevate-shim.exe".
  2. In the UAC prompt window, click "Yes" to grant permissions.

Expected Behavior

No response

Actual Behavior

Same as #16009

Originally created by @ghost on GitHub (Oct 15, 2024). ### Windows Terminal version 1.21.2701.0 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce It looks like a regression, this bug has been reported before in #16009 1. In Windows Explorer, double-click on "elevate-shim.exe". 2. In the UAC prompt window, click "Yes" to grant permissions. ### Expected Behavior _No response_ ### Actual Behavior Same as #16009
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:12:08 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 15, 2024):

Thanks for filing!

As a note, elevate-shim is an implementation detail. It is not intended to be run directly.

@DHowett commented on GitHub (Oct 15, 2024): Thanks for filing! As a note, elevate-shim is an implementation detail. It is not intended to be run directly.
Author
Owner

@Zeroes1 commented on GitHub (Oct 15, 2024):

@DHowett If a person accidentally launched it, then now he should suffer? :)

@Zeroes1 commented on GitHub (Oct 15, 2024): @DHowett If a person accidentally launched it, then now he should suffer? :)
Author
Owner

@DHowett commented on GitHub (Oct 15, 2024):

Yyyyes? People who launch random EXE files with reckless abandon can learn not to do so! 😁

@DHowett commented on GitHub (Oct 15, 2024): Yyyyes? People who launch random EXE files with reckless abandon _can_ learn not to do so! 😁
Author
Owner

@lhecker commented on GitHub (Oct 15, 2024):

I suspect this was fixed by #15327 because it fixed the argument passing.

@lhecker commented on GitHub (Oct 15, 2024): I suspect this was fixed by #15327 because it fixed the argument passing.
Author
Owner

@Zeroes1 commented on GitHub (Oct 16, 2024):

@DHowett @lhecker

As a note, elevate-shim is an implementation detail. It is not intended to be run directly.

Why not use a file without the EXE extension for this? for example elevate-shim.run ?
You run elevate-shim with CreateProcessW (no need EXE extension for start process)

@Zeroes1 commented on GitHub (Oct 16, 2024): @DHowett @lhecker >As a note, elevate-shim is an implementation detail. It is not intended to be run directly. Why not use a file without the EXE extension for this? for example elevate-shim.run ? You run elevate-shim with CreateProcessW (no need EXE extension for start process)
Author
Owner

@Zeroes1 commented on GitHub (Oct 16, 2024):

@lhecker

TEST:
if user manually run elevate-shim.exe

terminal-1.21.2701.0 [latest release] - problem
terminal-1.22.2702.0 [latest preview] - no problem
terminal-1.23.2891.0 [latest canary] - no problem

in next version release will be OK?

@Zeroes1 commented on GitHub (Oct 16, 2024): @lhecker TEST: if user manually run elevate-shim.exe terminal-1.21.2701.0 [latest release] - problem terminal-1.22.2702.0 [latest preview] - no problem terminal-1.23.2891.0 [latest canary] - no problem in next version release will be OK?
Author
Owner

@lhecker commented on GitHub (Oct 16, 2024):

Yeah, sounds like it was fixed in that PR then. Thanks for testing this!

Why not use a file without the EXE extension for this? for example elevate-shim.run ?

If this issue comes up more often in the future we could explore that idea. 🙂

@lhecker commented on GitHub (Oct 16, 2024): Yeah, sounds like it was fixed in that PR then. Thanks for testing this! > Why not use a file without the EXE extension for this? for example elevate-shim.run ? If this issue comes up more often in the future we could explore that idea. 🙂
Author
Owner

@Sinazrp commented on GitHub (Jan 5, 2025):

I have same problem and I am in middle of installing something important

@Sinazrp commented on GitHub (Jan 5, 2025): I have same problem and I am in middle of installing something important
Author
Owner

@zadjii-msft commented on GitHub (Jan 5, 2025):

A question: why are you directly running elevate-shim? It is an internal helper tool. There's literally no reason to run that yourself directly, right?

@zadjii-msft commented on GitHub (Jan 5, 2025): A question: why are you directly running `elevate-shim`? It is an internal helper tool. There's literally no reason to run that yourself directly, _right_?
Author
Owner

@Sinazrp commented on GitHub (Jan 6, 2025):

Why would a Microsoft-produced application include an executable file that behaves in a way similar to a virus? Why is there an unnecessary .exe file included? I don’t randomly click on executable files, but this is a Microsoft product—I thought we could trust Microsoft. Why is the responsibility being shifted to users instead of addressing this by modifying or removing that .exe file?

@Sinazrp commented on GitHub (Jan 6, 2025): Why would a Microsoft-produced application include an executable file that behaves in a way similar to a virus? Why is there an unnecessary .exe file included? I don’t randomly click on executable files, but this is a Microsoft product—I thought we could trust Microsoft. Why is the responsibility being shifted to users instead of addressing this by modifying or removing that .exe file?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22401