-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows terminal (as well as windows terminal preview) only runs in admin mode #14788
Comments
Same thing happened to me with latest versions of WT and WT Preview. Never happened in earlier versions. Considering WT was updated 2 weeks ago, and worked fine last week, I suspect a compatibility problem with latest version of Win11 insiders build 25290.1000, which was released 3 days ago, roughly when the problem started for me. |
UPD: after disabling the option "run this profile as an administrator" in the wt settings (as well as wt preview), it turns out to run like normal programs. but if you turn on the "run this profile as an administrator" option again, then wt (as well as wt preview) does not start again |
For me running as admin also won't work. A window shows, but is stuck there for several secs, then crashes. |
Ruh roh, looks like #14637 must have actually broken some scenarios, despite fixing some other ones. That's no good. See also #14729, https://github.com/microsoft/terminal/releases/tag/v1.16.10261.0 I honestly don't know how to go about debugging this one. The last time we hit this, it was a loader issue, that was solved by calling into Actually, that's somewhere to start I suppose. If you go to File Explorer, type
|
yes, windows terminal (preview version also) are present here |
Team discussion thoughts: We need to keep these issues separate.
The first goes through (more here notes as we noodle...) |
This sounds like #13928 If you're running under the Administrator account (and maybe other account types?), using the When you remove the If you see this; then you are not running with administrative privileges (seems to disprove my hypothesis)
However, if you see this, then you are running with administrative privileges; despite not setting
Note; you can also the change the setting to |
now I have if i change when i change the value to "elevate": true in default profile or in powershell profile itself then wt doesn't start normally again, only run as administrator. the if I turn off the "run as profile as administrator" option for the default profile and leave the "run as profile as administrator" option for the powershell profile itself in the wt settings via the GUI, then nothing will change, wt will not start again. but if I specify |
Wait could you clarify/? In the first screenshot it looks like (defaults.elevate: false, powershell.elevate:true), and it looks like it's working just fine. But then right after that you mention:
Which sounds like the opposite is true. |
perhaps in the previous comments indicated something wrong. Now checked again. the windows terminal starts as a normal program (without the need to run as administrator) if you turn off the "run as administrator" option in the GUI settings: the settings.json file at this point looks like this: if I specify: "elevate": true" in settings.json in the default profile, and in PowerShell settings I specify "elevate": false", then I can run wt as a normal program. But if I specify "elevate": true" in the PowerShell settings, then again I can't run wt as a normal program. I'd like my default profile - PowerShell to run as administrator when starting wt, but so that I don't have to run wt, always as administrator. |
one more observation: when i specify "elevate": true" in settings.json in the default profile, then i can run wt as a normal program, but then wsl doesn't start. If i run wt as administrator, then wsl starts. if I specify "elevate": true" in settings.json in the default profile, then wsl is started. |
Ah okay, thanks for the clarification. This does look like it's /dup #13928 then after all |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Windows Terminal version
1.17.1023 (preview) & 1.16.10261.0
Windows build number
10.0.22000.1455
Other Software
No response
Steps to reproduce
windows terminal (as well as windows terminal preview) only runs in admin mode
windows terminal (as well as windows terminal preview) does not start in normal mode - when you click on the icon in the taskbar or when you run it from the power run field (a utility from the powertoys package) or when you use the
wt.exe
command on the command line or when you run it from WIN + R (wt.exe) - nothing happening.it is possible to launch windows terminal (as well as windows terminal preview) only if you run it in administrator mode - either select this option in the taskbar, or from the power run field.
Expected Behavior
windows terminal (as well as windows terminal preview) run like regular windows programs without having to run them in administrator mode
Actual Behavior
when you click on the icon in the taskbar or when you run it from the power run field (a utility from the powertoys package) or when you use the wt.exe command on the command line or when you run it from WIN + R (wt.exe) - nothing happening.
it is possible to launch windows terminal only if you run it in administrator mode - either select this option in the taskbar, or from the power run field
The text was updated successfully, but these errors were encountered: