Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.