How to Remove the “Confirmation” in SharePoint PowerShell Commands
June 16, 2012
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:$false
Say thanks if it helped 🙂