Windows IoT, get the number of processor's cores allocated for Soft Real Time

236 views Asked by At

From the Microsoft documentation soft-real-time-device, we allocate the number of processor's cores to be allocated for Soft Real Time using the following PowerShell script:

$nameSpaceName="root\cimv2\mdm\dmmap"

$className="MDM_WindowsIoT_SoftRealTimeProperties01"

$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className

Add-Type -AssemblyName System.Web

Set-CimInstance -CimInstance $obj

$obj.SetRTCores = 3

Set-CimInstance -CimInstance $obj

The number 3 in the script above is the number of cores allocated.
Is there anyway to read back that number? something like $obj.GetRTCores. I googled the method SetRTCores, but poorly occurence/documentation.

0

There are 0 answers