Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Graph update has broken Microsoft.graph Authentication in the script. #33

Open
BrendanHere opened this issue Jan 29, 2024 · 0 comments

Comments

@BrendanHere
Copy link

It appears that this script has broken since Microsoft made changes to the Microsoft.Graph PowerShell authentication mechanism.

Select-MgProfile : The term 'Select-MgProfile' is not recognized as the name of a cmdlet...

Is there an easy fix to this?

Setting profile as beta...
WARNING: Unable to find type [Microsoft.Graph.PowerShell.Authentication.Utilities.DependencyAssemblyResolver].
Select-MgProfile : The term 'Select-MgProfile' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\library\PowerShell\W365_User_Logon_Report.ps1:132 char:5

  • Select-MgProfile -Name beta
    
  • ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Select-MgProfile:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Latest version of AzureADPreview module is 2.0.2.183
Current installed version of AzureADPreview module is 2.0.2.183
The installed AzureADPreview module is up to date.
Not connected to Azure AD. Connecting...
Connected to Azure AD
Tenant ID is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Get-MgDeviceManagementVirtualEndpointCloudPC : One or more errors occurred.
At C:\library\PowerShell\W365_User_Logon_Report.ps1:200 char:1

  • $cloudPCs = Get-MgDeviceManagementVirtualEndpointCloudPC
  •   + CategoryInfo          : NotSpecified: (:) [Get-MgDeviceMan...intCloudPC_List], AggregateException
      + FullyQualifiedErrorId : System.AggregateException,Microsoft.Graph.PowerShell.Cmdlets.GetMgDeviceManagementVirtualEndpoi
     ntCloudPC_List
    
    

PS C:\library\PowerShell>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant