3.2.4.1.52 SetCredentials (Opnum 58)
The SetCredentials method specifies the user account under which the data collector set runs. If both parameters are set to NULL, the Performance Logs and Alerts Protocol MUST clear the existing cached credentials. If no credentials are cached, the data collector set runs with the credentials for the 'LocalSystem' account. Changing the credentials under which the data collector set runs will impact future runs of the data collector set, irrespective of whether they are started locally or remotely. <16>
-
HRESULT SetCredentials( BSTR user, BSTR password );
user: Supplies the user account under which the data collector set runs. The user name can be specified in the following forms: domain\user or user@domain.
password: Supplies the password of the user account.
Return Values: This method MUST return an HRESULT with the severity bit clear on success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.