Freigeben über


SetKeyManagementServiceListeningPort method of the SoftwareLicensingService class

Sets the TCP port used by a KMS host to listen for activation requests. This method applies to KMS hosts only.

Syntax

uint32 SetKeyManagementServiceListeningPort(
  [in] uint32 PortNumber
);

Parameters

PortNumber [in]

Specifies the TCP port number to set. If no port is specified, 1688 is used by default.

Requirements

Minimum supported client
Windows 7
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMV2
MOF
SppWmi.mof
DLL
SppWmi.dll

See also

SoftwareLicensingService