Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weirdpattern/7843ce03e79e9526f2b0a57c20690001 to your computer and use it in GitHub Desktop.
Save weirdpattern/7843ce03e79e9526f2b0a57c20690001 to your computer and use it in GitHub Desktop.
.2016.11.01.decrypt-config-iis-application
2016.11.01.decrypt-config-iis-application
# Given a configuration fle like
# <configuration>
# <configProtectedData>
# <providers>
# <add name="MyProtectedConfigurationProvider"
# type="System.Configuration.RsaProtectedConfigurationProvider, ..."
# keyContainerName="MyKeyContainer"
# useMachineContainer="true" />
# </providers>
# </configProtectedData>
# </configuration>
$ cd "$env.WINDIR/Microsoft.NET/Framework64/v4.0.30319"
$ .\aspnet_regiis -pd connectionStrings -app "/Default Website"
Microsoft (R) ASP.NET RegIIS version 4.0.30319.18408
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Decrypting configuration sections...
Succeeded!
aspnet_regiis -pd <section> -app <virtualPath> [-location <subPath>] [-pkm]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment