Windows 10: Script causes Powershell to open in Console Host instead of Windows Terminal

Discus and support Script causes Powershell to open in Console Host instead of Windows Terminal in Windows 10 Gaming to solve the problem; I am trying to run a script that opens a powershell instance for every sub-directory and runs the command whisperPathHere's the code:Get-ChildItem... Discussion in 'Windows 10 Gaming' started by kanishknishar, Sep 27, 2023.

  1. Script causes Powershell to open in Console Host instead of Windows Terminal


    I am trying to run a script that opens a powershell instance for every sub-directory and runs the command whisperPathHere's the code:Get-ChildItem -Directory -Recurse ForEach-Object { Start-Process -FilePath "pwsh.exe" -ArgumentList "-NoExit -Command Set-Location -LiteralPath '$$_.FullName'; whisperPath" }When I run the code on my desktop, each instance of Powershell opens in Windows Terminal successfully but that is not the case on my laptop which opens each Powershell window in Windows Console Host despite WT being the default terminal manager on my laptop:About PCScript causes Powershell to open in Console Host instead of Windows Terminal :Device name Lance

    :)
     
    kanishknishar, Sep 27, 2023
    #1

  2. Is Terminal the same as Powershell?

    Hi,

    Windows Terminal is a new terminal host application included with Windows 11.

    When you open it, you will find that the tab sais "Windows Powershell". You can click the drop-down arrow to show more profiles. These include CMD etc.

    The new Terminal is a more refined host for console windows, not a shell itself. If you open powershell within it, it should act exactly like when you opened the old powershell, with the addition of clickable links, tabs, and custom profiles.

    Sincerely

    LightJack
     
    LightJack05, Sep 27, 2023
    #2
  3. Windows Terminal: Administrator windows open as Command Prompt with the old style (Windows Console Host)

    I have Windows 11 Insider Preview.

    The default terminal app is Windows Terminal, but when I start Command prompt as administrator, it opens in the Windows Console Host, and not in Windows Terminal. Can I fix this somehow so it opens in Windows Terminal?
     
    Michał Pustelnik_724, Sep 27, 2023
    #3
  4. Script causes Powershell to open in Console Host instead of Windows Terminal

    Windows Script Host

    Hi Tiara,

    The message "Windows Script Host access is disabled on this machine. Contact your administrator for details" is usually occurring if a program that does not require the feature of Windows Script Host is running on a Windows PC. For us to provide an accurate
    solution, we would need you to answer the following questions:

    • Which build, version and edition of Windows is installed on your computer?
    • Does the message appear when you are launching a specific application?
    • What changes were made to the device before this issue happened?

    For initial troubleshooting, we suggest following the steps provided by
    Ramesh Srinivasan
    in this thread.

    We are looking forward to your response.
     
    Darleen Pen, Sep 27, 2023
    #4
Thema:

Script causes Powershell to open in Console Host instead of Windows Terminal

Loading...
  1. Script causes Powershell to open in Console Host instead of Windows Terminal - Similar Threads - Script causes Powershell

  2. Use terminal instead of console host when doing right click -> run as administrator

    in Windows 10 Gaming
    Use terminal instead of console host when doing right click -> run as administrator: Hello,When using right click -> run as administrator on powershell it launches console host instead of terminal app - works fine when running terminal as administrator and opening powershell tab or starting powershell regularly. Is it possible to change this behavior since it...
  3. Use terminal instead of console host when doing right click -> run as administrator

    in Windows 10 Software and Apps
    Use terminal instead of console host when doing right click -> run as administrator: Hello,When using right click -> run as administrator on powershell it launches console host instead of terminal app - works fine when running terminal as administrator and opening powershell tab or starting powershell regularly. Is it possible to change this behavior since it...
  4. Script causes Powershell to open in Console Host instead of Windows Terminal

    in Windows 10 Drivers and Hardware
    Script causes Powershell to open in Console Host instead of Windows Terminal: I am trying to run a script that opens a powershell instance for every sub-directory and runs the command whisperPathHere's the code:Get-ChildItem -Directory -Recurse ForEach-Object { Start-Process -FilePath "pwsh.exe" -ArgumentList "-NoExit -Command Set-Location -LiteralPath...
  5. Script causes Powershell to open in Console Host instead of Windows Terminal

    in Windows 10 Software and Apps
    Script causes Powershell to open in Console Host instead of Windows Terminal: I am trying to run a script that opens a powershell instance for every sub-directory and runs the command whisperPathHere's the code:Get-ChildItem -Directory -Recurse ForEach-Object { Start-Process -FilePath "pwsh.exe" -ArgumentList "-NoExit -Command Set-Location -LiteralPath...
  6. A lot of windows command processor, windows PowerShell, and console window host running.

    in Windows 10 Gaming
    A lot of windows command processor, windows PowerShell, and console window host running.: There is a lot of windows command processor, windows PowerShell, and console window host running, which is taking up all the disk and memory, any fix? I don't want to restart the computer every time this happens.Preview attachment Video.movHere is a video of it....
  7. A lot of windows command processor, windows PowerShell, and console window host running.

    in Windows 10 Software and Apps
    A lot of windows command processor, windows PowerShell, and console window host running.: There is a lot of windows command processor, windows PowerShell, and console window host running, which is taking up all the disk and memory, any fix? I don't want to restart the computer every time this happens.Preview attachment Video.movHere is a video of it....
  8. console terminal/cmd/powershell is very laggy when a lot of instances of console is opened...

    in Windows 10 Gaming
    console terminal/cmd/powershell is very laggy when a lot of instances of console is opened...: Issue started somewhere in november/october 2021 I was using windows 10 back thenNow I've upgraded to windows 11 but issue didn't resolveHere's an example with WebStorm https://www.youtube.com/watch?v=v2WEdi09CrsAt first I thought it's an issue with WebStorm but then I tried...
  9. console terminal/cmd/powershell is very laggy when a lot of instances of console is opened...

    in Windows 10 Software and Apps
    console terminal/cmd/powershell is very laggy when a lot of instances of console is opened...: Issue started somewhere in november/october 2021 I was using windows 10 back thenNow I've upgraded to windows 11 but issue didn't resolveHere's an example with WebStorm https://www.youtube.com/watch?v=v2WEdi09CrsAt first I thought it's an issue with WebStorm but then I tried...
  10. microsoft console based script host

    in Windows 10 BSOD Crashes and Debugging
    microsoft console based script host: I have a aplication that use a script, but, when i try do run, but doesn´t do nothing. The icon apear in the task bare, but does do anything. Can you help me please Nádia Ruivo...