Hyper-V on Windows 8 (Pro or Enterprise)

Looking for a hypervisor on Windows 8? Look no further. If your Windows 8 is Pro or Enterprise Hyper-V is available as a feature, and can be enabled easily as long as your system complies with there requirements:

  • Windows 8 Pro or Windows 8 Enterprise (64-bit Operating System)
  • Minimum of 4GB of RAM
  • Hardware Assisted Virtualization (HAV) – (This may appear as Intel VT)
  • Dynamic Execution Prevention or No Execute (DEP/NX)
  • Second Level Address Translation (SLAT)

 

Open Windows Features to check if Hyper-V is enabled:

WindowsFeatureNoHyperV

 

To enable the Hyper-V feature check the box and press OK:

WindowsFeatureEnableHyperV

 

 

When the Hyper-V feature is enabled your computer needs to be restarted:

WindowsFeatureEnableHyperV_Restart

 

After restart Hyper-V will appear on your Start Screen:

StartScreenHyperV2

 

Hyper-V on your Windows 8 can be managed using Hyper-V Manager as any Hyper-V running on a Windows Server:

HyperV_Manager

Write Event to Windows Event Log using PowerShell

 

Creating an EventLog entry using PowerShell is shown below:

 

Note: The Event Source needs to be created before writing entries to the Event Log. (See this post for further info: Create Event Source with PowerShell)

 

 

Useful command lines to access different parts of Windows Control Panel

Use these commands (.cpl) to gain fast access to different part of the Windows Control Panel:

Create Event Source with PowerShell

To create a Event Source in PowerShell use this:

Get more info on CreateEventSource method here : http://msdn.microsoft.com/en-us/library/2awhba7a.aspx

 

In PowerShell 2.0 this is even simpler:

 

Enumerate COM classes using WMI

 

Quick and short way of enumerating COM classes is using the WMI class Win32_ClassicComClassSetting.

Example:

 

 

EventLog: Determine Windows startup (Event Log Service)

To determine when Windows was started search for Event ID 6005 in the System Event Log. The entry should look like this: