How to Remove the “Confirmation” in SharePoint PowerShell Commands
9 Comments
When you want to do a big script in PowerShell, sometimes it keeps asking you for confirmation even if you did not put the “-Confirm” parameter in your command. The answer is simple, just add -Confirm:$false . Example:Remove-SPWebApplication $mainurl -DeleteIISSite -RemoveContentDatabases -Confirm:$falseSay thanks if it helped 🙂