Share via


Change a Password for a Queued Job with Windows HPC Server 2008 R2

Updated: October 2010

Applies To: Windows HPC Server 2008 R2

An HPC cluster user or administrator who frequently submits jobs to an HPC cluster may need to change passwords when his or her job is in the queue but has not started running. If the HPC user or administrator changes his or her password in Active Directory in this situation, the queued job will not run unless the credential (user name and password) that is stored on the HPC cluster is updated to match the new password. This procedure provides information about how to change a password on the HPC cluster in this situation.

In contrast, if a password change occurs when the corresponding job is already running or is about to write results on a shared network resource, there is no way to provide the HPC cluster with the updated password. Instead, the job will fail.

To change a password for a queued job on an HPC cluster

  • Using HPC PowerShell

  • Using a command prompt window

To change a password for a queued job on an HPC cluster by using HPC PowerShell

  1. Click Start, point to All Programs, and then click Microsoft HPC Pack 2008 R2.

  2. Start HPC PowerShell:

    • If you are on a head node, right-click HPC PowerShell, and then click Run as administrator. Falls das Dialogfeld Benutzerkontensteuerung angezeigt wird, bestätigen Sie, dass die angezeigte Aktion der gewünschten Aktion entspricht, und klicken Sie anschließend auf Ja.

    • If you are on a client computer, click HPC PowerShell.

  3. Type:

    $credential = Get-Credential

    A dialog box appears, prompting for a user name and password.

  4. In the dialog box, type (or have the user type) the username and password that needs to be updated.

  5. Type:

    Get-HpcJob -state queued | Set-HpcJob -Credential $credential

Additional considerations

  • You cannot use HPC Cluster Manager to update a password when a user has a queued job on an HPC cluster. You must either use an HPC PowerShell cmdlet or type a command at a command prompt to perform this action.

Additional references

To change a password for a queued job on an HPC cluster by using a command prompt window

  1. To open a command prompt window, click Start, right-click Command Prompt, and then either click Run as administrator or click Open.

  2. Falls das Dialogfeld Benutzerkontensteuerung angezeigt wird, bestätigen Sie, dass die angezeigte Aktion der gewünschten Aktion entspricht, und klicken Sie anschließend auf Ja.

  3. Type:

    job list /state:queued

    In the displayed results, under Id, find the job ID of the job that you want to provide an updated password for.

  4. Type:

    job modify <jobID> /user:<doMayn>\<user_name>

    Where <jobID> is the job ID, <doMayn> is the doMayn that the user's account is in, and <user_name> is the user name.

  5. When prompted, type (or have the user type) the password that needs to be updated, and then press ENTER.

  6. When prompted to choose whether Windows HPC Server 2008 R2 should remember the password, type either y or n, and then press ENTER.

To view the complete syntax for this command, at a command prompt, type:

job modify /?

Additional considerations

  • You cannot use HPC Cluster Manager to update a password when a user has a queued job on an HPC cluster. You must either use an HPC PowerShell cmdlet or type a command at a command prompt to perform this action.

Additional references