Starting the Windows IoT Core ADK Add-ons IoTPShell script causes the resulting powershell windows outside of terminal #4329

Closed
opened 2026-01-30 23:44:18 +00:00 by claunia · 4 comments
Owner

Originally created by @TGoodhew on GitHub (Oct 7, 2019).

Environment

Microsoft Windows [Version 10.0.18362.388]
Windows Terminal (Preview) Version: 0.5.2762.0
https://github.com/ms-iot/iot-adk-addonkit/

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

  1. Clone IoT Core ADK Add-ons to local machine
  2. Create IOT ADK entry in settings:
    {
    "guid": "{255BF760-7EE8-4346-B260-494BBBE234A6}",
    "name": "IOT ADK",
    "commandline": "C:\Users\Tony\source\repos\iot-adk-addonkit\IoTCorePShell.cmd",
    "hidden": false
    },
  3. Select "IOT ADK" from new window drop down
  4. Click yes on elevation prompt

Expected behavior

IoTPShell script/window opens as part of Terminal

Actual behavior

IoTPShell script/window opens a new PShell window on the desktop

Originally created by @TGoodhew on GitHub (Oct 7, 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 Microsoft Windows [Version 10.0.18362.388] Windows Terminal (Preview) Version: 0.5.2762.0 https://github.com/ms-iot/iot-adk-addonkit/ ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` # Steps to reproduce 1. Clone IoT Core ADK Add-ons to local machine 2. Create IOT ADK entry in settings: { "guid": "{255BF760-7EE8-4346-B260-494BBBE234A6}", "name": "IOT ADK", "commandline": "C:\\Users\\Tony\\source\\repos\\iot-adk-addonkit\\IoTCorePShell.cmd", "hidden": false }, 3. Select "IOT ADK" from new window drop down 4. Click yes on elevation prompt <!-- A description of how to trigger this bug. --> # Expected behavior IoTPShell script/window opens as part of Terminal <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior IoTPShell script/window opens a new PShell window on the desktop <!-- What's actually happening? -->
claunia added the Resolution-Duplicate label 2026-01-30 23:44:18 +00:00
Author
Owner

@Biswa96 commented on GitHub (Oct 7, 2019):

Try to copy the whole command from IoTCorePShell.cmd file and paste it in the commandline entry in the settings.json file.

@Biswa96 commented on GitHub (Oct 7, 2019): Try to copy the whole command from `IoTCorePShell.cmd` file and paste it in the `commandline` entry in the `settings.json` file.
Author
Owner

@TGoodhew commented on GitHub (Oct 7, 2019):

The same result, the elevated PShell ends up outside of the terminal.

@TGoodhew commented on GitHub (Oct 7, 2019): The same result, the elevated PShell ends up outside of the terminal.
Author
Owner

@DHowett-MSFT commented on GitHub (Oct 7, 2019):

To, it looks like IoTCorePShell.cmd is launching a separate elevated powershell instance. If you run Terminal elevated, it won't have to do that.

This is a combination of /dup #1032 and #492. 492 because if WT were the "default terminal", it wouldn't appear as a separate powershell window.

@DHowett-MSFT commented on GitHub (Oct 7, 2019): To, it looks like `IoTCorePShell.cmd` is launching a separate elevated powershell instance. If you run Terminal elevated, it won't have to do that. This is a combination of /dup #1032 and #492. 492 because if WT were the "default terminal", it wouldn't appear as a separate powershell window.
Author
Owner

@ghost commented on GitHub (Oct 7, 2019):

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!

@ghost commented on GitHub (Oct 7, 2019): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4329