Closed mikeparkie closed 2 years ago
I had a similar problem to the issue you linked to, where I got told that the Method that was being called didn't exists. I did some diging and found out that the server that I ran the script from (Connect-PnPOnline) did not have .NET Core installed on it.
I installed .NET Core 3.1 Runetime and it seemed to solve the issue as the Methods I required were located in the .NET Core.
Thanks for the suggestion @tonylanglet I gave that a go, rebooted the server and rerun the commands. Same errors. Alas the digging continues.
We found that two of our severs were missing .Net 4.8. Updated both/rebooted and commands now complete correctly 👍😎. Closing the issue.
Category: Bug [✔] Environment: Office 365 / SharePoint Online [✔] Connecting from Windows Server 2008 R2 PnP.PowerShell 1.6.0 [PowerShell Gallery with Install-Module] Microsoft.Online.SharePoint.PowerShell 16.0.21213.12000 [PowerShell Gallery with Install-Module]
As part of our site provisioning script we add new site admins to our site admins Yammer group using:
Add-PnPMicrosoft365GroupMember -Identity "sitename" -Users "user.name@company.domain"
This runs fine on several of our machines, other than one where it produces the following error:
Reading this #1741 I attempted the following steps:
Deleted all the SharePoint Components from the Control Panel (Add/Remove) Removed all SharePoint items from (C:\windows\Microsoft.NET\assembly\GAC_MSIL), Uninstalled both PS modules and reinstalled again Restarted the machine
Retried original command and it's still producing the same error.
Any ideas appreciated, TIA