IDataCollectorSet::SetCredentials method (pla.h)

Specifies the user account under which the data collector set runs.

Syntax

HRESULT SetCredentials(
  [in] BSTR user,
  [in] BSTR password
);

Parameters

[in] user

A user account under which the data collector set runs. Specify the user name in the form domain\user or user@domain.

[in] password

The password of the user account.

Return value

The property returns S_OK if successful.

Remarks

To clear the user credentials, set both parameters to NULL.

If you do not specify the credentials, PLA tries to run the set as LocalSystem if the current user is a member of the administrator group.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header pla.h
DLL Pla.dll

See also

IDataCollectorSet

IDataCollectorSet::UserAccount