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 net stop wuauserv reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v PingID /f reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v AccountDomainSid /f reg.exe delete…

0

Virtual Machine Snapshots and SharePoint Development, Part 2

In part 1 of this post, I introduced the way I use VM snapshots to allow me to quickly rollback my SharePoint development VMs to key points in time. For example, I can quickly revert to a “baseline SharePoint Server 2010 configuration” in which no Web applications have been created (besides Central Administration) and the…

0

Virtual Machine Snapshots and SharePoint Development, Part 1

In a comment I made last week on one of my earlier posts, I mentioned how a few months ago I started using Hyper-V snapshots so I can quickly rollback my SharePoint development VMs to key points in time. The following screenshot shows the snapshots for my primary SharePoint Server 2010 development VM (FOOBAR5): Figure…

0

Creating Small VHDs (< 1GB) for Hyper-V

In my previous post, I explained how I like to create separate VHDs for data and log files in my SharePoint development VMs. However, given the very small amount of content that I typically load into a SharePoint development environment, these VHDs certainly don’t need to be very large. In the past, I’ve typically created…

0

Removing "Stale" Network Adapters in Hyper-V VM

Each time I create (or recreate) a virtual machine in Hyper-V using one of my SysPrep’ed images, I usually end up having to do a quick Internet search for: device manager show hidden devices I’m a little embarrassed to say that I simply can’t remember the environment variable that I need to set in order…

0

Resolving Issues After Applying Hyper-V Snapshot

This morning I rolled back one of my development VMs to a snapshot I created about a month ago. When I subsequently tried to login with my domain credentials, I encountered the following error: The trust relationship between this workstation and the primary domain failed. I did a quick Internet search for this error and…

0

Save Significant Disk Space by Setting MaxPatchCacheSize to 0

A little over two years ago, I wrote a post about installing Visual Studio 2005 Service Pack 1, in which I mentioned setting the MaxPatchCacheSize registry setting to 0 (in order to save some significant disk space while installing the service pack). [Note that the credit for this trick really goes to Heath Stewart –…

2

Stagger the Startup of Your Virtual Machines

I’ve mentioned before how I run two Hyper-V servers in the “Jameson Datacenter” (each one hosting a variety of different VMs). On the rare occasion that a patch comes out on Windows Update that affects Windows Server 2008 Server Core edition (such as earlier this week), I typically need to schedule a reboot of the…

1

Running Domain Controllers in Hyper-V

In a previous post, I noted how the “Jameson Datacenter” (a.k.a. my home lab) currently runs two domain controllers (DCs) on a couple of VMs. If you choose to virtualize one or more DCs in your environment, make sure you are aware of the considerations, risks, and recommendations detailed in the following TechNet guide: Running…

0

Creating a VM/VHD Library

Last week a colleague was asking me how I manage my various VMs. More specifically, he wanted to know how I created SysPrep’ed images in order to quickly “spin up” new VMs for development, testing, or demo purposes. Note that I like to keep my environments as “clean” as possible. Consequently, I don’t want my…

2