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

Connect-MSIntuneGraph not working on fresh machine #165

Closed
ghost opened this issue Jun 12, 2024 · 4 comments
Closed

Connect-MSIntuneGraph not working on fresh machine #165

ghost opened this issue Jun 12, 2024 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 12, 2024

Hi there,

When i install IntuneWin32App and makes sure the install runs fine, i still get this error:

WARNING: An error occurred while attempting to retrieve or refresh access token. Error message: Exception calling "Create" with "1" argument(s): "Could not  
load file or assembly 'Microsoft.IdentityModel.Abstractions, Version=6.22.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 
The system cannot find the file specified."

As soon as i run Connect-MSIntuneGraph.

I cannot figure out how to solve this issued :-(

@Harrison-Tennis
Copy link

Are you able to post the full script line you are using?

E.g
Connect-MSIntuneGraph -TenantId $TenantId

@ghost
Copy link
Author

ghost commented Jun 20, 2024

Hi there,

Yeah sure... it´s:
Connect-MSIntuneGraph -TenantID "domain" -ClientID "ID"

"domain" being our company Microsoft domain and the same with the client id.
I do not use variables for this.

@ghost
Copy link
Author

ghost commented Jun 20, 2024

And it works fine on my development device which runs Server 2022.
The device i get the error is a Windows 11 machine.
If that has anything to do with it.

@ghost
Copy link
Author

ghost commented Jun 26, 2024

So the guide here:
#156 (comment)
Did help me find out, that my app registration was not setup correctly, after fixing that, it works.
But you don´t have to edit the 2 lines, if you use the -ClientID parameter:
Connect-MSIntuneGraph -TenantID "XXXXXXX.onmicrosoft.com" -ClientID "XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX"

@ghost ghost closed this as completed Jun 26, 2024
This issue was closed.
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