pnp / PnP-PowerShell

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

Can not run Set-PnPTenant silently #1821

Open SjoerdV opened 5 years ago

SjoerdV commented 5 years ago

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

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?

pmatthews05 commented 5 years ago

I'm encountering the same problem. Need Confirm or Force to run silently.