theme-sticky-logo-alt

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

9 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
  • June 26, 2020 at 11:06 am
    nonono

    thanks

    Reply
  • November 6, 2020 at 6:37 am
    Zorrow

    Thanks

    Reply
  • December 13, 2020 at 11:59 pm
    Waseem

    Thanks for quick help, it worked .

    Reply
  • February 21, 2021 at 9:53 pm
    sree

    Thanks a lot

    Reply
  • October 14, 2021 at 5:42 am
    Vit Becvar

    Thanks

    Reply
  • February 9, 2022 at 1:37 am
    siva

    Thanks!!!!!

    Reply

Leave a Reply

15 49.0138 8.38624 1 0 4000 1 https://vladtalkstech.com 300 1