A. By default, the output from Get-WindowsFeature shows a check box if a role or feature is installed, as shown here.
PS C:\> Get-WindowsFeature Hyper-V Display Name Name ------------ ---- \[X\] Hyper-V Hyper-V
This matches the format of the servermanagercmd -query command but goes against what most people prefer with PowerShell, which is objects returned with properties you can easily query. You do have access to this kind of return, however. A property, Installed, is also returned. This property is a Boolean showing if the role or feature is installed. You can see this by formatting the output differently. For example
PS C:\> Get-WindowsFeature Hyper-V | ft DisplayName, Installed DisplayName Installed ----------- --------- Hyper-V True PS C:\> Get-WindowsFeature DHCP | ft DisplayName, Installed DisplayName Installed ----------- --------- DHCP Server False
Here you can see that I queried for the DisplayName and Installed properties and a Boolean for the installation status was returned.Related Reading
- Q. What is Microsoft Enterprise Desktop Virtualization (MED-V)?
- Q. Why isn't virtualization supported for the Exchange Server 2007 Unified Messaging (UM) server role?
- Four for Free: No-Cost Virtualization Tools and Utilities
- More virtualization articles
- Perform a Physical to Virtual (P2V) Migration with SCVMM 2008
- Perform a Virtual to Virtual (V2V) Migration with SCVMM 2008
- Virtual Desktop Infrastructure Introduction
- Virtualization and Hyper-V Architecture Fundamentals
Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.