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
Click Start, point to All Programs, and then click Microsoft HPC Pack.
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.
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.Type:
$credential = Get-Credential
A dialog box appears, prompting for a user name and password.
In the dialog box, type (or have the user type) the username and password that needs to be updated.
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
Get-Credential (https://go.microsoft.com/fwlink/?LinkId=152320)
Security Considerations for Handling Cluster Credentials in Windows HPC Server 2008
To change a password for a queued job on an HPC cluster by using a command prompt window
To open a command prompt window, click Start, right-click Command Prompt, and then either click Run as administrator or click Open.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
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.
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.
When prompted, type (or have the user type) the password that needs to be updated, and then press ENTER.
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.