次の方法で共有


AddIpamServerInventory method of the MSFT_IPAM_ServerInventory class

Adds an infrastructure server to the IPAM server inventory.

Syntax

uint32 AddIpamServerInventory(
  [in]  string                    Name,
  [in]  uint16                    ServerType[],
  [in]  uint16                    ManageabilityStatus,
  [in]  string                    Description,
  [in]  string                    CustomConfiguration,
  [in]  string                    Owner,
  [in]  string                    ForestName,
  [out] MSFT_IPAM_ServerInventory Output
);

Parameters

Name [in]

The name of the server.

ServerType [in]

An array that contains the server roles that are running on the server.

The possible values are:

0

None

1

Domain Controller

2

Domain Name System (DNS)

3

Dynamic Host Configuration Protocol (DHCP)

3

Network Policy Server (NPS)

ManageabilityStatus [in]

Indicates whether IPAM is managing the server.

The possible values are:

1

IPAM is managing the server.

2

IPAM is not managing the server.

Description [in]

A description of the server.

CustomConfiguration [in]

The custom metadata assigned to the server.

Owner [in]

The owner of the server.

ForestName [in]

The forest name for this server.

Windows Server 2012 R2: This property is unavailable prior to Windows Server 2016.

Output [out]

When this method returns, this parameter contains the added server object.

Return value

Returns 0 on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\IPAM
MOF
IPAMServerPSProvider.mof
DLL
IPAMServerPSProvider.dll

See also

MSFT_IPAM_ServerInventory