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, a 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-MgGraph -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-MgGraph -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. 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 apps and VS Code PowerShell Extension. All have problems with Powershell 7, but not Powershell 5. I don’t have the same problems as a standard user.
I’d very much appreciate some pointers on this. I’m a long-time hacker but still relatively new to Powershell.