# Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!
Posts
• #### One-Liner: Getting My Documents and Other Special Folders

• 0 Comments
I have roaming profiles, which is great until I need to reference stuff in my Documents folder. Sure, I can hardcode \\ProfilerServer10\Mydocs2\timdunn\My Documents into my script, but I want to make my scripts more reusable by my team members. The closest...

• 0 Comments
• #### I Should Have Done This Years Ago (New-Shortcut, Revisited)

• 0 Comments
In spite of having this blog, sometimes I rewrite a function because I forgot I wrote it already.  Case in point, New-Shortcut.  It was one of my earlier entries in this blog: http://blogs.msdn.com/b/timid/archive/2009/09/06/powershell-for-non...
• #### Meatball Surgery, the Taskbar, Toolbars, and You

• 2 Comments
It takes me a while, but when I get used to something, I hate to change.  Windows 7 introduced the new Taskbar, and I hate it.  I hate having to click or hover over a ‘stack’ PSH windows to select one. I prefer the old XP (rest in peace) way...
• #### The Clipboard

• 0 Comments
Talk about a sea change. I started off wondering how to read text out of the clipboard. Thanks to this link below, that’s trivial, and it even showed me a better way than | clip.exe to stuff it into the clipboard. My exact words: “Well, that...
• #### I Never MetaCharacter (I Didn’t Like)

• 1 Comments
Lame title jokes aside, a metacharacter is a character that describes other characters. Put together, they form Regular Expressions. Regular expressions are used for string matching, which is a less threatening way of saying parsing . Basically, with...
• #### Finding Disk Hogs (i.e. Large Folders)

• 0 Comments
“Disk full? It was only at 60% last week! Where did all the space go?” If you haven’t said this, then you probably won’t appreciate this post. It seems such a relatively simple task – give me a list of the biggest folders...
• #### Sanity-Checking RDG Files

• 1 Comments
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...

• 0 Comments

• 0 Comments

• 0 Comments
• #### Testing Timestamps of Files Across a Slow Network

• 0 Comments
I’m not sure if this is because of network lag, or the fact that my lab is on a different AD domain (and different NTP clock) than my local computer.  All I know is: (Get-Item local\path\to\OriginalFile.txt).LastWriteTime –eq (Get-Item remote\path...
• #### Getting Version Data From Comment Based Help

• 0 Comments
Disclaimer: There’s a lot of parse-by-prayer here. You Have Been Warned. Here’s the short form: I try to keep a change log of sorts in the comment-based help for my scripts. (I say try because that’s sadly the first thing to be omitted...
• #### One-Liner(s): X509 Certificate Store Names and You

• 1 Comments

All right, we know that we can access a remote computer's various X509Certificate stores via .NET, and 'My' corresponds to "Local Computer\Personal\Certificates". What are the other names?

...
Page 3 of 9 (215 items) 12345»