Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

PHW server able to run without user input?

Post Reply
nobody3
20
20
Posts: 54
Joined: 2008-08-28 02:25

PHW server able to run without user input?

Post by nobody3 »

I'm been having some fun with PHW the last few days and wanted to see if it's possible to run the server without needing user input.
Why? I'm working on an MSP application that will use remote support. My plan is that if I need remote access to the client, I can send a command to my MSP program that will execute the PHW server and automatically start the remote session.
So...do-able?
And if it's any help at all, I'm using a repeater and the ID will be entered through a command (using the shell command from my application).
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: PHW server able to run without user input?

Post by YY »

Sure it can be done by using the "-direct" option in the helpdesk.txt, so the content of the may be something like:
-connect xx.xx.xx.xx:5500 -passwd encrypted_pwd -direct


See [topic=8919]this thread[/topic] for a reference of the PHW helpdesk.txt syntax.
nobody3
20
20
Posts: 54
Joined: 2008-08-28 02:25

Re: PHW server able to run without user input?

Post by nobody3 »

Thanks for the reply. I actually did just find that by reading far enough.
This works great and my program can execute the remote session. Is it also possible to remove the login screen on disconnect? Whenever I close the viewer, the server again pops up the login screen, asking for a username and password (except that they are locked so no data can be entered) and you have to click 'Quit' to actually close it.
Last edited by nobody3 on 2008-11-22 04:38, edited 1 time in total.
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: PHW server able to run without user input?

Post by YY »

Unfortunately PcHelpWare doesn't terminate itself after connection ended (while SC does), it always popup the GUI again.

But there is a workaround, rather than end the connection with normal procedure, you can terminate the connection by killing the PHW process by using the taskkill command, like this:

Code: Select all

taskkill.exe /IM pchelpware.exe
You can do this either:
1. Have a link of the above script on the PHW server desktop, so double click it will end the connection, and PHW will not popup as well, as the pchelpware.exe is killed already.

2. The same approach, but send the command via your MSP program.
nobody3
20
20
Posts: 54
Joined: 2008-08-28 02:25

Re: PHW server able to run without user input?

Post by nobody3 »

Thanks, I think I'll go with option number two.
Post Reply