Windows Server

Hyper-V: Compact Hyper-V Virtual Hard Disk

I am attempting to do some quick cleanup on a Hyper-V host used for testing.

To do this I compacted the Hyper-V Virtual Disks.

  1. Open the Hyper-V Management console
  2. Right click on VM Guest
  3. Select Settings
  4. Select the Hard Drive for the VM Guest
  5. Click the Edit button
  6. Select Compact
  7. Click Finish

*note* you want to do this on dynamically expanding disk types

Server 2012 R2 Data Deduplication on Windows 8.1

Talking a late walk around features of Windows Server 2012 R2. One of the features that interested me was the deduplicaiton feature. Naturally I want to run this on my Windows desktop. So my journey began.

Warning these steps and method are no way supported by Microsoft; use at your own risk.

To pull this off you need to acquire files from a Windows Server 2012 R2 installation.

Here is a list of the cab files:

Microsoft-Windows-Dedup-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384.cab
Microsoft-Windows-Dedup-Package~31bf3856ad364e35~amd64~~6.3.9600.16384.cab
Microsoft-Windows-FileServer-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384.cab
Microsoft-Windows-FileServer-Package~31bf3856ad364e35~amd64~~6.3.9600.16384.cab
Microsoft-Windows-VdsInterop-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384.cab
Microsoft-Windows-VdsInterop-Package~31bf3856ad364e35~amd64~~6.3.9600.16384.cab

Here is a link I am sharing out from MEGA that has them all archived.

Microsoft-Windows-Dedup-Package.zip (4.2 MB)

Steps to follow:

Place all files into a folder

Next open a command prompt running as administrator

Execute the following dism command:

You can also run them one at time

Once all have completed successfully you need to issue the following command to enable the feature

This can also be done via the “Turn Windows features on or off” under Program and Features

At this point the feature is installed and enable and you only need to specify what volumes you would like to deduplicate.

 

Supporting Sources and Thanks: Wei King , Bernard Khoo

Tech Short: Use Windows Management Instrumentation Command to List Windows Updates

To list the updates that have been installed on a Windows 8.1 or Windows 2012 Server simply issue the following command in a command prompt window

That’s it

Disable Windows Firewall On Windows Server 2012 R2 Server Core

After my install of Windows Server 2012 R2 Server Core, I wanted to manage the system via RSAT and Remote Desktop. However the firewall was preventing me from completing such tasks. That said, this is how we can disable the firewall

From the command prompt type the following command:

 

HowTo Install VMware Tools On Windows Server 2102 R2 Server Core

After installing Windows Server 2012 R2 Server Core as a guest in my VMware Lab I wanted install the VMware software tools that enhances the performance of the guest operating system and improves management of the virtual machine.

To do this I logged into the console via the vCenter Client were I could access the server core console

From the vCenter Console to the following:

  • Go to VM->Guest->Install/Upgrade VMware Tools
  • Change to the D: drive at the command prompt
  • Enter the following command: setup64.exe /S /v “/qn REBOOT=Y”

Here is some additional switches you can attempt