Sets the credentials for the specified user in the credential cache, so that the job scheduler can use the credentials for submitting jobs.
HRESULT SetCachedCredentials( [in] BSTR UserName, [in] BSTR password );
The user name of the user for which you want the set the cached credentials, in the form domain\user. The user name is limited to 80 characters.
The password for the user for which you want the set the cached credentials.
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 SP1 Client Utilities