Windows Server 2012 PowerShell Cmdlets for Hyper-V help

In Windows 2008 & Windows2008 R2 there were no official PowerShell Cmdlets available for Hyper-V. This is changed in Windows 2012 and Windows 8. Windows Server 2012 and 8 has 162 or more PowerShell Cmdlets available for Hyper-V. Windows 8 uses PowerShell version 3.

Cmdlets are very powerful, that lets you automate all aspects of Hyper-V.  Here some guidance how-to find the Cmdlets you need.

To view all the Hyper-V PowerShell Cmdlets:

Get-Command -Module Hyper-V

To search for Cmdlets, for example with the name “host” in it: 

Get-Command -Module Hyper-V -Noun *host*


To get the Cmdlet syntax:

Get-VMHost -?



Get the Cmdlet syntax and available parameters, details and examples:

get-Help Get-VMHost -Full


More information over the Hyper-V Cmdlets can be found here. PowerShell 3.0 is available as Community Technology Preview (CTP) found here.




Install Windows 8 Consumer Preview as VM in VMware vSphere 5

Today the Windows 8 Consumer Preview is launched. To install the Windows 8 Consumer Preview as VM in VMware vSphere 5, use the following steps:

1. Install VMware ESXi 5.0 patch release ESXi500-201112001. If you didn’t install the patch the following screen appears when booting the Windows 8 ISO:


Your computer ran into a problem and needs to restart

2. When the patch is installed, create a new VM and choose the following settings:

image image
1. Choose custom 2. Enter VM Name
image image
3. Select datastore 4. Virtual Machine Version 8
image image
5. Choose Microsoft Windows 7 64-bit 6. Select the amount of processor and cores needed
image image
7. Enter memory 8. Select E1000 network adapter
image image
9. Select default SCSI controller 10. Create New disk
image image
11. Enter the desired disk size (default) 12 Select controller
13. Finish

3. Edit the VM configuration and change the following settings:

image image
Enable 3D graphics Choose the Windows 8 ISO to boot from
Select as guest OS “Microsoft Windows 8 Server (64-bit)”

4. Boot the VM and install Windows 8

Now you’re able to install Windows 8 as VM in VMware vSphere 5.


More information can be found here.


Updated: March 8 2012, Removed typos in blog.




Create a bootable USB to install Windows 8 Server or Hyper-V Server 8

Not all servers nowadays have DVD player installed. Sometimes it is handy to boot from USB and install for example Windows Server 8. Here’s a example how to make the USB stick bootable for the following OS versions:

– Windows Server 8

– Hyper-V Server 8

– Server 2008 R2

– Hyper-V Server R2


– Need 4 GB USB memory stick or more

– Download the desired ISO and save it

Stick the USB stick on a  free USB port on your computer equipped with a Windows OS. For this example I used Windows7 as Operating System. Clear the USB stick and create a partition on it by using the following command’s:

Open the command prompt ((make sure you run the cmd prompt as administrator)


list disk "list the disk in your system including the USB"
select disk "USB number"
create partition primary
format fs=fat32 quick

Mount the ISO  and copy all the content of the desired ISO to USB stick. For mounting the ISO I used “Deamon Tools Lite”.

Now the bootable stick is ready for use.  Boot your server with the stick and your able to install Windows 8, Windows 8 Server, 2008 R2 or Hyper-V server 8.