Closed timtatam closed 4 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Could you please run Get-Module -Name sharepointpnppowershell* -ListAvailable
and post a screenshot of the result in a powershell session after you get the error above ?
The -Disabled cmdlet parameter has been added months ago and by looking at your error it might be your powershell session is loading an old PnP-PowerShell version
Here you can see an example of the cmdlet working correctly using 3.24.2008.1:
Thanks @jackpoz There was an older version loaded :(
Reporting an Issue or Missing Feature
The cmdlet Set-PnPRequestAccessEmails -Disabled:$false brings up an error
Expected behavior
As described in the doc (https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnprequestaccessemails?view=sharepoint-ps) it should configure the Access request like that: "This will enable the ability to request access to the site and send the requests to the default owners of the site"
Actual behavior
Steps to reproduce behavior
Connect-PnPOnline https://endresshauser-my.sharepoint.com/personal/
Set-PnPRequestAccessEmails -Disabled:$false
Which version of the PnP-PowerShell Cmdlets are you using?
PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.24.2008.1
How did you install the PnP-PowerShell Cmdlets?
Installed through the PowerShell Gallery with Install-Module