CollapseAll image

Check if KVM is Enabled or Disabled

The following steps describe how to determine the enabled/disabled state of the KVM feature.

1.  Retrieve the instance of CIM_KVMRedirectionSAP, where the “Name” key equals “KVM Redirection Service Access Point”.

2.  Examine the CIM_KVMRedirectionSAP.EnabledState. It indicates whether KVM is enabled or disabled.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

$kvmRedirectionSAPRef =$wsmanConnectionObject.NewReference("SELECT * FROM CIM_KVMRedirectionSAP WHERE Name='KVM Redirection Service Access Point'")

$kvmRedirectionSAPInstance =$kvmRedirectionSAPRef.Get()

$enabledState =$kvmRedirectionSAPInstance.GetProperty("EnabledState")

 

 

Instance Diagram

Classes Used in This Flow

SDK Sample

Not applicable

 

See Also:

   KVM Application Developer’s Guide

Copyright © 2006-2022, Intel Corporation. All rights reserved.