You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: