SetPortNumbers method of the Win32_TSGatewayResourceAuthorizationPolicy class
Sets the port numbers that are allowed to connect to the resource through Remote Desktop Gateway (RD Gateway).
Syntax
uint32 SetPortNumbers(
[in] string PortNumbers
);
Parameters
-
PortNumbers [in]
-
List of semicolon-separated port numbers that are allowed for this Remote Desktop resource authorization policy (RD RAP). To allow any port number, set "*".
Remarks
Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (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
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|