Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the credentials that were cached for the specified user.
Syntax
HRESULT DeleteCachedCredentials(
  [in] BSTR UserName
);
Parameters
- UserName [in]
 The name of the RunAs user, in the form domain\username. The user name is limited to 80 Unicode characters. If this parameter is NULL or empty, the method deletes all credentials that have been cached by the calling user.
Return value
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
Remarks
Only the user that cached the credentials can delete the credentials.
Note that the name that you provide must match the name used to submit the job or command. For example, if the user specified domain\username, you must specify domain\username when calling this method. If the user specified username, you must specify username when calling this method.
The method succeeds regardless of whether it finds the specified user in the cache.
Requirements
| Product | HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities | 
| Type library | Microsoft.Hpc.Scheduler.tlb |