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: Getting Trusted Domain Computer Names

    The -replace '\..*', $domain snippet is in case here's some AD funkiness that returns the FQDN from the external DNS record instead of internal. Some of my labs expose machines to other labs. Dammit, Jim, I'm a lab admin, not the DNS guru. function Get-ComputerNameFromTrustedDomain { if ( ! ( Get...
  • Blog Post: Setting Cross-Forest Passwords

    In my test labs, some of the more specialized testing labs (perf, specifically) have one-way trust with the larger test domain.  This means I can set (or, in the case of some coworkers) reset credentials when they don’t log into the smaller domain frequently enough.  You can do it via dsa.msc...
  • Blog Post: Sanity-Checking RDG Files

    Remote Desktop Connection Manager is a must-have tool. However, it too easily falls out of date. Depending on your environment, you might be spinning up new machines regularly, especially if you’re in a virtualized environment. Here’s a quick way to see if your .RDG file and your AD server...
  • Blog Post: 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   2 ) ; With AD, the second bit from the right is the...
Page 1 of 1 (4 items)