Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

MSFT_SPOBrowserIdleSignout: Set-PnPTenant : A parameter cannot be found that matches parameter name 'Enabled'.

Open HaloX69 opened this issue 5 years ago • 1 comments

Module Version: 1.21.421.2

When trying to enforce browser sign-out with the properties SignOutAfter, and WarnAfter and the resource throws and exception. The reason for this exception is that the Enabled property supported by the Set-PnPTenant cmdlet, but then the cmdlet doesn't accept parameters SignOutAfter, and WarnAfter. TO fix the issue we need to call the cmdlet Set-PnPBrowserIdleSignout, replace line 188 in the Set-TargetResource.

#Set-PnPTenant @CurrentParameters | Out-Null Set-PnPBrowserIdleSignout @CurrentParameters | Out-Null

The issue also exists in the most current version 1.21.519.1

HaloX69 avatar May 20 '21 03:05 HaloX69

I have added a PR for this. Thanks for spotting the error 👍

Swampen avatar May 20 '21 08:05 Swampen