• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
HP Recommended
HPt430

Is there a way to schedule a nightly restart/reboot of HP Thin Clients?  Specifically, the HP T430.  

Currently using HP Device Manager, Version 4.7.3610.

All thin clients are using ThinPro OS, version 5.6.8.

I've looked into the HPDM settings and tasks, as well as all of the Settings/Registry Entries on the thin client itself, without success.  I'm probably overlooking the obvious, but can't find what I need.

Any help is appreciated. 

10 REPLIES 10
HP Recommended

@GrandStar -- on each computer, can you add a Scheduled Task to run the command: 

 

          C:\Windows\System32\shutdown -r -t 5 

 

-- "shut down and reboot within 5 seconds" ?

 

HP Recommended

Hello and Thank you for the response.

I believe this is the Windows command for restarting a session.  I am looking for something that will allow me to restart an HP T430 thin client.   The actual hardware, not the session it connects to.

I have gone over the client's registry settings and GUI settings without finding anything.  

HP Recommended

@GrandStar -- I believe this is the Windows command for restarting a session. 

 

I disagree, but you should experiment: on your own computer, close all open browser-windows & unsaved documents, and enter the command, to see if it closes a "session", or if it does a shutdown-and-restart on your "actual hardware".

 

 

HP Recommended

Since the command C:\Windows\System32\shutdown -r -t 5 is run inside a Windows session, it will shut down that session.  We run this command through Windows Scheduled Tasks on several VMs.

I am looking to restart the hardware.  

The thin clients use ThinPro OS, and are not Windows embedded.  There is no Windows directory for that command to run from.

I have "experimented" and gone through all sorts of documentation for these thin clients without finding a command or function that reboots the hardware on a schedule.   

 

HP Recommended

@GrandStar --  I am looking to restart the hardware.   The thin clients use ThinPro OS

 

In ThinPro OS, is there an equivalent to the Windows "shutdown" command-line utility?

In ThinPro OS, is there an equivalent to the Windows Task Scheduler?

 

If so, then scheduling a shut-down-with-restart should be possible, under ThinPro OS.

 

HP Recommended

There is a GUI, where I can Reboot and Turn Off the thin client.  So it makes sense that I should be able to schedule a restart somehow.

I  cannot find a Task Scheduler or equivalent  in ThinPro OS.  This is what I am looking for.  

I would also be able to do this through HP Device Manager if I knew what the commands were.

HP Recommended

In the registry entries on the client itself, I found “afterStoppedCommand” (for when a connection drops for any reason).  I used “/usr/bin/hptc-reboot” which does in fact restart the thin client as soon as the RDP session disconnects.

 

What I need now is a delay of  4-5 minutes so the server has a chance to reboot before the clients try to connect again.

I’ve tried adding the following to the end of the command, without success so far:

  1. /usr/bin/hptc-reboot /t 240
  2. /usr/bin/hptc-reboot /4
  3. /usr/bin/hptc-shutdown /r /t 240 (this prompts for a shutdown/restart, but never requires user interaction)
  4. /usr/bin/hptc-reboot -4
  5. /usr/bin/hptc-reboot +4

Are there other switches for the reboot command that might enable the delay?

HP Recommended

@GrandStar -- Are there other switches for the reboot command that might enable the delay?

 

Many commands show "help" information when you enter the "/?" option to the command.

 

Example: 

 

C:\ > ping /?

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name

 

Does this help?

 

HP Recommended

The command I have entered is through the ThinPro OS registry on the thin client.  It is a gui type of interface and not a command line interface.  To get to a command line type of interface, I can use the X Terminal from the thin client Tools.

 

From the X Terminal, if I run the command "Reboot /?",  or "Reboot Help", it actually reboots the thin client.  I've also tried "Help reboot" and "? Reboot"  which returns an Invalid response.  I'm not very familiar with Linux or Ubuntu, which is the shell these clients run off, I believe.  

 

 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.