Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

Development

PowerShell Script for Clearing Windows Event Logs

Sure, you can just type "wevtutil el | % { wevtutil cl $_ }" whenever you feel like it, but how fun is that?!

PowerShell Scripts for Managing the Path Environment Variable

Even though it doesn't take long to add a folder to %Path% by clicking through Windows, I prefer to do this using a little PowerShell instead.

PowerShell Scripts for Managing BackConnectionHostNames (KB 896861)

Here's a set of scripts to make it easier to view the items in the "BackConnectionHostNames" registry key, as well as add and remove hostnames.

PowerShell Scripts for Managing the Hosts File

Here's a set of scripts to make it easier to view the hostname mappings in the hosts file, as well as add and remove hostnames.

Some Tips for Managing TFS Workspaces

Are you familiar with the "tfpt scorch" command? Have you ever used PowerShell to quickly cloak/uncloak folders in your TFS workspaces? If not, here are a couple of tips that could save you a little time.

"Development Cheat Sheets"

In this post, I explain how I like to use Microsoft OneNote to manage what I call "development cheat sheets" -- which are especially useful when developing SharePoint solutions.

Just say "no" to writing SharePoint CAML queries from scratch

Do you use the U2U CAML Query Builder instead of writing CAML queries from scratch? If not, then you must really know your SharePoint (or perhaps you just enjoy making things harder than they need to be).

Import website (IIS) logs into SQL Server using Log Parser and PowerShell

Here's a little PowerShell script I whipped up to import the TechnologyToolbox.com log files into a SQL Server database for some "quick and dirty" analysis.

Why I chose not to programmatically filter errors reported by ELMAH

If you think that programmatically filtering errors in ELMAH is as easy as specifying filters in Web.config, you might be in for a surprise.

Unit tests for filtering errors in ELMAH

In my previous post, I briefly mentioned the unit tests I created while trying to figure out why my ELMAH filter was not working as expected. Well, here they are for your enjoyment (or idle curiosity).

Full Development Archive