Fix: Pen CS Topbar Update Needs Admin on a Remote Desktop Server

Pen CS logo

Short answer: On a Remote Desktop server, Pen CS Topbar updates its server-side service overnight and then needs a matching client update, which only an administrator can install. Even signing in with an admin account often fails, because Windows User Account Control gives that account a standard-user token in the session and the Topbar installer never asks to elevate. Install the client update with a genuinely elevated process: right-click and Run as administrator, or better, have your IT provider run the update automatically as SYSTEM each morning.

A general practice kept contacting us because Topbar on their Remote Desktop server needed an administrator to install an update, again. The practice manager had her own admin login for exactly this, but the update kept failing with a “needs admin” message even when she used it. Each time, one of our technicians signed in and the update went through straight away. She asked whether something could change so she didn’t have to keep asking us. Here is what we found and what we changed.

Fixed by Rohan Colley, Senior Systems Administrator at GCIT. Written up by Elliot Munro, CISO.

Symptoms

  • Staff open Topbar in their Remote Desktop session and it says an update is required, then says an administrator must install it.
  • Signing in to the server with a practice admin account and running the update still fails. The setup downloads and starts, then stops.
  • When an IT technician signs in with the server’s built-in administrator account, the update installs without any prompt.
  • It happens again every time Pen CS releases a new version, usually the morning after.
  • Until the client is updated, Topbar apps and prompts don’t work for anyone on the server.

People also search for this as “Topbar needs admin to update”, “Pen CS Topbar update failed Remote Desktop”, “Topbar client update terminal server” or “Topbar requires administrator”.

Affected Software

  • Application: Pen CS Topbar (PCS Desktop client and PCS Clinic Service), used with Bp Premier and other clinical systems
  • Platform: Windows Server Remote Desktop session hosts with a machine-wide Topbar install
  • Related Services: Windows User Account Control (UAC)

Cause

Topbar has two parts on a Remote Desktop server. The PCS Clinic Service updates itself overnight. The desktop client, installed once for the whole server in C:\Program Files (x86)\PCS\PCS Desktop, then has to be updated to the same version before it will work.

The client’s setup program is built so that it never asks Windows to elevate. It just checks whether it already has administrator rights, and stops if it doesn’t. With UAC turned on, as it should be, an account in the Administrators group still runs programs with a filtered, standard-user token until something asks for elevation. So when the practice manager ran the update with her admin login, the setup saw a standard user and stopped. Her Topbar logs showed exactly this: the setup downloaded, launched and then quit.

The server’s built-in Administrator account is exempt from that UAC filtering by default, which is why the update worked every time a technician signed in with it.

Resolution

Option 1: Run the update properly elevated

  1. Sign in to the Remote Desktop server with an account that is a local administrator.
  2. Close Topbar in your session.
  3. Start the Topbar client (or its update) by right-clicking it and choosing Run as administrator. Approve the UAC prompt.
  4. Let the update finish, then ask staff to sign out of the server and sign back in to pick up the new version.

If you do this often, your IT provider can set the Topbar client to always run as administrator for your admin account only, so it prompts you to click Yes when an update is needed.

Option 2: Update the client automatically each morning

This is what we set up so nobody has to remember:

  1. A small script runs as SYSTEM from Task Scheduler early each morning, after the Clinic Service’s overnight update.
  2. It asks the local PCS Clinic Service whether the desktop client needs an upgrade. If not, it logs that and stops.
  3. If an upgrade is needed, it closes any open Topbar windows, runs the client setup silently from the files the Clinic Service provides, and logs the result.
  4. We added a desktop shortcut for the practice manager only that runs the same task on demand, for the odd day an update arrives during clinic hours. It closes Topbar for everyone for a minute, so it’s best used when things are quiet.

Pen CS can confirm the silent install switches and server arguments for your version. Test the task once out of hours before relying on it, and check its log after the next Pen CS release.

What not to do

  • Don’t turn off UAC on the server to make the update work. That removes an important protection for everyone who signs in.
  • Don’t add practice staff to Domain Admins to get past the prompt. An account that only needs to update one app on one server should be, at most, a local administrator on that server.

Important Notes

  • Staff must sign out and back in. After the client updates, people already signed in keep the old version until they start a new session.
  • Check after each release. The automatic update only proves itself when Pen CS ships the next version. Ask the practice to tell you whether that update went smoothly.
  • Review admin accounts. While fixing this we found the practice’s admin login had far more rights than it needed, and raised that separately. It’s worth checking yours.

Clinical tools needing an admin every update? Get in touch with our team.

Was this article helpful?
Ready to secure and simplify your IT? Talk to a GCIT expert today.