Name - property in ROOT\CIMV2\TerminalServices namespace

Name in other namespaces

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

propertyClassOrigin
Name__EventFilter__EventFilter
Name__NAMESPACE__NAMESPACE
Name__NTLMUser9X__NTLMUser9X
Name__Provider__Provider
Name__Trustee__Trustee
NameCIM_ManagedSystemElementCIM_ManagedSystemElement
NameWin32_TSGatewayConnectionAuthorizationPolicyWin32_TSGatewayConnectionAuthorizationPolicy
NameWin32_TSGatewayRADIUSServerWin32_TSGatewayRADIUSServer
NameWin32_TSGatewayResourceAuthorizationPolicyWin32_TSGatewayResourceAuthorizationPolicy
NameWin32_TSGatewayResourceGroupWin32_TSGatewayResourceGroup

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

propertyClassOrigin
Name__Win32Provider__Provider
NameCIM_ElementSettingCIM_ManagedSystemElement
NameCIM_LogicalElementCIM_ManagedSystemElement
NameCIM_SettingCIM_ManagedSystemElement
NameWin32_RDCentralPublishedDeploymentSettingsCIM_ManagedSystemElement
NameWin32_RDCentralPublishedFarmCIM_ManagedSystemElement
NameWin32_RDCentralPublishedRemoteApplicationCIM_ManagedSystemElement
NameWin32_RDCentralPublishedRemoteDesktopCIM_ManagedSystemElement
NameWin32_RDPersonalDesktopAssignmentCIM_ManagedSystemElement
NameWin32_TerminalCIM_ManagedSystemElement
NameWin32_TerminalServiceSettingCIM_ManagedSystemElement
NameWin32_TerminalServiceToSettingCIM_ManagedSystemElement
NameWin32_TerminalSettingCIM_ManagedSystemElement
NameWin32_TerminalTerminalSettingCIM_ManagedSystemElement
NameWin32_TSAccountCIM_ManagedSystemElement
NameWin32_TSApplicationFileExtensionsCIM_ManagedSystemElement
NameWin32_TSClientSettingCIM_ManagedSystemElement
NameWin32_TSCPubPluginCIM_ManagedSystemElement
NameWin32_TSDeploymentLicensingCIM_ManagedSystemElement
NameWin32_TSDeploymentSettingsCIM_ManagedSystemElement
NameWin32_TSEnvironmentSettingCIM_ManagedSystemElement
NameWin32_TSExpandEnvironmentVariablesCIM_ManagedSystemElement
NameWin32_TSGeneralSettingCIM_ManagedSystemElement
NameWin32_TSGetIconCIM_ManagedSystemElement
NameWin32_TSLegacyPluginCIM_ManagedSystemElement
NameWin32_TSLogonSettingCIM_ManagedSystemElement
NameWin32_TSNetworkAdapterListSettingCIM_ManagedSystemElement
NameWin32_TSNetworkAdapterSettingCIM_ManagedSystemElement
NameWin32_TSPermissionsSettingCIM_ManagedSystemElement
NameWin32_TSPublishedApplicationCIM_ManagedSystemElement
NameWin32_TSPublishedApplicationListCIM_ManagedSystemElement
NameWin32_TSRemoteControlSettingCIM_ManagedSystemElement
NameWin32_TSRemoteDesktopCIM_ManagedSystemElement
NameWin32_TSSessionDirectoryCIM_ManagedSystemElement
NameWin32_TSSessionDirectorySettingCIM_ManagedSystemElement
NameWin32_TSSessionSettingCIM_ManagedSystemElement
NameWin32_TSStartMenuApplicationCIM_ManagedSystemElement
NameWin32_TSSystemInfoCIM_ManagedSystemElement
NameWin32_TSVirtualIPCIM_ManagedSystemElement
NameWin32_TSVirtualIPSettingCIM_ManagedSystemElement
NameWin32_TSVmCIM_ManagedSystemElement
NameWin32_TSVmMetadataItemCIM_ManagedSystemElement
NameWin32_WorkspaceCIM_ManagedSystemElement

Code samples for Name property

Get instance of WMI class using GetObject, Name 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.Name 'or other property name, see properties
See more VBS samples of Win32_TerminalServiceToSetting class

WMI query - sample windows WQL with C#, Name 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("Name : {0}", m["Name"]);
  
}

WMI query - sample windows WQL with VB.Net, Name 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("Name : {0}", mObject("Name"))
Next
comments powered by Disqus
WUtils.com