Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Appendix 6: Using HPC PowerShell

Updated: January 13, 2014

Applies To: Microsoft HPC Pack 2008 R2, Microsoft HPC Pack 2012, Microsoft HPC Pack 2012 R2, Windows HPC Server 2008 R2

Windows HPC PowerShell is built on Windows PowerShell technology and provides a powerful command-line interface and a scripting platform to enable the automation of administrative tasks. Windows HPC PowerShell is installed by default on the head node and can also be installed on a client computer as part of the utilities available with Microsoft® HPC Pack.

The exact steps to start Windows HPC PowerShell depend on the operating system of the computer where HPC Pack is installed and whether the computer is a head node in the cluster or is running only the client utilities.

noteNote
By default, starting in Windows Server 2012 and Windows 8, the HPC PowerShell shortcut is not pinned to the Start screen after installation of HPC Pack. To pin the shortcut to Start, see Adding apps, websites, and more to Start.

  1. On the Start screen, type, tap, or click HPC PowerShell.

  2. Right-click HPC PowerShell, and then click Run as administrator.

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

  2. Right-click HPC PowerShell, and then click Run as administrator.

  • On the Start screen, type, click, or tap HPC PowerShell.

  • Click Start, point to All Programs, click Microsoft HPC Pack, and then click HPC PowerShell.

Depending on your operating system and your version of HPC Pack, you can also add the Windows HPC PowerShell snap-in from Windows PowerShell.

ImportantImportant
If you are running HPC Pack 2012 on an operating system earlier than Windows Server 2012 or Windows 8, it is recommended that you start HPC PowerShell from only the installed shortcut, not by adding the snap-in from Windows PowerShell. Depending on the version of .NET Framework that is installed on the operating system, you might see errors when running the HPC cmdlets after adding the snap-in.

  1. Start Windows PowerShell. For specific steps for different operating systems, see Starting Windows PowerShell.

  2. In Windows PowerShell, type the following cmdlet:

    Add-PsSnapin Microsoft.HPC

  • To view a list of the cmdlets that are available in HPC PowerShell, type the following cmdlet:

    Get-Command –PSSnapin Microsoft.HPC

    or

    Get-Command *-Hpc*

  • To view basic help information for a specific cmdlet, type:

    Get-Help <cmdlet>

    Where <cmdlet> is an HPC PowerShell cmdlet.

  • To view detailed information for a specific cmdlet, type:

    Get-Help <cmdlet> -Detailed

    Where <cmdlet> is an HPC PowerShell cmdlet.

  • To view the help information on the screen one page at a time, type | More at the end. For example, if you type:

    Get-Help New-HpcJob –Detailed | More

    Only the first page of the detailed information for the New-HpcJob cmdlet will be initially displayed. As you press Spacebar or Enter, more information will be displayed. To stop viewing the help information, press Q.

  • To view online information for a specific cmdlet, type:

    Get-Help <cmdlet> -Online

    Where <cmdlet> is an HPC PowerShell cmdlet.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.