Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

Toolbox

There are 32 entries for the tag Toolbox.

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.

PowerShell Scripts for Managing MaxPatchCacheSize

Here's a pair of PowerShell scripts for quickly setting and verifying the MaxPatchCacheSize registry setting.

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.

Script to Reset WSUS for SysPrep'ed Image

Here's a useful script for those, like me, that use SysPrep'ed images to create new virtual machines and also leverage Windows Server Update Services (WSUS) to keep machines up-to-date with the latest patches. Reset WSUS for SysPrep Image.cmd ...

What's in your Jump List?

Nearly three years ago, I wrote a post that described the BackedUp and NotBackedUp folders I use on almost every computer I ever log on to (my laptop, desktop, a handful of servers, and more than a dozen VMs). I also showed how I created taskbar shortcuts...

Script to Save Event Logs

Earlier this week , I shared a script that I frequently use in my development environments to clear the event logs (for example, whenever I want to verify that one of my VMs "boots clean" -- meaning without any errors or warnings). Note that prior to...

Script to Clear (and Save) Event Logs

As I was writing my first post earlier this morning , I wondered if I had previously shared the script I use to quickly clear the event logs on a server (but saving them first -- just in case I need to go back and retrieve something from the "archive...

Script to Restart SharePoint 2010 Services

A couple of years ago, I shared a script ( Restart SharePoint Services.cmd ) for restarting the various services in Microsoft Office SharePoint Server (MOSS) 2007. I've since created a new version of the script for use with SharePoint Server 2010....

ProcDump - An Easier Way to Create a Mini-Dump

In a previous post , I mentioned an issue I've been having with Expression Web 4 crashing on me. In that post, I mentioned a few ways that you can create a mini-dump for a process (e.g. with Visual Studio, WinDbg, or ADPlus). A couple of weeks ago...

Recommended ISO Tools

I added a new item to my Toolbox this weekend -- LC ISO Creator . It's not fancy, or even supported, but it is free and it appears to do what it is supposed to without issue, specifically creating an ISO image from an existing CD-ROM or DVD-ROM. There...

SketchPath - The XPath Tool

I added another tool to my Toolbox yesterday: SketchPath. The SketchPath site labels it as "The XPath Tool" but I'd say it more like " The XPath Tool." I've seen a few other tools for quickly building and testing XPath expressions against an XML...

Using Password Minder to Manage Your Passwords

I started using Password Minder almost immediately after reading about it in the July 2004 edition of MSDN Magazine. I don't know about you, but trying to remember all of my various passwords for dozens of Web sites, numerous network accounts, VMs, etc...

Using Robocopy to Move Files and Folders

I use Robocopy a lot, and it's been in my Toolbox for so long that I hardly remember using anything else. I was glad to see that it is now included out-of-the-box (starting with Vista), because I typically use it instead of Windows Explorer to move or...

Add Rooler to Your Web Development Toolbox

This past May, one of my colleagues notified me of a new tool called "Rooler" that allows you to easily measure anything displayed on your screen. I definitely consider this tool a "must have" for anyone out there doing Web development. While tools...

Formatting Code for My Blog

It occurred to me this morning that while I previously shared some details on how I manage my MSDN blog , I've never shared my method for formatting code for the Web. Actually, calling it "my method" is definitely a bit of a stretch. I certainly didn...

HVRemote and Remote Administration of Hyper-V from Windows 7

Last Sunday, I rebuilt my desktop ( WOLVERINE ) with the RTM build of Windows 7 Ultimate (x64). Previously, I'd been running the RC1 bits and I figured it was about time I got around to "upgrading" to the RTM version. [I say "upgrading" because -- at...

Comparing Source Code Branches

During the more than three years I spent helping Agilent Technologies migrate their Internet site from their legacy, proprietary platform to Microsoft Office SharePoint Server (MOSS) 2007, we unfortunately never used Team Foundation Server (TFS). Instead...

Starting and Stopping Hyper-V VMs with Server Core

Last week before heading out to the airport for my SharePoint 2010 training, I powered down the "Jameson Datacenter" (i.e. the four computers running in my home office). Since I would be gone for almost 8 full days, it didn't make sense to waste the electricity...

Temporary ASP.NET Files Are Not Deleted

Yesterday afternoon, I discovered that there were 64,725 items (consuming 2.41 GB) in the C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root folder of my development VM for Microsoft Office SharePoint Server (MOSS) 2007. Apparently...

Extraneous SharePoint Assemblies

If you develop solutions for Microsoft Office SharePoint Server (MOSS) 2007, you may notice that certain SharePoint assemblies always get copied to your Visual Studio project output folder even though these referenced assemblies are configured with Copy...

Script to Restart SharePoint Services

Since my previous post introduced one of my SharePoint Toolbox scripts, I thought I should share another one that is more applicable to a broader audience. As I've noted in the past , memory leaks are certainly not uncommon in the world of SharePoint...

SharePoint ULS Logs Flooded with "Preserving template record with size..."

I was digging through my blog dashboard this morning and I came across this post that I started back in January but apparently never got it past "draft mode." I figured it was time to finish it off. If you've been using Windows SharePoint Services...

XSLT "Identity Transform"

Last week, I was explaining to a teammate that it is often helpful to use the XSLT "Identity Transform" in order to view the raw XML -- in other words, without any "real" transformation by the XSL stylesheet. For example, suppose you need to customize...

DiffMerge - A Better Differencing Tool

Last summer, I added DiffMerge to my Toolbox and I haven't used WinDiff since. DiffMerge can do everything WinDiff can, plus a whole lot more -- like intra-line highlighting, merging, and comparing files using configurable rulesets (although you'll...

Backing Up User Databases in SQL Server (and SQL Server Express)

Since I appear to be on a roll with my blog this morning, I figured that I should write one more post about SQL Server before I get back to my "day job." I typically use SQL Server Management Studio to configure and schedule database backups, because...

Counting Rows in All Database Tables in SQL Server

Here is yet another of the SQL scripts that I like to keep handy in my toolbox: Count Records in All Tables.sql Sometimes when I get "dropped into" a consulting situation with a new customer, I need to quickly get acquainted with one or more of their...

Shrinking All Database Files in SQL Server

Here is another SQL script that I keep handy in my toolbox: Shrink All Database Files.sql . Unlike the script that I shared in my previous post that simply truncated all transaction logs to free up disk space, this script is suitable for running in a...

Truncating All Transaction Logs in SQL Server

One of the SQL scripts that I keep handy in my toolbox is Truncate All Transaction Logs.sql . While I would never recommend running this script in a Production environment (PROD), I find it to be very helpful for periodically freeing up disk space in...

BackedUp and NotBackedUp

About four years ago, one of the partners that I was working on an engagement with commented on how developers tend to have their own unique way of managing files, but that mine was one of the most bizarre he had ever seen. It has been four years, but...