Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to detect in Windows 7 programatically that the hyper-V tools are enabled. I use this powershell script in Windows Server 2008

import-module servermanager
(Get-WindowsFeature Hyper-V).Installed
share|improve this question
up vote 1 down vote accepted

I'm assuming you mean the RSAT tools, which have Hyper-V manager in them?

If so they are not a feature in Win7, so the method you list wouldn't work. Instead, RSAT is listed as a hotfix, so the easiest way to check from Powershell would be to check if the hotfix associated with RSAT is installed. The hotfix ID is KB958830, so you can query hotfixes from WMI with the command:

get-wmiobject -query 'select * from win32_quickfixengineering' |where {$_.HotFixID -eq 'KB958830'}

if you get 1 row back, the hotfix (and therefore RSAT, and therefore Hyper-V manager) are installed, otherwise it is not.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.