Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version: After Windows Terminal v1.2.2381.0
Start wt.exe from Run(Win+R)
Windows Terminal runs
0xc0000022 error was occured, it's similar to #7081
I have tested all the versions in release tab, versions after v1.2.2381.0 couldn't be started from Win+R properly:
Versions before Preview v1.2.2234.0 works properly
Start wt.exe from C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.4.2652.0_x64__8wekyb3d8bbwe\wt.exe, 0xc0000022 error was occured
Start wt.exe from C:\Users\USER\AppData\Local\Microsoft\WindowsApps\wt.exe, it's ok
Observe C:\Users\USER\AppData\Local\Microsoft\WindowsApps\wt.exe via WindowsMonitor, it loads C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.4.2652.0_x64__8wekyb3d8bbwe\wt.exe
You are not supposed to be running wt directly from the Program Files location. If that location is visible to you, and additionally on your PATH, you will want to reset the permissions on the Program Files\WindowsApps directory, as they have assuredly changed since you installed Windows.
Well, how could I reset the permissions on the Program Files\WindowsApps directory? I haven't change its permissions manually, and the error was occured after a Windows update
Got same issue with Start\Runwt.exe returns error; Application popup: wt.exe - Application Error : The application was unable to start correctly (0xc0000022). Click OK to close the application.
took Procmon and it shows ;
Process : Wt.exe
Class: File System
Operation: CreateFile
Result: ACCESS DENIED
Path: C:Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\vcruntime140.dll
Seems NTFS permission are weird for vcruntime140.dll because there is conditional access defined for this file. Don't know if this intentional or accident.
I'm having the same issue as of the last windows update (I get the same procmon access denied as well but I suspect that's a red herring). However, I did change permissions on those folders a month ago in order to delete almost 20 gigs of Candy Crush Saga, Candy Crush Friends, Bubble Witch Saga, March of Empires, Disney Magic Kingdoms, Autodesk Sketchbook that Windows keeps downloading (I was running out of space on my laptop and I couldn't find anyway to delete those apps through the Windows Store as I've never actually installed them, but I digress). Not only that, there appeared to be multiple versions of them.
I think @DHowett has identified the issue at least in my case. I believe the issue is because the Run dialog (or however you shell the app) is finding wt.exe in the path and trying to execute that executable (which is the same behavior UWP apps present when you find them in explorer and try to run them). Why it only started after the last Windows Update and not when I took permissions of the folders I don't know (perhaps the path changed in one of the updates). I also double checked that the alias for it was turned on and it was (perhaps if it finds it on the path it doesn't check the alias?).
Of course now that I'm looking I have more apps I didn't install new in the last month:
393MB: Hidden City Mystery of Shadows
207MB: Spotify
104MB: Dolby Access
我也遇到了这个问题,不过已经解决了,步骤如下:
icacls "C:\Program Files\WindowsApps" /reset /t /c /q
Just taking ownership and granting read/execute permission to "Users" for single file "C:Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\vcruntime140.dll" fixed issue for me. No need to mess with whole WindowsApps folder permissions
/dup #7188 for now -- I don't have any more good information ☹️
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!
Just taking ownership and granting read/execute permission to "Users" for single file "C:Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\vcruntime140.dll" fixed issue for me. No need to mess with whole WindowsApps folder permissions
Thanks! That worked.
Most helpful comment
Got same issue with Start\Runwt.exe returns error; Application popup: wt.exe - Application Error : The application was unable to start correctly (0xc0000022). Click OK to close the application.
took Procmon and it shows ;
Process : Wt.exe
Class: File System
Operation: CreateFile
Result: ACCESS DENIED
Path: C:Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\vcruntime140.dll
Seems NTFS permission are weird for vcruntime140.dll because there is conditional access defined for this file. Don't know if this intentional or accident.