ThomasKur / M365Documentation

Automatic Microsoft 365 Documentation to simplify the life of admins and consultants.
Other
300 stars 45 forks source link

Cannot connect using Connect-M365Doc #27

Closed kcswe closed 1 year ago

kcswe commented 2 years ago

I just tried installing and then connecting, but I get an error message like below:

New-MsalClientApplication : Cannot convert argument "builder", with value: "Microsoft.Identity.Client.PublicClientAppli

cationBuilder", for "WithDesktopFeatures" to type "Microsoft.Identity.Client.PublicClientApplicationBuilder": "Cannot c onvert the "Microsoft.Identity.Client.PublicClientApplicationBuilder" value of type "Microsoft.Identity.Client.PublicCl ientApplicationBuilder" to type "Microsoft.Identity.Client.PublicClientApplicationBuilder"." At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Select-MsalClientApplication.ps1:56 char:29

The property 'AppConfig' cannot be found on this object. Verify that the property exists. At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Select-MsalClientApplication.ps1:88 char:9

Add-MsalClientApplication : Cannot bind argument to parameter 'PublicClientApplication' because it is null. At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Select-MsalClientApplication.ps1:89 char:35

The property 'ClientId' cannot be found on this object. Verify that the property exists. At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Get-MsalToken.ps1:291 char:21

Get-MsalToken : Cannot bind argument to parameter 'PublicClientApplication' because it is null. At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\Get-MsalToken.ps1:293 char:96

Environment is Windows 11 Enterprise and PSVersion 5.1.22000.653

ThomasKur commented 1 year ago

Ok, so you tried to create your own app registration or was this by just using Connect-M365Doc without any parameter? Then this is strange and I could not reproduce it.