All blogs / Software / engineering practice
Lessons Learned
learn.microsoft.com/en-us/archive/blogs/timid
My drop-site for interesting snippets and tips. If it's useful to you as well, great!
Software / engineering practiceDev tools / editors / IDEsMicrosoft blogsMSDN archive
- Posts
- 215 from 4 Aug 2009 to 1 Dec 2015
- Posting
- archived, read-only
- Kind
- personal blog
- Feed
- https://learn.microsoft.com/en-us/archive/blogs/timid/feed.xml
2015 11
- Active Directory - Creating Install From Media dump
- Converting Whitespace-Indented Output to XML
- Moving Computer AD Objects
- IE, ADFS, and Overkill
- Backing Up BitLocker Keys to OneDrive as a Scheduled Task
- Configuring the ISE
- Left-Padding a String
- One-Liner: Left-Padding a String with Zeroes
- IPv4 Addresses and CIDR Fun
- PowerShell ISE Environment Keyboard Shortcuts, Part 2
- PowerShell ISE Environment Keyboard Shortcuts
2014 67
- $PSModuleAutoLoadingPreference and You
- Filtering Show-NetIPSec Rules based on IP Address
- Importing Azure RDC Files into RDCMan.exe’s RDG
- Namespaces, Why Does It Always Have To Be Namespaces?
- Backing Up BitLocker Recover Key (Strikes Again!)
- SkyDrive, OneDrive, Let’s Call the Whole Thing Off
- $PSBoundParameters and CommonParameters (-WhatIf, -Debug, etc.)
- I Hate Write-Host So Much…
- YOMER Yet One More Error Reporting (Method)
- Subshells (by the Seashore?)
- Send-Keys
- Decrypting SecureStrings (Once More!)
- One-Liner: PowerShell Tools for Visual Studio 2013
- Starting Elevated PowerShell Windows
- Creating Local Users
- Querying WMI with a Timeout
- Storing SecureStrings Machine-Independently
- Comparing Performance Counters
- One-Liner: Symlinks and Windows
- Getting SRV Records with PowerShell
- One-Liner: Valid PSH Verbs
- MSSQL Server Error Logs
- One-Liner: Padding a Number with Leading Zeroes
- Reinventing the Wheel: Get-WmiChildNamespace and Get-WmiChildPropertyData
- Copy-History – Copy a Previous Command to the Clipboard
- Suspend-Computer (a.k.a. Sleep)
- Windows Experience Index on 8.1
- HP Power Supplies
- #StupidProfileTrick - FunctionList
- Something I Should Have Done a While Ago: $continue
- 8.3, the Undead Path
- Write-Error, $Error, and Users
- VM Host
- Setting Cross-Forest Passwords
- Selecting an XML Element by #text value
- PowerShell for N00bs: Libraries, Paths, and You
- PowerShell –EncodedCommand and Round-Trips
- Scripting Best Practices, or Write-Host Considered Harmful
- Hotkeys and RDC Man
- Do-Something | Set-Variable Foo
- Function Skeleton for Invoke-Command –AsJob
- Parsing Dates by Hand
- CredLocker – Storing PSCredentials to File
- Invoke-WebRequest, a First Attempt
- Capturing Write-Noun Cmdlet Output
- One-Liner: Getting My Documents and Other Special Folders
- WMI and HP Product IDs
- Enums, Enums, Enums, a One-Liner
- WMI-Less Network Adapters
- Getting Event Logs with wevtutil.exe
- One-Liner: Resetting Desktop Toolbar
- Those Who Don’t Know Their History…
- I Should Have Done This Years Ago (New-Shortcut, Revisited)
- Meatball Surgery, the Taskbar, Toolbars, and You
- The Clipboard
- Finding Disk Hogs (i.e. Large Folders)
- Sanity-Checking RDG Files
- Modules vs. Scripts: It’s Not Just the Letter ‘M’
- Stupid Profile Trick: $PROFILE as Module
- Prompts
- CorpNet ProjectFunctionLibrary.psm1
- Getting Disk Usage
- Getting an SHA256 Hash
- Loop-de-Loop
- Read-Host With a Timeout, Kind Of…
- Testing Timestamps of Files Across a Slow Network
- Getting Version Data From Comment Based Help
2013 46
- One-Liner(s): X509 Certificate Store Names and You
- One-Liner: Case-Insensitive XML Queries
- Regular Expressions, Search-and-Replace Interpolation and Delegates
- Splitting a Hex-Encoded String into Pairs of Hex Characters (a.k.a. To Pull a Noah)
- Tip: Passing [switch]Parameters to Nested Functions
- Rehash: Playing with Window Size
- Capturing the Console Buffer
- Lenovo W530 and the Context Menu Key
- Windows 8, the F8 Key, and You
- Printing to Text
- BitLocker and Self-Immolation
- Stupid Microsoft Word Trick: Boilerplate Text (Same Source Text, Multiple Instances)
- Stupid Microsoft Word Trick: Multilevel Numbered Headings
- Drive-by: PowerGUI Visual Studio Extension
- Getting User Names for Processes
- PowerShell Integration with Visual Studio 12
- Enabling and Disabling Users
- Exporting Event Logs in Server 2003
- Why Use Approved Verbs?
- More Fun with Passwords
- Rehash: Testing for a 302 Redirect
- Rehash: Testing Web Pages Once More
- Setting Font in PowerShell.exe Window, Sort Of…
- Importing and Removing Certificates
- DFS (Distributed File System) Mountpoints Across Sites
- Getting Network Adapter Speed
- Getting OCS 2007 Certs through WMI Revisited
- Number of Processors vs. Number of Cores Revisited
- Certificate Chains
- Hack(saw)ing the Surface Pro
- RDCman Config Files (*.rdg)
- Futzing With System Variables
- Stopping Services Remotely and Recursively (But Without Recursion)
- Adding a Timestamp to a Pipeline of Strings
- Batch-Getting BIOS Serial Numbers
- Batch-Getting IP Addresses
- When Were These Computers Last Rebooted?
- Removing Monitoring Agents (Not Really)
- Getting Computer Memory Usage
- Fun with PSCredentials
- Converting PsCustomObject To/From Hashtables
- AppWiz.cpl in PowerShell
- PSH V1 Get-Tail
- Get-FileVersion
- Getting An SSL Web Page’s Certificate
- SQL Fun(ctions)
2012 13
- Removing Null Values
- Another Way to Create NoteProperty Entries
- Securely Storing a Password
- Why Semi-Colons?
- Laziness and XML: New-XmlElement
- Out-Error, the User-friendlier Write-Error
- One-Liner: Dotting in vs. Running a Script
- Getting OCS 2007 Certs through WMI
- Creating a Multi-Host Cert MMC
- Dumping ILO (and Other DHCP Addresses)
- RSA Authentication Manager User Auditing
- Clock Skew and You
- Set-ExecutionPolicy Fun
2011 41
- Batch-Unzipping Files
- Displaying an OCS Proxy Server's List of Trusted Servers
- Certificates Owned by a Service
- Hash to Arrayof Objects
- Propagating Default Options
- No Reply All
- Heavyweight Help in V1
- Quick and Dirty Help
- Getting Remote Event Logs
- Why Use Semi-colons
- Abbreviated Key Names in Synthetic Properties
- A Loop of One
- PowerShell and IIS Logs
- Getting Objects Out of AD
- PSH V1 or V2?
- XPath and attribute value strings
- Scanning for Binaries and Version
- Testing a Port
- Ignoring SSL Certificate Errors with WebClient
- "Manage Your Server" Welcome Screen
- Remotely Logging off RDP Sessions
- Don't Do This: PSExec'ing a Batch Script Containing a PowerShell Script
- PowerShell for Unix's "data | sort | uniq -c" and "sort -u"
- Number of Processors vs. Number of Cores
- Is Oracle WebLogic10 Installed?
- Test if IIS6 installed and .NET 2.0 Registered?
- Is East Asian Langauges Pack Installed?
- Is .Net 3.5 Installed?
- Is NetBIOS over TCP/IP Enabled?
- System Variables on Remote Machine
- Stupid PSH Trick: Diffing Lists
- My Way of Logging Problems: Log-Problem
- Playing with Window Size
- User Names, SIDs and Active Directory
- Auditing Forefront Endpoint Protection 2010's Exclusion List
- Getting Web Proxy Settings
- Stupid Tricks with REG_BINARY Registry Data
- SID, User Names, and Active Directory
- Nicely Wrapping a Line of text to STDOUT
- PowerShell, Downloaded Scripts, and Alternate Data Streams
- Pinging a Hostname with Timeout
2010 4
2009 33
- One-Liner: Setting Default Web Proxy for Windows Server 2003 and 2008
- PowerShell One-Liner: Getting This Computer's Asset Tag Number
- PowerShell for Non-N00bs: Formatting Time With RegEx
- PowerShell for Non-N00bs: System Uptime Via WMI
- PowerShell for Non-N00bs: Adding a User to a Group (with Script)
- One-Liner: Getting This Computer's Serial Number
- PowerShell One-Liner: Removing a System Variable
- PowerShell for N00bs: $env:temp vs. %TEMP%
- PowerShell for Non-N00bs: Certificates Installed on a Remote Host
- PowerShell for Non-N00bs: Certificate Files
- Free Beginner's PowerShell eBook
- PowerShell for Non-N00bs: [PSObject]::AddNodeProperty - the Missing Link
- PowerShell for Non-N00bs: [PSObject]::AddNodeProperty - the Missing Link
- PowerShell One-Liner: What's the Function Name?
- PowerShell One-Liner: Hardware SKU
- PowerShell One-Liner: Strings to Arrays and Back Again
- PowerShell One-Liner: Stripping Comments and Blanks
- TechTips: Debuggers, Process Explorer and Symbols
- PowerShell One-Liner: Decrypt-SecureString
- PowerShell for Non-N00bs: Symlinks
- Tech Tips: Command Prompt++ - the console.exe tool
- PowerShell One-Liner: List Time Formats
- TechTips: Don't Recall, Delay (Your Email, That Is)
- PowerShell for N00bs 4: More Properties than a Monopoly Board
- PowerShell One-Liner: Is this a debug build or not?
- PowerShell One-Liner: sort | uniq -c
- PowerShell for Non-N00bs: My Script Outline
- PowerShell for N00bs 3: What's a.k.a. short for?
- PowerShell for N00bs 2: Power Under the Hood
- PowerShell for Non-N00bs: How Much is That Character in the Window? (Or, How to Change Your Password Without Really Trying)
- Automated Logins with PuTTY, Pagent, ssh and ssh-agent
- PowerShell for N00bs 1: Hello, World
- PowerShell for N00bs 0: References