Some setting parameters in Set-PnPTenant produce a confirmation popup, preventing DevOps operations like automated CI build processes.
Cause: There is no -Force or -Confirm:$false option for this commandlet.
Expected behavior
I expect this commandlet to have an option to prevent prompts and force a specific setting
Actual behavior
some parameters (OneDriveForGuestsEnabled, OrphanedPersonalSitesRetentionPeriod) produce a prompt like:
Steps to reproduce behavior
Just execute:
Set-PnPTenant -OneDriveForGuestsEnabled $false
Set-PnPTenant -OrphanedPersonalSitesRetentionPeriod 90
Which version of the PnP-PowerShell Cmdlets are you using?
[ ] PnP PowerShell for SharePoint 2013
[ ] PnP PowerShell for SharePoint 2016
[X] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.4.1812.0
How did you install the PnP-PowerShell Cmdlets?
[ ] MSI Installed downloaded from GitHub
[X] Installed through the PowerShell Gallery with Install-Module
Reporting an Issue or Missing Feature
Some setting parameters in Set-PnPTenant produce a confirmation popup, preventing DevOps operations like automated CI build processes. Cause: There is no -Force or -Confirm:$false option for this commandlet.
Expected behavior
I expect this commandlet to have an option to prevent prompts and force a specific setting
Actual behavior
some parameters (OneDriveForGuestsEnabled, OrphanedPersonalSitesRetentionPeriod) produce a prompt like:
Steps to reproduce behavior
Just execute: Set-PnPTenant -OneDriveForGuestsEnabled $false Set-PnPTenant -OrphanedPersonalSitesRetentionPeriod 90
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.4.1812.0
How did you install the PnP-PowerShell Cmdlets?