3.2.4.1.45 UserAccount (Get) (Opnum 51)

The UserAccount (Get) method retrieves the UserAccount property.

 [propget] HRESULT UserAccount(
   [out, retval] BSTR* user
 );

user: Receives the user account under which the data collector set will run. The value of the string that is returned will be that which was passed as a parameter to the IDataCollectorSet::SetCredentials method if that method was called after the last IDataCollectorSet::Query method was called. If the SetCredentials method was not called, then the string that is returned will be that of the user which the data collector set is registered to run as. In such a case, if the machine is joined to a domain and the user is a member of that domain, then the form of the returned string will be domain\user or user@domain.

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.