Powershell and cmd close immediately


alpha45

Well-known member
Local time
2:10 PM
Posts
83
Location
Italy
OS
Windows-11-IoT Enterprise 24H2
Hi,
How can you eliminate the problem of powershell and cmd which, after opening them not in admin mode, close immediately, while in adm mode it works without errors?

Nome dell'applicazione che ha generato l'errore: pwsh.exe, versione: 7.4.1.500, timestamp: 0x65680000
Nome del modulo che ha generato l'errore: Microsoft.PowerShell.ConsoleHost.dll, versione: 7.4.1.500, timestamp: 0x80f778d3
Codice eccezione: 0x80131623
Offset errore 0x000000000004de0d
ID processo che ha generato l'errore: 0x0x1700
Ora di avvio dell'applicazione che ha generato l'errore: 0x0x1DA79FFE18F51BA
Percorso dell'applicazione che ha generato l'errore: C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.1.0_x64__8wekyb3d8bbwe\pwsh.exe
Percorso del modulo che ha generato l'errore: C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.1.0_x64__8wekyb3d8bbwe\Microsoft.PowerShell.ConsoleHost.dll
ID segnalazione: b72d967b-0db7-446d-aae5-06727e03a9dc
Nome completo pacchetto che ha generato l'errore: Microsoft.PowerShell_7.4.1.0_x64__8wekyb3d8bbwe

Application: pwsh.exe
CoreCLR Version: 8.0.123.58001
.NET Version: 8.0.1
Description: The application requested process termination through System.Environment.FailFast.
Message: The Win32 internal error "Nessun altro processo all'altra estremità della pipe." 0xE9 occurred while getting console output buffer information. Contact Microsoft Customer Support Services.
Description: The process was terminated due to an unhandled exception.System.Management.Automation.Host.HostException: The Win32 internal error "Nessun altro processo all'altra estremità della pipe." 0xE9 occurred while getting console output buffer information. Contact Microsoft Customer Support Services.
---> System.ComponentModel.Win32Exception (233): Nessun altro processo all'altra estremità della pipe.
--- End of inner exception stack trace ---
at Microsoft.PowerShell.ConsoleControl.GetConsoleScreenBufferInfo(SafeFileHandle consoleHandle)
at Microsoft.PowerShell.ConsoleHostRawUserInterface.get_CursorPosition()
at Microsoft.PowerShell.ConsoleHost.InputLoop.Run(Boolean inputLoopIsNested)
at Microsoft.PowerShell.ConsoleHost.InputLoop.RunNewInputLoop(ConsoleHost parent, Boolean isNested)
at Microsoft.PowerShell.ConsoleHost.EnterNestedPrompt()
at Microsoft.PowerShell.ConsoleHost.DoRunspaceLoop(String initialCommand, Boolean skipProfiles, Collection`1 initialCommandArgs, Boolean staMode, String configurationName, String configurationFilePath)
at Microsoft.PowerShell.ConsoleHost.Run(CommandLineParameterParser cpp, Boolean isPrestartWarned)
at Microsoft.PowerShell.ConsoleHost.Start(String bannerText, String helpText, Boolean issProvidedExternally)
at Microsoft.PowerShell.UnmanagedPSEntry.Start(String[] args, Int32 argc)
Stack:
at System.Environment.FailFast(System.String, System.Exception)
at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String[], Int32)
at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])
 
Last edited:

My Computers My Computers

  • At a glance

    Windows-11-IoT Enterprise 24H2Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GB
    OS
    Windows-11-IoT Enterprise 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 GB
  • At a glance

    Windows 7 UltimateIntel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GbNvidia Quadro 2000D
    Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 Gb
    Graphics card(s)
    Nvidia Quadro 2000D
Is your user set as administrator or standard account?
Browse to C:\Windows\System32
Right click on cmd.exe >select properties>select advanced. The owner should be trusted installer. (per screenshot)
You have to show hidden files in folder options to see this file.
Try opening command prompt from there. Does it open and stay opened?
I always run both cmd and powershell as administrator, never as a standard user..
 

Attachments

  • Screenshot 2024-03-20 232238.png
    Screenshot 2024-03-20 232238.png
    25.8 KB · Views: 2

My Computers My Computers

  • At a glance

    Windows 11 Pro 25H2 26200.8655i9-10900 10 core 20 threads32 gbnone-Intel UHD Graphics 630
    OS
    Windows 11 Pro 25H2 26200.8655
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • At a glance

    Windows 11 Pro 24H2 26200.8457AMD Ryzen 7 6800U32 gbintegrated
    Operating System
    Windows 11 Pro 24H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26200.8457
You have not said how you are opening them.
[e.g. Start menu / Start button context menu / shortcuts / ...]


Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
You have not said how you are opening them.
[e.g. Start menu / Start button context menu / shortcuts / ...]


Denis
From any link...
 

My Computers My Computers

  • At a glance

    Windows-11-IoT Enterprise 24H2Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GB
    OS
    Windows-11-IoT Enterprise 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 GB
  • At a glance

    Windows 7 UltimateIntel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GbNvidia Quadro 2000D
    Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 Gb
    Graphics card(s)
    Nvidia Quadro 2000D
Is your user set as administrator or standard account?
Browse to C:\Windows\System32
Right click on cmd.exe >select properties>select advanced. The owner should be trusted installer. (per screenshot)
You have to show hidden files in folder options to see this file.
Try opening command prompt from there. Does it open and stay opened?
I always run both cmd and powershell as administrator, never as a standard user..
Is your user set as administrator or standard account?
Browse to C:\Windows\System32
Right click on cmd.exe >select properties>select advanced. The owner should be trusted installer. (per screenshot)
You have to show hidden files in folder options to see this file.
Try opening command prompt from there. Does it open and stay opened?
I always run both cmd and powershell as administrator, never as a standard user..
cmd security is the same as yours...
However I uninstalled Terminal and now it works normally.
 

My Computers My Computers

  • At a glance

    Windows-11-IoT Enterprise 24H2Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GB
    OS
    Windows-11-IoT Enterprise 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 GB
  • At a glance

    Windows 7 UltimateIntel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GbNvidia Quadro 2000D
    Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 Gb
    Graphics card(s)
    Nvidia Quadro 2000D
You have not said how you are opening them.
[e.g. Start menu / Start button context menu / shortcuts / ...]


Denis
is there a procedure to restore unsupported hardware, keeping files etc.
 

My Computers My Computers

  • At a glance

    Windows-11-IoT Enterprise 24H2Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GB
    OS
    Windows-11-IoT Enterprise 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 GB
  • At a glance

    Windows 7 UltimateIntel(R) Core(TM) i7-8700 CPU @ 3.20GHz32 GbNvidia Quadro 2000D
    Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Motherboard
    Asus Prime B365-Plus
    Memory
    32 Gb
    Graphics card(s)
    Nvidia Quadro 2000D

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037

Latest Support Threads

Back
Top Bottom