pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Error with Set-PnPRequestAccessEmails #2886

Closed timtatam closed 4 years ago

timtatam commented 4 years ago

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

image

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

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

jackpoz commented 4 years ago

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: image

timtatam commented 4 years ago

Thanks @jackpoz There was an older version loaded :( image