Archive for March, 2014

What can I do to shrink the winsxs folder?

March 25, 2014

I found this jewel online.

Server 2008 R2 introduced the DISM (Deployment Image Servicing and Management) utility which you can apply to recover space used by files that are not needed after a service pack is installed. Note however that this makes the service pack permanent – you will not be able to uninstall it in the future if you need to do so as part of a troubleshooting process. Here’s the command you would use at an elevated command prompt:

C:\Windows\system32>dism /online /cleanup-image /spsuperseded

If the server is running the original Server 2008 (non-R2) then you have two options depending on which service pack you have installed.  Note that both utilities are found in the \Windows\system32 folder and, like the DISM tool above, both will make the service pack permanent.

  • For Server 2008 SP1 use: vsp1cln.exe
  • For Server 2008 SP2 use: cmpcln.exe

In both cases run the utility at an elevated command prompt and select Y to start the cleanup.

In real-world examples we have seen the above utilities free up 2 GB or more of disk space, which is a great start towards getting your server running smoothly again.

Advertisements

Resize VHD

March 22, 2014

This is so easy it’s almost not worth documenting here… The one important thing to remember is that you must not have any snapshots of the VM before you do this. So an export might be in order right before…

  • Open Hyper-V Manager.
  • Shutdown the VM.
  • Click on Edit VHD on the right side options.
  • Browse to the VHD.
  • Choose Expand and then how big you want it to be.
  • Click Finish and then wait several hours for it to complete.

Moving a VM with Hyper-V

March 22, 2014

Just for my reference, here’s the process (Server 2008);

  • Shutdown VM.
  • Export to new location.
  • Import that VHD.
  • Choose Copy VM (so you get a new ID if you haven’t deleted the old VM – think Safe option)
  • Don’t forget to change the old VM settings so that it doesn’t start up automatically!

PERC 6 – New Virtual Disk initilization

March 22, 2014

Created a new RAID Volume and part of that process had me jump into the BIOS app for the PERC controller.
It was as simple setup – RAID5 with a hotspare but each disk was 1TB and so the volume ended up being, well, rather large (approx 2TB).
That was fine. However I had to initialize the volume and that was taking 1.5minutes for each 1% tick. So again, approximately 2.5 hours!
Well being the fairly impatient person I can be when it comes to computers, I decided to not believe that I was being told and researched the issue.
I found that you can indeed reboot eh machine, mid-initialize! In fact Dell apparently “recommend” that you wait perhaps 2-30 minutes before you write data to it!

In other words, go right ahead and reboot that server even if the initialization is only a few percentage point complete because the PERC controller will simply pick up where it left off after it is loaded up again.

Just remember to give it a little bit of time before you dump vast quantities of data at it.

Happy days.

Word 2010 keeps asking to save Normal.dotm

March 18, 2014

This isn’t something I come across everyday so I know I’ll forget it. Also when I look at the advanced options under File and then the Save categories, “Prompt before saving Normal Template” is already unchecked!

Here’s the fix;

  • Click on the File Tab
  • Then Options
  • Add-Ins
  • At the bottom click the COM Add-ins
  • Uncheck the Send to Bluetooth option