Still cannot drop files to Terminal running as admin #21735

Closed
opened 2026-01-31 07:53:27 +00:00 by claunia · 4 comments
Owner

Originally created by @szx0427 on GitHub (May 19, 2024).

Windows Terminal version

1.20

Windows build number

10.0.19045.3930

Other Software

Windows File Explorer 10.0.19041.3758

Steps to reproduce

First, ensure you logged in as an ordinary admin account (I've not tested on the built-in Administrator account yet but I guess the problem will remain.)
Method 1: Set EnableLUA=1 (enable UAC), run Terminal with admin permission, drag a file from Desktop and drop it to Terminal.
Method 2: Set EnableLUA=0 (disable UAC), directly run Terminal, and do the drag&drop.

Expected Behavior

I am simply expecting drag & drop can work.

Actual Behavior

A cursor indicating "unavailable" will be displayed through either method above.
Such drag&drop is supported by the legacy conhost but not Windows Terminal. That's weird. Don't tell me this issue is a duplicate of #14946 or #15996 and that you have already fixed this in 1.18. I tested on both 1.18 and 1.20 only to find the problem remaining.

Originally created by @szx0427 on GitHub (May 19, 2024). ### Windows Terminal version 1.20 ### Windows build number 10.0.19045.3930 ### Other Software Windows File Explorer 10.0.19041.3758 ### Steps to reproduce First, ensure you logged in as an ordinary admin account (I've not tested on the built-in Administrator account yet but I guess the problem will remain.) **Method 1:** Set EnableLUA=1 (enable UAC), run Terminal with admin permission, drag a file from Desktop and drop it to Terminal. **Method 2:** Set EnableLUA=0 (disable UAC), directly run Terminal, and do the drag&drop. ### Expected Behavior I am simply expecting drag & drop can work. ### Actual Behavior A cursor indicating "unavailable" will be displayed through either method above. Such drag&drop is supported by the legacy conhost but not Windows Terminal. That's weird. Don't tell me this issue is a duplicate of #14946 or #15996 and that you have already fixed this in 1.18. I tested on both 1.18 and 1.20 only to find the problem remaining.
claunia added the Needs-TriageIssue-BugNeeds-Author-Feedback labels 2026-01-31 07:53:27 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (May 19, 2024):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (May 19, 2024): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Closed similar issues: - [Unable to drag/drop a file to terminal with UAC turned off (#7754)](https://github.com/microsoft/terminal/issues/7754), similarity score: 0.85 - [Unable to drag/drop a file to terminal with UAC turned off (#11668)](https://github.com/microsoft/terminal/issues/11668), similarity score: 0.84 - [Unable to Drag and Drop files from Windows Explorer (#9759)](https://github.com/microsoft/terminal/issues/9759), similarity score: 0.79 - [Win10 UAC off,terminal couldn't accept drop file (#15502)](https://github.com/microsoft/terminal/issues/15502), similarity score: 0.79 - [Cannot drop file or folder path on cmd or powershell after install terminal (#15996)](https://github.com/microsoft/terminal/issues/15996), similarity score: 0.77 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner
@zadjii-msft commented on GitHub (Jun 3, 2024): Notes: For the tab dragging scenario: * https://github.com/microsoft/terminal/blob/01e4df152e6e4d5156ef394412eb63025f7d743b/src/cascadia/TerminalApp/TerminalPage.cpp#L175-L176 * https://github.com/microsoft/terminal/blob/01e4df152e6e4d5156ef394412eb63025f7d743b/src/cascadia/TerminalApp/AppLogic.cpp#L140 * https://github.com/microsoft/terminal/blob/01e4df152e6e4d5156ef394412eb63025f7d743b/src/types/utils.cpp#L680 But that's not file drag/drop. That code references all of * #13928 * #7754 * #11096
Author
Owner

@carlos-zamora commented on GitHub (Jul 3, 2024):

First, ensure you logged in as an ordinary admin account (I've not tested on the built-in Administrator account yet but I guess the problem will remain.)
Method 1: Set EnableLUA=1 (enable UAC), run Terminal with admin permission, drag a file from Desktop and drop it to Terminal.
Method 2: Set EnableLUA=0 (disable UAC), directly run Terminal, and do the drag&drop.

Can you clarify if the issue occurs when UAC is enabled /?

For us, when it's enabled, drag & drop into conhost doesn't work. In that situation, it's not expected to work for Terminal either.

@carlos-zamora commented on GitHub (Jul 3, 2024): > First, ensure you logged in as an ordinary admin account (I've not tested on the built-in Administrator account yet but I guess the problem will remain.) **Method 1:** Set EnableLUA=1 (enable UAC), run Terminal with admin permission, drag a file from Desktop and drop it to Terminal. **Method 2:** Set EnableLUA=0 (disable UAC), directly run Terminal, and do the drag&drop. Can you clarify if the issue occurs when UAC is enabled /? For us, when it's enabled, drag & drop into conhost doesn't work. In that situation, it's not expected to work for Terminal either.
Author
Owner

@Mingyueyixi commented on GitHub (Aug 1, 2024):

Same with me. i also can't not drop file to window terminal from andy where , Whether the uac or admin is enabled or not

@Mingyueyixi commented on GitHub (Aug 1, 2024): Same with me. i also can't not drop file to window terminal from andy where , Whether the uac or admin is enabled or not
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21735