Created
November 26, 2014 02:38
-
-
Save sweeneyrobb/a8660ffac098c25bcb5b to your computer and use it in GitHub Desktop.
Will prompt for which web.config modification entries to remove from an SPWebApplication. Useful when developer forgets to create a retract handler.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app = get-spwebapplication "http://{webapp_url}" | |
$mods = $app.WebConfigModifications | |
$mods.Remove(($mods | out-gridview -PassThru)) | |
$app.Parent.Update() | |
$app.Parent.ApplyWebConfigModifications() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment