Lessons Learned

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

July, 2013

  • Lessons Learned

    Why Use Approved Verbs?

    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...
  • Lessons Learned

    Exporting Event Logs in Server 2003

    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

    Enabling and Disabling Users

      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  ...
Page 1 of 1 (3 items)