Problems launching browser as admin
When I run PowerShell 7.4.3 as admin, there are issues when a browser should be launched but doesn’t behave appropriately. For example:
When I get help and select a related link for online information, the familiar Windows popup asks which app to use. I select Edge and click to use Always. The next time I click a link, I’m asked again to select the app. I’ve tried with Edge and Chrome, and neither stick.When I run Connect-MSGraph -Scopes “User.Read.All”, “Group.ReadWrite.All” which requires web authentication, a browser never launches. The terminal hangs, and I have to Ctrl-C out of it. Other similar commands that require web authentication fail the same way, i.e., no browser is launched.When I run Connect-MSGraph -Scopes “User.Read.All”, “Group.ReadWrite.All” -UseDeviceAuthentication I get a link to open a page for the code, similar to #1 above. I get the same Windows popup, select Edge, and continue. There are other steps, but the connection is made, and the command succeeds. The next time I use the command, I’m asked again to select the app, etc.
I’ve tried this with the same results in multiple Windows PowerShell terminals and the VS Code PowerShell Extension integrated console. All have problems with PowerShell 7, but not PowerShell 5 (did not use MSGraph here). I don’t have the same problems as a standard user. I’m running in a MS 365 GCC environment, but I couldn’t find any known GCC issues.
I’d very much appreciate some pointers on this. I’m a long-time hacker but still relatively new to Powershell.
When I run PowerShell 7.4.3 as admin, there are issues when a browser should be launched but doesn’t behave appropriately. For example: When I get help and select a related link for online information, the familiar Windows popup asks which app to use. I select Edge and click to use Always. The next time I click a link, I’m asked again to select the app. I’ve tried with Edge and Chrome, and neither stick.When I run Connect-MSGraph -Scopes “User.Read.All”, “Group.ReadWrite.All” which requires web authentication, a browser never launches. The terminal hangs, and I have to Ctrl-C out of it. Other similar commands that require web authentication fail the same way, i.e., no browser is launched.When I run Connect-MSGraph -Scopes “User.Read.All”, “Group.ReadWrite.All” -UseDeviceAuthentication I get a link to open a page for the code, similar to #1 above. I get the same Windows popup, select Edge, and continue. There are other steps, but the connection is made, and the command succeeds. The next time I use the command, I’m asked again to select the app, etc.I’ve tried this with the same results in multiple Windows PowerShell terminals and the VS Code PowerShell Extension integrated console. All have problems with PowerShell 7, but not PowerShell 5 (did not use MSGraph here). I don’t have the same problems as a standard user. I’m running in a MS 365 GCC environment, but I couldn’t find any known GCC issues. I’d very much appreciate some pointers on this. I’m a long-time hacker but still relatively new to Powershell. Read More