共用方式為


Change a Password for a Queued Job on an HPC Cluster

Applies To: Windows HPC Server 2008

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.

  2. Start HPC PowerShell:

    • If you are on a head node, right-click HPC PowerShell, and then click Run as administrator. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

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

  3. If you are prompted by HPC PowerShell to choose if you want to run the ccppsh.format.ps1xml script, type A, and then press ENTER.

  4. Type:

    $credential = Get-Credential

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

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

  6. Type:

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

Additional considerations

  • You cannot use the HPC Cluster Manager snap-in to update a password when a user has a queued job on an HPC cluster. You must use either an HPC PowerShell cmdlet or a command at a command prompt window 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. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

  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:<domain>\<user_name>

    Where <jobID> is the job ID, <domain> is the domain 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 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 the HPC Cluster Manager snap-in to update a password when a user has a queued job on an HPC cluster. You must use either an HPC PowerShell cmdlet or a command at a command prompt window to perform this action.

Additional references