When i'm trying to lauch WindowsTerminal via wt or wt.exe alias i get this error (0xc0000022).
I already tried next:
- reinstall WindowsTerminal
- "repair" and "reset" it in Setting->Apps->Apps&features->WindowsTerminal->Advanced options menu
- mess up with rights in "C:\Program Files\WindowsApps" folder
- tried to reset whole Windows keeping my files, and then removing everything
But i keep getting this error. Thing is that Windows Terminal itself working just fine, i can launch it through win+x shortcut menu and if I set Windows Terminal as default terminal app in "For developers" settings - cmd launches in Windows Terminal.
If i write wt.exe in explorer and hit enter - i can see in adress line that it trying to lauch terminal directly from "C:\Program FIles\WindowsApps\Microsoft.WindowsTerminal_1.11.3471.0_x64__8wekyb3d8bbwe\wt.exe", not from "C:\Users\<username>\AppData\Local\WindowsApps\wt.exe" as it should.
With ProcessMonitor i looked closely and find out next:
- win+r
wtlaunches "<pathToPackageFolder>\wt.exe", process starts with command line="<pathToPackageFolder>\wt.exe" and it's getting ACCESS DENIED error when trying to read vcruntime140.dll and vcruntime140_1.dll which is placed inside that package folder. explorer.exe shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App(and win+r cmd, and win+x shortcut) lauches "<pathToPackageFolder>\WindowsTerminal.exe", process starts with command line="<pathToPackageFolder>\WindowsTerminal.exe" and doing same queries as in previous case, but gets no error.- if i call
wtfrom cmd (not from explorer or win+r) - it lauches "<pathToPackageFolder>\wt.exe" but without errors, and process starts with command line="wt"
These cases also has a bit diffirent ENVIRONMENT variables, and case with error have "<pathToPackageFolder>" in its PATH variable, i think it's cause error, but i dont see why this is happening on fresh clear installed activated windows 11 pro.
P.S. I'm new to asking questions and to this community, and english is not my first language, so i'll apretiate corrections and advices.