{"id":73,"date":"2014-04-28T20:47:44","date_gmt":"2014-04-28T18:47:44","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=73"},"modified":"2014-11-28T19:12:15","modified_gmt":"2014-11-28T18:12:15","slug":"decrypt-powershell-credential","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/tutorial\/decrypt-powershell-credential\/","title":{"rendered":"decrypt powershell credential"},"content":{"rendered":"<p>If you, like me,\u00a0sometimes forget your\u00a0credentials used in a Powershell script you can decrypt them rather easily.<\/p>\n<p>The following command shows how to get the unencrypted password from a Credential type variable.<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\r\n$cred.GetNetworkCredential().password\r\n\r\n<\/pre>\n<p>Reference:<\/p>\n<p><a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2013\/03\/26\/decrypt-powershell-secure-string-password.aspx\" target=\"_blank\">http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2013\/03\/26\/decrypt-powershell-secure-string-password.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you, like me,\u00a0sometimes forget your\u00a0credentials used in a Powershell script you can decrypt them rather easily. The following command shows how to get the unencrypted password from a Credential type variable. $cred.GetNetworkCredential().password Reference: http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2013\/03\/26\/decrypt-powershell-secure-string-password.aspx<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[12,8],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/73"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":2,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}