Created
February 28, 2018 14:27
-
-
Save atifaziz/5987a553f173ea474274f9a80a2cd996 to your computer and use it in GitHub Desktop.
Show ApiKeys from NuGet.Config
This file contains 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
Add-Type -AssemblyName System.Security; ([xml](type -Raw C:\Users\aziz1a\AppData\Roaming\NuGet\NuGet.Config)).configuration.apiKeys.add | Add-Member -PassThru original -Type ScriptProperty { [Text.Encoding]::UTF8.GetString([Security.Cryptography.ProtectedData]::Unprotect([Conver | |
t]::FromBase64String($this.value), [Text.Encoding]::UTF8.GetBytes('NuGet'), 'CurrentUser')) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment