Bug Report - Immediate crash with message "Windows cannot access the specified device, path or file" after running as administrator #2099

Open
opened 2026-01-30 22:46:47 +00:00 by claunia · 0 comments
Owner

Originally created by @amoerie on GitHub (Jun 24, 2019).

Launching the app immediately produces an error, seemingly related to file permissions.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.116]
Windows Terminal version (if applicable): 0.2.1715.0_x64
This is a work computer inside an Active Directory domain, if that's relevant at all. I am administrator on my local machine though.

Steps to reproduce

Install Windows Terminal (Preview) from the Microsoft Store.
Launch the app as administrator.

Expected behavior

The application starts.

Actual behavior

The application immediately throws an error: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

Extra notes

I previously built the source code and had it working fine by deploying the CascadiaPackage from within Visual Studio. Then I tried running the app as administrator, which broke it and has caused the aforementioned error to appear whenever I try to launch it now.

I was hoping that the "official" release via the Microsoft Store would fix the problem, but it didn't. (I completely uninstalled the beta version and removed my local copy of the source code beforehand).

Is there any place (logs, event log, ..) where I can see which file it's failing to find? That would help a lot. Thanks!

Originally created by @amoerie on GitHub (Jun 24, 2019). Launching the app immediately produces an error, seemingly related to file permissions. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18362.116] Windows Terminal version (if applicable): 0.2.1715.0_x64 This is a work computer inside an Active Directory domain, if that's relevant at all. I am administrator on my local machine though. ``` # Steps to reproduce Install Windows Terminal (Preview) from the Microsoft Store. Launch the app as administrator. # Expected behavior The application starts. # Actual behavior The application immediately throws an error: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." # Extra notes I previously built the source code and had it working fine by deploying the CascadiaPackage from within Visual Studio. Then I tried running the app as administrator, which broke it and has caused the aforementioned error to appear whenever I try to launch it now. I was hoping that the "official" release via the Microsoft Store would fix the problem, but it didn't. (I completely uninstalled the beta version and removed my local copy of the source code beforehand). Is there any place (logs, event log, ..) where I can see which file it's failing to find? That would help a lot. Thanks!
claunia added the Resolution-ExternalNeeds-Tag-FixProduct-Terminal labels 2026-01-30 22:46:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2099