-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Love this but the powershell for adding the CA is broken #54264
Comments
@shashishailaj Thank you for your feedback . We will investigate and update the thread further. |
@RescueWhale I encountered similar error in my environment. I am testing a few more scenarios and we are trying to get information on this internally. We will update the thread once we have more information on this. |
@RescueWhale I am getting a slightly different error but there is definitely some issue with the graph module in preview. PS C:\Users\user\source\repos> Import-module Microsoft.Graph.Authentication PS C:\Users\user\source\repos> Connect-Graph -Scopes "Directory.AccessAsUser.All" PS C:\Users\user\source\repos> The above output was found by using Developer Powershell for VS 2019 environment . For some reason the Windows powershell ISE window gives a different error. It says that So it does not work with Powershell ISE in windows 10. It may be by design but I cant confirm until I find more infromation. We are trying to get this reviewed internally by the team and will update the page once we have more information. |
@RescueWhale So after my testing I have come to conclusion that if you are using normal Windows Powershell x64 mode as shown in the picture below , the cmdlets provided in the article work without any issue.
I suggest you to try the above and let me know if that works for you . I believe , in your case the Microsoft.Graph.Authentication module may not be loading. Could you please try to start the PowerShell window with admin privileges and try the above . I believe it should work. Thank you. |
@RescueWhale This may give you error in Powershell ISE but it works in normal powershell (x64) window on Windows 10. We have this reported to the team internally and this is being looked into for powershell ISE . I would suggest you to check thi sagain on any windows 10 machine in your environment . It must work. We will close this issue now Should you have any further queries , please tag me to your reply and we will be happy to help . Thank you. |
Get the following, tried multiple PCs with different global admins, not sure what else it could be other than broken or the wrong command is listed above.
New-MgServicePrincipal : Could not load file or assembly 'Microsoft.Graph.Authentication, Version=0.2.0.0,
Culture=neutral, PublicKeyToken='redacted' or one of its dependencies. The system cannot find the file
specified.
just installed the graph module and the graph.authentication module fine and still wont work even after a restart.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: