Error 0xd0000022 when launching any shell (PS, cmd, git bash, PS7, Azure Cloud Shell) in WT #9539

Open
opened 2026-01-31 01:57:01 +00:00 by claunia · 0 comments
Owner

Originally created by @ochcaroline on GitHub (Jul 10, 2020).

Originally assigned to: @DHowett on GitHub.

Environment

Windows build number 10.0.18363.0

Windows Terminal (Unpackaged)
Version: 1.0.200629001-release1.0

Steps to reproduce

Run the terminal without admin privileges and open any cli (powershell, cmd, git bash - whatever)

Expected behavior

Terminal opens shells

Actual behavior

[error 0xd0000022 when launching powershell.exe'] [error 0xd0000022 when launching cmd.exe']
[error 0xd0000022 when launching "%PROGRAMFILES%\git\usr\bin\bash.exe" -i -l'] [error 0xd0000022 when launching C:\Program Files\PowerShell\7\pwsh.exe']

Additional info

I tried to open with full path to powershell, to shortcut, created the profile, none of that worked.
Actually, any of the programs I tried to run in WT - did not work.
I have read/write access to the folder I have WT in.
I have access to the folder the powershell starts in
I am now using unpacked version instead of installed - both of them not working.
To open the shell you need to run WT as admin and this is actually not acceptable for me.

I was about to move to WT, but ConEmu still wins with it, for now. It's opening any shell like a charm.
I attached ConEmu that runs powershell without admin rights and Windows Terminal that runs the same command and doesn't work.
image

Originally created by @ochcaroline on GitHub (Jul 10, 2020). Originally assigned to: @DHowett on GitHub. # Environment ``` Windows build number 10.0.18363.0 Windows Terminal (Unpackaged) Version: 1.0.200629001-release1.0 ``` # Steps to reproduce Run the terminal without admin privileges and open any cli (powershell, cmd, git bash - whatever) # Expected behavior Terminal opens shells # Actual behavior [error 0xd0000022 when launching `powershell.exe'] [error 0xd0000022 when launching `cmd.exe'] [error 0xd0000022 when launching `"%PROGRAMFILES%\git\usr\bin\bash.exe" -i -l'] [error 0xd0000022 when launching `C:\Program Files\PowerShell\7\pwsh.exe'] # Additional info I tried to open with full path to powershell, to shortcut, created the profile, none of that worked. Actually, any of the programs I tried to run in WT - did not work. I have read/write access to the folder I have WT in. I have access to the folder the powershell starts in I am now using unpacked version instead of installed - both of them not working. To open the shell you need to run WT as admin and this is actually not acceptable for me. I was about to move to WT, but ConEmu still wins with it, for now. It's opening any shell like a charm. I attached ConEmu that runs powershell without admin rights and Windows Terminal that runs the same command and doesn't work. ![image](https://user-images.githubusercontent.com/28461795/87147129-63a2d280-c2ac-11ea-8089-7782c01f59f6.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9539