A quick post to help make the services on the Microsoft High Performance Computing (HPC) 2019 Head Nodes more resilient by setting their recovery options.

Run the following PowerShell code on each of your Head Nodes which helps avoid failures for the users when starting the HPC Job Manager, or Admins when starting HPC Cluster Manager.

$HPCServices = Get-Service | where-object {$_.DisplayName  -like '*HPC *'}
ForEach ($HPCService in $HPCServices) {
  $ServiceDisplayName = $HPCService.DisplayName
  $ServiceName = $HPCService.Name
  write-verbose "Setting the `"$ServiceDisplayName`" service recovery options to:" -verbose
  write-verbose "- Restart the service 1 minute (60000 ms) after the first failure" -verbose
  write-verbose "- Restart the service 1 minute (60000 ms) after the second failure" -verbose
  write-verbose "- Restart the service 3 minute (180000 ms) after subsequent failures" -verbose
  write-verbose "- Reset the failure count every 1 day (86400 seconds)" -verbose
  Invoke-Command {cmd /c sc failure "$ServiceName" reset= 86400 actions= restart/60000/restart/60000/restart/180000} | out-null
}

HPC Pack 2019 logo [click to continue…]

{ 0 comments }

Development Planning for the Citrix Self-Service Session Reset Tool

February 19, 2025

The Citrix Self-Service Session Reset Tool is software that I write and manage in my own time. It is often challenging to find the time to work on it as I have many projects on the go. And life in general often gets in the way. I get a lot of queries asking me when the next […]

Read the full article →

The Micromine Alastri Hub Launcher Tool that leverages a RAM Disk for Temporary Data

February 17, 2025

I would like to introduce you to a PowerShell tool I originally created in early 2024, which was in the research and planning stage for about 12 months previous to that. If you or your customer runs Micromine Alastri Software, especially in a virtualised desktop platform from Vendors such as Citrix, Omnissa, Parallels, Microsoft and […]

Read the full article →

Silently Installing and Automating the Arsenal Image Mounter (AIM) RAM Disk Feature

February 13, 2025

I previously wrote about The best free for commercial use RAM Disk that works perfectly with Desktop Virtualisation. This is a follow on from that article that will focus on: The installation of Arsenal Image Mounter (AIM) The automation for the creation of a RAM Disk The challenges I experienced with the creation of the RAM […]

Read the full article →

The best free for commercial use RAM Disk that works perfectly with Desktop Virtualisation

July 18, 2024

For context, a RAM Disk provides fast I/O (read and write) performance, faster than SSDs (Solid State Drives), with wider bandwidth and much lower latencies. There are plenty of free and paid options for RAM Disk software available. This article is not about finding the fastest RAM Disk software available, so I haven’t gone out […]

Read the full article →

Restoring the NVIDIA Control Panel and Tools after the Appx Package Change

July 14, 2024

Updated 12th August 2024: Post install code snippets updated Article wording updated With the move from the Standard driver model to the DCH (Declarative Componentized Hardware) driver model implemented from GRID 15.0 (Windows driver version 527.41) and above, the NVIDIA Control Panel app is now distributed through the Microsoft Store as an Appx Package. Even […]

Read the full article →

The Citrix PVS Target Device Driver is a SCSI Adapter Bully

July 13, 2024

Working on a Citrix upgrade project a few years ago I was continually getting a blue screen when a Citrix PVS image booted. The symptom was obvious during the boot process. It was as if there were two NICs or the image was trying to load twice. PVS write-cache was also incorrectly being redirected to […]

Read the full article →

Best Practice for the Active Setup StubPath value

September 25, 2023

It’s been a best practice for a long time to clear the Active Setup StubPath value per application to avoid the Active Setup processes from running at logon, impacting the user experience. This is a challenge we constantly have with Vendors and packaging teams. But blindly clearing the StubPath value could lead to application issues. […]

Read the full article →

Cold Starting and/or Hydrating Your Applications To Improve Their Startup Times

June 27, 2023

In the End User Computing (EUC) space we know that after the first time the application starts post reboot, the next time is faster. The first startup is referred to as a cold startup and all subsequent runs are warm startups. The first time the application starts, components of the application, such as the EXEs (executables) and […]

Read the full article →