Lessons Learned

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

July, 2013

Posts
  • Lessons Learned

    Enabling and Disabling Users

    • 0 Comments
      All good things must come to an end.  Sometimes, users become ex-users.  Here’s a quick-and-dirty way to check. One notable line here is: [bool] ( ( $_ . UserAccountControl . ToString ( )   -as   [int] )   -band  ...
  • Lessons Learned

    Exporting Event Logs in Server 2003

    • 0 Comments
    I still have to support a smattering of boxes that run Server 2003 (yes, it’s EOLed.  No, that’s not going to help.)  Vista and up have wevtutil.exe, which is wonderful.  Here’s a sample blog post extolling its crunchy-goodness. http:/...
  • Lessons Learned

    Why Use Approved Verbs?

    • 1 Comments
    PowerShell has a list of approved verbs such as Get, New, Test, and so forth. But, what if I wanted to reboot a computer?  Why not name the function "Reboot-Computer"?  What would it break?  Absolutely nothing.  You can name...
Page 1 of 1 (3 items)