Powershell and cmd close immediately


alpha45

Well-known member
Local time
8:54 AM
Posts
55
Location
Italy
OS
Windows 11 Pro 23H2 Build: 22631
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

System One System Two

  • OS
    Windows 11 Pro 23H2 Build: 22631
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 GB
    Graphics Card(s)
    Nvidia Quadro 2000D
  • Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 Gb
    Graphics card(s)
    Nvidia Quadro FX3700
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

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3447
    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
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
You have not said how you are opening them.
[e.g. Start menu / Start button context menu / shortcuts / ...]


Denis
 

My Computer

System One

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


Denis
From any link...
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build: 22631
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 GB
    Graphics Card(s)
    Nvidia Quadro 2000D
  • Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 Gb
    Graphics card(s)
    Nvidia Quadro FX3700
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

System One System Two

  • OS
    Windows 11 Pro 23H2 Build: 22631
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 GB
    Graphics Card(s)
    Nvidia Quadro 2000D
  • Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 Gb
    Graphics card(s)
    Nvidia Quadro FX3700
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

System One System Two

  • OS
    Windows 11 Pro 23H2 Build: 22631
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 GB
    Graphics Card(s)
    Nvidia Quadro 2000D
  • Operating System
    Windows 7 Ultimate
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Intel E 8600 dual Core 3.3GHz
    Motherboard
    P5 G41 L-ME
    Memory
    8 Gb
    Graphics card(s)
    Nvidia Quadro FX3700

Latest Support Threads

Back
Top Bottom