15 49.0138 8.38624 1 0 4000 1 https://vladtalkstech.com 300 1
theme-sticky-logo-alt

How to Remove the “Confirmation” in SharePoint PowerShell Commands

3 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 🙂

Previous Post
SharePoint sends emails to users but doesn’t send emails to Distribution Groups
Next Post
How to Disable IE Enhanced Security Using PowerShell

3 Comments

  • May 29, 2013 at 3:25 pm
    Reese

    Thanks!

    Reply
  • August 14, 2013 at 11:17 am
    Lawrence Armour

    Thanks if it helped

    Reply
  • June 10, 2014 at 4:46 am

    thanks it helped

    Reply

Leave a Reply