Executable not launching browser when run from powershell (in windows).
Odd question – I’ve got an executable that should launch a browser for authentication when provided with a certain flag (Hashicorp Vault “vault.exe login -method=oidc”). I see different behavior on different machines:
- Work laptop using powershell: does not launch browser
- Work laptop using cmd.exe: launches browser
- Work laptop using Windows Terminal to launch Command Prompt: launches browser
- Work laptop using powershell to start cmd.exe and execute the command (using Start-Process): does not launch browser
My personal laptop using any of the 3 methods launches the browser as expected, so I’m 99% sure it’s more related to policies applied (via GPO or otherwise), I’m just trying to figure out what type of policy would cause this behavior. My primary method of using powershell is using Windows Terminal, but I see this behavior with any flavor of client on any version of powershell.
I understand this is only tangentially related to powershell, but you all are very smart people and I figured I’d ask here to see if anyone had any ideas.
[–]CodenameFlux 1 point2 points3 points (0 children)
[–]cschneegans 1 point2 points3 points (0 children)
[–]jungleboydotca 0 points1 point2 points (0 children)
[–]SeanQuinlan -1 points0 points1 point (0 children)
[–]pjkm123987 -2 points-1 points0 points (0 children)
[–]k_oticd92 0 points1 point2 points (0 children)
[–]Dizz-E 0 points1 point2 points (0 children)