Lessons Learned

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

June, 2014

Posts
  • Lessons Learned

    Yet Another Password Generator

    • 0 Comments
    This must be freshman programming again.  I’m redoing CredLocker and want the way to parametrically generate passwords with minimum character set counts. This is also a good example of New-Object System.Random and [char[]]”Casting a string to char...
  • Lessons Learned

    Reinventing the Wheel: Get-WmiChildNamespace and Get-WmiChildPropertyData

    • 0 Comments
    I love and hate WMI.  I love how it offers the ability to access so many parts of the OS that PowerShell has not (yet) exposed via cmdlet.  I hate how the taxonomy is so deep, how you need to know what you’re looking for to find it. Also, I...
  • Lessons Learned

    Copy-History – Copy a Previous Command to the Clipboard

    • 0 Comments
    It’s great that I can see my history with Get-History, but what if I want to edit it?  I can hit up-arrow to find it, but that doesn’t work if I copy-and-paste functions into my PowerShell window as I write/test the function?  In that case,...
  • Lessons Learned

    Suspend-Computer (a.k.a. Sleep)

    • 0 Comments
    Shutdown.exe hibernates a computer, but there's no easy way to put a computer to sleep. One possible reason is that shutdown.exe’s /s, /l, and /e flags are already defined, and /p isn’t the most intuitive mnemonic for’ ‘sleep’...
  • Lessons Learned

    Windows Experience Index on 8.1

    • 0 Comments
    Firstly, thanks to http://www.intowindows.com/get-windows-experience-index-wei-score-in-windows-8-1/ for the underlying magic: WinSAT.exe. Under Windows 8.1, the Windows Experience Index is no longer exposed under Computer | System Properties.  That...
Page 1 of 1 (5 items)