description - property in ROOT\CIMV2\TerminalServices namespace

description in other namespaces

List of classes with description local property in ROOT\CIMV2\TerminalServices namespace

propertyClassOrigin
description__ExtendedStatus__ExtendedStatus
descriptionCIM_ManagedSystemElementCIM_ManagedSystemElement
descriptionWin32_TSGatewayResourceAuthorizationPolicyWin32_TSGatewayResourceAuthorizationPolicy
descriptionWin32_TSGatewayResourceGroupWin32_TSGatewayResourceGroup

List of classes with description derived property in ROOT\CIMV2\TerminalServices namespace

propertyClassOrigin
descriptionCIM_ElementSettingCIM_ManagedSystemElement
descriptionCIM_LogicalElementCIM_ManagedSystemElement
descriptionCIM_SettingCIM_ManagedSystemElement
descriptionWin32_RDCentralPublishedDeploymentSettingsCIM_ManagedSystemElement
descriptionWin32_RDCentralPublishedFarmCIM_ManagedSystemElement
descriptionWin32_RDCentralPublishedRemoteApplicationCIM_ManagedSystemElement
descriptionWin32_RDCentralPublishedRemoteDesktopCIM_ManagedSystemElement
descriptionWin32_RDPersonalDesktopAssignmentCIM_ManagedSystemElement
descriptionWin32_TerminalCIM_ManagedSystemElement
descriptionWin32_TerminalError__ExtendedStatus
descriptionWin32_TerminalServiceSettingCIM_ManagedSystemElement
descriptionWin32_TerminalServiceSettingError__ExtendedStatus
descriptionWin32_TerminalServiceToSettingCIM_ManagedSystemElement
descriptionWin32_TerminalSettingCIM_ManagedSystemElement
descriptionWin32_TerminalTerminalSettingCIM_ManagedSystemElement
descriptionWin32_TSAccountCIM_ManagedSystemElement
descriptionWin32_TSApplicationFileExtensionsCIM_ManagedSystemElement
descriptionWin32_TSClientSettingCIM_ManagedSystemElement
descriptionWin32_TSCPubPluginCIM_ManagedSystemElement
descriptionWin32_TSDeploymentLicensingCIM_ManagedSystemElement
descriptionWin32_TSDeploymentSettingsCIM_ManagedSystemElement
descriptionWin32_TSEnvironmentSettingCIM_ManagedSystemElement
descriptionWin32_TSExpandEnvironmentVariablesCIM_ManagedSystemElement
descriptionWin32_TSGeneralSettingCIM_ManagedSystemElement
descriptionWin32_TSGetIconCIM_ManagedSystemElement
descriptionWin32_TSLegacyPluginCIM_ManagedSystemElement
descriptionWin32_TSLogonSettingCIM_ManagedSystemElement
descriptionWin32_TSNetworkAdapterListSettingCIM_ManagedSystemElement
descriptionWin32_TSNetworkAdapterSettingCIM_ManagedSystemElement
descriptionWin32_TSPermissionsSettingCIM_ManagedSystemElement
descriptionWin32_TSPublishedApplicationCIM_ManagedSystemElement
descriptionWin32_TSPublishedApplicationListCIM_ManagedSystemElement
descriptionWin32_TSRemoteControlSettingCIM_ManagedSystemElement
descriptionWin32_TSRemoteDesktopCIM_ManagedSystemElement
descriptionWin32_TSSessionDirectoryCIM_ManagedSystemElement
descriptionWin32_TSSessionDirectorySettingCIM_ManagedSystemElement
descriptionWin32_TSSessionSettingCIM_ManagedSystemElement
descriptionWin32_TSStartMenuApplicationCIM_ManagedSystemElement
descriptionWin32_TSSystemInfoCIM_ManagedSystemElement
descriptionWin32_TSVirtualIPCIM_ManagedSystemElement
descriptionWin32_TSVirtualIPSettingCIM_ManagedSystemElement
descriptionWin32_TSVmCIM_ManagedSystemElement
descriptionWin32_TSVmMetadataItemCIM_ManagedSystemElement
descriptionWin32_WorkspaceCIM_ManagedSystemElement

Code samples for description property

Get instance of WMI class using GetObject, description property of Win32_TerminalServiceToSetting

Short VBS code - get a single specified instance of Win32_TerminalServiceToSetting class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\CIMV2\TerminalServices:" + _
 "Win32_TerminalServiceToSetting.Element=""Path to Win32_TerminalService"",Setting=""Path to Win32_TerminalServiceSetting""")
Wscript.Echo wmiObject.description 'or other property name, see properties
See more VBS samples of Win32_TerminalServiceToSetting class

WMI query - sample windows WQL with C#, description property of Win32_TerminalServiceToSetting

Get a specified instance of Win32_TerminalServiceToSetting by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\CIMV2\\TerminalServices");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_TerminalServiceToSetting");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("description : {0}", m["description"]);
  
}

WMI query - sample windows WQL with VB.Net, description property of Win32_TerminalServiceToSetting

Get a specified instance of Win32_TerminalServiceToSetting by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\CIMV2\TerminalServices")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Win32_TerminalServiceToSetting")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("description : {0}", mObject("description"))
Next
comments powered by Disqus
WUtils.com