Partager via


AddServerComponentAsync method of the MSFT_ServerManagerDeploymentTasks class

Asynchronously installs a server component on a managed node.

Syntax

uint32 AddServerComponentAsync(
  [in]  MSFT_ServerManagerRequestGuid               RequestGuid,
  [in]  String                                      Source[],
  [in]  Boolean                                     ScanForUpdates,
  [in]  MSFT_ServerManagerServerComponentDescriptor ServerComponentDescriptors[],
  [out] MSFT_ServerManagerRequestState              AlterationState
);

Parameters

RequestGuid [in]

The GUID of the deployment request.

Source [in]

An array that contains the path to the installation files.

ScanForUpdates [in]

Indicates whether to check for updates to the server component before the installation. True to check for updates; otherwise false.

ServerComponentDescriptors [in]

An array that receives the identities of the server components.

AlterationState [out]

A string that receives the state of the installation.

Requirements

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

See also

MSFT_ServerManagerDeploymentTasks