Closed
Description
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
- Make sure you can reproduce this issue using the latest released version of Microsoft.Graph or Microsoft.Graph.Beta.
- Please search the existing issues to see if there has been a similar issue filed.
- For issues related to authentication and service errors, please refer to our troubleshooting guide. For service issues, please open a question at https://developer.microsoft.com/graph/support.
Describe the bug
The command fails with missing assembly error
Microsoft.Win32.Registry.dll
when used in a PowerShell 5 environment.
To Reproduce
Steps to reproduce the behavior:
- Open PowerShell 5
- Connect to graph using
connect-mggraph -scopes "ProfilePhoto.ReadWrite.All,User.ReadWrite,User.ReadWrite.All"
- Execute
Set-MgUserPhotoContent -UserId <UserId> -InFile "<Path to your image file>"
Expected behavior
No error thrown
Debug Output
Module Version
2.16.0
Environment Data
PowerShell 5
Screenshots
Additional context
The cmdlet works in PowerShell 7