Partager via


GetServerInventory method of the MSFT_ServerManagerTasks class

Retrieves the basic inventory information of the server.

Syntax

uint32 GetServerInventory(
  [in]  string                        SMServerId,
  [out] MSFT_ServerInventory          ServerInventory,
  [out] MSFT_ServerOperatingSystem    OperatingSystem,
  [out] MSFT_ServerClusterInformation ClusterInformation,
  [out] MSFT_ServerNetworkAdapter     NetworkAdapters[],
  [out] MSFT_ServerEventLog           EventLogs[]
);

Parameters

SMServerId [in]

Optional parameter specifying the name used in the server manager to add the managed node.

ServerInventory [out]

An embedded instance of the MSFT_ServerInventory class that represents the miscellaneous inventory information of the server.

OperatingSystem [out]

An embedded instance of the MSFT_ServerOperatingSystem class that represents the operating system details of the server.

ClusterInformation [out]

An embedded instance of the MSFT_ServerClusterInformation class that represents the cluster information of the server.

NetworkAdapters [out]

An array of embedded instances of the MSFT_ServerNetworkAdapter class that represent the list of network adapters installed on the server.

EventLogs [out]

An array of embedded instances of the MSFT_ServerEventLog class that represent the list of event logs installed on the server.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Windows\ServerManager
MOF
MgmtProvider.mof
DLL
MgmtProvider.dll

See also

MSFT_ServerManagerTasks

MSFT_ServerInventory

MSFT_ServerOperatingSystem

MSFT_ServerClusterInformation

MSFT_ServerNetworkAdapter

MSFT_ServerEventLog