Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: Storing SecureStrings Machine-Independently

    As part of a brown bag, I extracted out the logic CredLocker uses to store credentials.  Here’s the guts of the code. The short form is unchanged from the Credlocker post, but I’ve cleaned it up. - It prompts the user for a password if $Host.CredentialStoreCredential doesn’t exist, or if Get-CredentialStoreCredential...
  • Blog Post: Getting an SHA256 Hash

    To steal from the .DESCRIPTION section of the comment-based help: “Yes, PowerShell3 has Get-FileHash, but I have some PSH V2 environments that don't benefit from that yummy goodness.” function Get-Sha256Hash { <# .SYNOPSIS Get SHA256 checksum .DESCRIPTION Get SHA256...
Page 1 of 1 (2 items)