wt Command does not open windows terminal #4862

Closed
opened 2026-01-30 23:58:25 +00:00 by claunia · 16 comments
Owner

Originally created by @stef011 on GitHub (Nov 8, 2019).

Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0



Steps to reproduce

Just update WT I think...

Expected behavior

Opens Windows Terminal

Actual behavior

Nothing, just a error saying this command does not exist.

wt : Le terme «wt» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme
exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct
et réessayez.
Au caractère Ligne:1 : 1
+ wt
+ ~~
    + CategoryInfo          : ObjectNotFound: (wt:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Originally created by @stef011 on GitHub (Nov 8, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0 ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> Just update WT I think... # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Opens Windows Terminal # Actual behavior <!-- What's actually happening? --> Nothing, just a error saying this command does not exist. ```none wt : Le terme «wt» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez. Au caractère Ligne:1 : 1 + wt + ~~ + CategoryInfo : ObjectNotFound: (wt:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException ```
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Author-FeedbackProduct-Terminal labels 2026-01-30 23:58:25 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2019):

@stef011 Did you install the terminal from the store? Or from another source (chocolatey, .msix directly from github)?

You can find the version number in the "About" dialog:

image

I know I've seen this before where the execution aliases of the WSL distros can just disappear sometimes.

Is wt in C:\Users\<your username>\AppData\Local\Microsoft\WindowsApps?

@zadjii-msft commented on GitHub (Nov 8, 2019): @stef011 Did you install the terminal from the store? Or from another source (chocolatey, `.msix` directly from github)? You can find the version number in the "About" dialog: ![image](https://user-images.githubusercontent.com/18356694/68480497-974bcb00-01fa-11ea-857a-29ad762cbe30.png) I know I've seen this before where the execution aliases of the WSL distros can just _disappear_ sometimes. Is `wt` in `C:\Users\<your username>\AppData\Local\Microsoft\WindowsApps`?
Author
Owner

@stef011 commented on GitHub (Nov 8, 2019):

So, about six month ago, I installed it myself from GitHub, last week, I re-installed it with the windows store, to get back a clean config.json.

I restarted my computer few times during this last week and everything just worked fine until yesterday (I use it literally every day in atom or VSC with open terminal here).

So I can't see anything else than a little mysterious auto-update.

Here is the wt.exe, if I just add WindowsApps to my path it will probably fix it, thank you, but I hope I'm not the only one to have that issue...

image

PS: thank you for the WT version and sorry for the French UI ;)

Update

WindowsApps is already in my path !?
image

BUT I have no USERPROFILE in my variables...
image

Update number 2 (yeah sorry that's not pretty...)

So I checked the versions and no updates since 16 days, so two options :

  1. Updates are delayed on the Windows Store
  2. I'm just too stupid and I changed something on my computer... (most likely...)
@stef011 commented on GitHub (Nov 8, 2019): So, about six month ago, I installed it myself from GitHub, last week, I re-installed it with the windows store, to get back a clean config.json. I restarted my computer few times during this last week and everything just worked fine until yesterday (I use it literally every day in atom or VSC with open terminal here). So I can't see anything else than a little mysterious auto-update. Here is the `wt.exe`, if I just add `WindowsApps` to my path it will probably fix it, thank you, but I hope I'm not the only one to have that issue... ![image](https://user-images.githubusercontent.com/3099695/68510711-7d4ece80-0274-11ea-93b5-19599e1fd3a5.png) PS: thank you for the WT version and sorry for the French UI ;) ## Update `WindowsApps` is already in my path !? ![image](https://user-images.githubusercontent.com/3099695/68511136-8b511f00-0275-11ea-84a5-3c8c9a011e64.png) BUT I have no `USERPROFILE` in my variables... ![image](https://user-images.githubusercontent.com/3099695/68511384-2518cc00-0276-11ea-9ade-ddd03db7ff97.png) ## Update number 2 (yeah sorry that's not pretty...) So I checked the versions and no updates since 16 days, so two options : 1. Updates are delayed on the Windows Store 2. I'm just too stupid and I changed something on my computer... (most likely...)
Author
Owner

@DHowett-MSFT commented on GitHub (Nov 9, 2019):

There's a settings page, "Manage app execution aliases", which lets you configure which aliases you can use. Mine looks like this:

image

image

You can get there through "Apps & features". Would you mind checking your Windows Terminal entry/entries?

@DHowett-MSFT commented on GitHub (Nov 9, 2019): There's a settings page, "Manage app execution aliases", which lets you configure which aliases you can use. Mine looks like this: ![image](https://user-images.githubusercontent.com/14316954/68534700-3ef4f600-02ec-11ea-8038-b4495f84726f.png) ![image](https://user-images.githubusercontent.com/14316954/68534704-43211380-02ec-11ea-911a-faa5047a35f5.png) You can get there through "Apps & features". Would you mind checking your Windows Terminal entry/entries?
Author
Owner

@stef011 commented on GitHub (Nov 10, 2019):

Again, everything looks fine, Windows Terminal (Preview) is checked as below...
image

I discovered (by mistake) that, when I type wt in an admin console, it launches wt properly...
And after testing, none of the applications in my aliases works when not in admin... 🤔

Admin :
admin

Not Admin :
notadmin

@stef011 commented on GitHub (Nov 10, 2019): Again, everything looks fine, `Windows Terminal (Preview)` is checked as below... ![image](https://user-images.githubusercontent.com/3099695/68541417-85eff380-039f-11ea-862d-bc2216373b52.png) I discovered (by mistake) that, when I type `wt` in an admin console, it launches wt properly... And after testing, none of the applications in my aliases works when not in admin... 🤔 Admin : ![admin](https://user-images.githubusercontent.com/3099695/68541513-bf752e80-03a0-11ea-8b54-5639837b44cb.gif) Not Admin : ![notadmin](https://user-images.githubusercontent.com/3099695/68541552-209d0200-03a1-11ea-925e-636828b7be12.gif)
Author
Owner

@Luuk34 commented on GitHub (Nov 10, 2019):

Try 'Advanded Options', it has a 'RESET' option...
AdvancedOptions

@Luuk34 commented on GitHub (Nov 10, 2019): Try 'Advanded Options', it has a 'RESET' option... ![AdvancedOptions](https://user-images.githubusercontent.com/7850737/68541810-48419980-03a4-11ea-888e-5fdd8bed0f85.jpg)
Author
Owner

@stef011 commented on GitHub (Nov 10, 2019):

Sorry @Luuk34 but this doesn't work either...

I started a sfc /scannow I think the problem is not from windows terminal...

Update

Nothing to do... I found that windows insider program can generate these kind of issues, I will try to update windows and we will see...

@stef011 commented on GitHub (Nov 10, 2019): Sorry @Luuk34 but this doesn't work either... I started a `sfc /scannow` I think the problem is not from windows terminal... ### Update Nothing to do... I found that windows insider program can generate these kind of issues, I will try to update windows and we will see...
Author
Owner

@stef011 commented on GitHub (Nov 10, 2019):

OKAY !
Many cleaning tools later I figured it out !

BUT I have no USERPROFILE in my variables...

This was the main error, I don't know how, but the USERPROFILE var was deleted, I added it back like this :

image

And miracle ! It works, wt and everything else...

Thank you very much for your help ! 😄

Now I feel like I'm really dumb... 🤓

@stef011 commented on GitHub (Nov 10, 2019): OKAY ! Many cleaning tools later I figured it out ! > BUT I have no `USERPROFILE` in my variables... This was the main error, I don't know how, but the `USERPROFILE` var was deleted, I added it back like this : ![image](https://user-images.githubusercontent.com/3099695/68542529-b9397f00-03ad-11ea-8cae-e20e84d94c11.png) And miracle ! It works, wt and everything else... Thank you very much for your help ! 😄 Now I feel like I'm really dumb... 🤓
Author
Owner

@arenshaee commented on GitHub (May 22, 2020):

@stef011 Did you install the terminal from the store? Or from another source (chocolatey, .msix directly from github)?

You can find the version number in the "About" dialog:

image

I know I've seen this before where the execution aliases of the WSL distros can just disappear sometimes.

Is wt in C:\Users\<your username>\AppData\Local\Microsoft\WindowsApps?

I just needed to add WindowsApps path to PATH variable manually. Thanks alot :)

@arenshaee commented on GitHub (May 22, 2020): > @stef011 Did you install the terminal from the store? Or from another source (chocolatey, `.msix` directly from github)? > > You can find the version number in the "About" dialog: > > ![image](https://user-images.githubusercontent.com/18356694/68480497-974bcb00-01fa-11ea-857a-29ad762cbe30.png) > > I know I've seen this before where the execution aliases of the WSL distros can just _disappear_ sometimes. > > Is `wt` in `C:\Users\<your username>\AppData\Local\Microsoft\WindowsApps`? I just needed to add WindowsApps path to PATH variable manually. Thanks alot :)
Author
Owner

@HO-pilo-studios commented on GitHub (Jun 8, 2020):

for me is not working it saying "this file cannot accessed by the system"

@HO-pilo-studios commented on GitHub (Jun 8, 2020): for me is not working it saying "this file cannot accessed by the system"
Author
Owner

@zadjii-msft commented on GitHub (Jun 10, 2020):

Okay so I'm scanning through this thread and it seems to me like this issue is something that's a strange intermittent platform issue. Sometimes app execution aliases just plain don't work - I've had it happen with the ubuntu alias a few times in the past with no real cause.

@stef011 You seemed to have resolved this on your own - is there a specific reason you reopened this?

@zadjii-msft commented on GitHub (Jun 10, 2020): Okay so I'm scanning through this thread and it seems to me like this issue is something that's a strange intermittent platform issue. Sometimes app execution aliases just plain don't work - I've had it happen with the `ubuntu` alias a few times in the past with no real cause. @stef011 You seemed to have resolved this on your own - is there a specific reason you reopened this?
Author
Owner

@stef011 commented on GitHub (Jun 11, 2020):

@stef011 You seemed to have resolved this on your own - is there a specific reason you reopened this?

Sorry I thought HO-pilo-studios needed more help, so I reopened this Issue, I wanted to reply, but I forgot to do it...

for me is not working it saying "this file cannot accessed by the system"

@HO-pilo-studios Can you better describe your problem, maybe send some screens or try to use the path to wt.exe instead and see if you have the same issue ?

@stef011 commented on GitHub (Jun 11, 2020): > @stef011 You seemed to have resolved this on your own - is there a specific reason you reopened this? Sorry I thought HO-pilo-studios needed more help, so I reopened this Issue, I wanted to reply, but I forgot to do it... > for me is not working it saying "this file cannot accessed by the system" @HO-pilo-studios Can you better describe your problem, maybe send some screens or try to use the path to wt.exe instead and see if you have the same issue ?
Author
Owner

@ghost commented on GitHub (Jun 20, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Jun 20, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@garyng commented on GitHub (May 29, 2021):

I bumped into this issue as well after Windows Terminal was updated.

Repairing the app from App & features works for me:
image

Make sure %USERPROFILE%\AppData\Local\Microsoft\WindowsApps is in PATH too.

@garyng commented on GitHub (May 29, 2021): I bumped into this issue as well after Windows Terminal was updated. Repairing the app from App & features works for me: ![image](https://user-images.githubusercontent.com/4453664/120081288-8968de00-c0ef-11eb-81c1-932ea31536bf.png) Make sure `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps` is in PATH too.
Author
Owner

@palenshus commented on GitHub (Jun 2, 2021):

This just happened to me too, and Repairing the app fixed the problem

@palenshus commented on GitHub (Jun 2, 2021): This just happened to me too, and Repairing the app fixed the problem
Author
Owner

@nrrpinto commented on GitHub (Jun 3, 2021):

OKAY !
Many cleaning tools later I figured it out !

BUT I have no USERPROFILE in my variables...

This was the main error, I don't know how, but the USERPROFILE var was deleted, I added it back like this :

image

And miracle ! It works, wt and everything else...

Thank you very much for your help ! 😄

Now I feel like I'm really dumb... 🤓

Thanks so much for the tip. It solved my issue.

No, you are no dumb, Microsoft is! Or who ever creates this kind of rules.

@nrrpinto commented on GitHub (Jun 3, 2021): > > > OKAY ! > Many cleaning tools later I figured it out ! > > > BUT I have no `USERPROFILE` in my variables... > > This was the main error, I don't know how, but the `USERPROFILE` var was deleted, I added it back like this : > > ![image](https://user-images.githubusercontent.com/3099695/68542529-b9397f00-03ad-11ea-8cae-e20e84d94c11.png) > > And miracle ! It works, wt and everything else... > > Thank you very much for your help ! 😄 > > Now I feel like I'm really dumb... 🤓 Thanks so much for the tip. It solved my issue. No, you are no dumb, Microsoft is! Or who ever creates this kind of rules.
Author
Owner

@DHowett commented on GitHub (Jun 3, 2021):

No, you are no dumb, Microsoft is!

It is not necessary for you to come into our house and slander us.

@DHowett commented on GitHub (Jun 3, 2021): > No, you are no dumb, Microsoft is! It is not necessary for you to come into our house and slander us.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4862