Mcgraph pop-up blocking entry
I am trying to activate the MgGraph module using the access token means in PowerShell.
The access token is generated using the tenant Id and client Id acquired on the PowerShell Microsoft Graph page.
PS C:Windowssystem32> $token = Get-MsalToken -TenantId $tenantId -ClientId $clientId -ClientSecret $secureClientSecret
PS C:Windowssystem32> $accessToken = ConvertTo-SecureString -String $token.AccessToken -AsPlainText -Force
PS C:Windowssystem32> Connect-MgGraph -AccessToken $accessToken
When I run these commands, I get a pop-up and I never enter MgGraph.
How can I skip the pop-up? Help
I am trying to activate the MgGraph module using the access token means in PowerShell. The access token is generated using the tenant Id and client Id acquired on the PowerShell Microsoft Graph page.PS C:Windowssystem32> $token = Get-MsalToken -TenantId $tenantId -ClientId $clientId -ClientSecret $secureClientSecretPS C:Windowssystem32> $accessToken = ConvertTo-SecureString -String $token.AccessToken -AsPlainText -ForcePS C:Windowssystem32> Connect-MgGraph -AccessToken $accessToken When I run these commands, I get a pop-up and I never enter MgGraph. How can I skip the pop-up? Help Read More