Defines the applications that are made available for remote use through Windows Server 2008 R2 RemoteApp.
Syntax
class Win32_TSPublishedApplication : CIM_LogicalElement
{
string Name;
string Alias;
string Path;
boolean PathExists;
string VPath;
string IconPath;
sint32 IconIndex;
uint8 IconContents[];
uint32 CommandLineSetting;
string RequiredCommandLine;
boolean ShowInPortal;
string RDPFileContents;
};
Members
The Win32_TSPublishedApplication class defines the following members:
Properties
The Win32_TSPublishedApplication class defines the following properties.
- Alias
-
-
Data type: string
- Access type: Read/write
- Qualifiers: Key
The alias of the application. The alias is a unique identifier for the program that defaults to the program's file name (without the extension).
- CommandLineSetting
-
-
Data type: uint32
- Access type: Read/write
The command-line arguments setting for the application. Possible values include:
| Value | Meaning |
- 0
| Do not allow command-line arguments.
|
- 1
| Allow any command-line arguments.
|
- 2
| Always use the required command-line arguments (specified in RequiredCommandLine).
|
- IconContents
-
-
Data type: uint8 array
- Access type: Read-only
The byte contents of the icon that corresponds to the application.
- IconIndex
-
-
Data type: sint32
- Access type: Read/write
The index or ID of the icon.
- IconPath
-
-
Data type: string
- Access type: Read/write
The path of the application icon.
- Name
-
-
Data type: string
- Access type: Read/write
The name of the application.
- Path
-
-
Data type: string
- Access type: Read/write
The path of the application.
- PathExists
-
-
Data type: boolean
- Access type: Read-only
Indicates whether the application path is valid.
- RDPFileContents
-
-
Data type: string
- Access type: Read/write
The contents of the RDP file that correspond to the application.
- RequiredCommandLine
-
-
Data type: string
- Access type: Read/write
The command-line arguments that are required for the application.
- ShowInPortal
-
-
Data type: boolean
- Access type: Read/write
Indicates whether the application should be shown in RD Web Access.
- VPath
-
-
Data type: string
- Access type: Read/write
The virtual path of the application, meaning the path with environment variables included.
Remarks
You must be a member of the Administrators group to set properties by using this class.
To connect to the \root\CIMV2\TerminalServices namespace, the authentication level must include packet
privacy. For C/C++ calls, this is an authentication level of
RPC_C_AUTHN_LEVEL_PKT_PRIVACY, which can be set by using the CoSetProxyBlanket COM function. For Visual Basic and scripting calls, this is an
authentication level of WbemAuthenticationLevelPktPrivacy or
"pktPrivacy", with a value of 6. The following Visual Basic Scripting Edition (VBScript) example
shows how to connect to a remote computer with packet privacy.
strComputer = "RemoteServer1"
Set objServices = GetObject( _
"winmgmts:{authenticationLevel=pktPrivacy}!Root/CIMv2/TerminalServices")
Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).
Requirements
| Minimum supported client | None supported |
| Minimum supported server | Windows Server 2008 |
| MOF | Tsallow.mof |
| Namespace | \root\CIMV2\TerminalServices |
Send comments about this topic to Microsoft
Build date: 1/14/2010