r/PowerShell • u/chiron3636 • Feb 26 '26
Question PS/Code unable to login via Powershell
When connecting to Connect-AzAccount or any other O365 services I'm getting
"Microsoft Edge is unable to launch child processes due to a Group Policy. If Microsoft Edge is running as administrator* please try running edge delevated"
*I am launching Code or PS as admin with my split admin account as your supposed to.
When it launches edge to authenticate my account
Not sure if its something machine specific or an issue with wider environment - nobody else seems able to replicate and it was all working a week or so ago.
Dr google hasn't been particularly helpful but I'm leaning towards a defender issue.
Just want to confirm if anyone else has seen this at all or can suggest a work around
Getting a funky error when using VScode and Powershell (ISE and standard)
Not sure if its something machine specific or an issue with wider environment - nobody else seems able to replicate
4
u/BlackV Feb 26 '26
What does
Mean to you, do you mean running elevated or running as another user?
If you are touching graph/azure there shouldn't be many reason to ever run elevated
1
u/OlivTheFrog Feb 26 '26
If you published the error and the corresponding part of the code, it might be easier to get help, don't you think ?
regards
1
u/tr3yff Feb 26 '26
Could be a group policy, or some EPM policy, try to use devidecode parameter to work arround.
1
u/g3n3 Mar 01 '26
You only run elevated if you are administering the machine you are on.