Share via


IJob::put_User method

Sets the RunAs user for the job.

Syntax

HRESULT put_User(
  [in] BSTR pRetVal
);

Parameters

  • pRetVal [in]
    The name of the user, in the form domain\user.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

You do not need to call this method. The initial value is set to the user that added the job to the cluster. You can use the following methods to change the value of the RunAs user:

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

IJob

IJob::get_User