Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

The new -sc/sc_prompt/sc_exit command line options

Single Click discussions / bugs
Post Reply
lwc
40
40
Posts: 90
Joined: 2006-08-08 11:00

The new -sc/sc_prompt/sc_exit command line options

Post by lwc »

** v1.0.6.3 Release

Server changes:
- Added sc_prompt as command line option
- Added sc_exit as command line option

** v1.0.5.7

Server changes:
- Added -sc command line option
- Added reverse connection accept (like in old sc)
usage: winvnc.exe -sc -run
It seems the latter parameter was [post=60376]dropped without listing the drop in the changelist[/post].

Alas, please add an actual prompt to sc_prompt (that's its name, after all) and make the standalone sc ancient history.
Last edited by lwc on 2009-12-07 13:03, edited 7 times in total.
lwc
40
40
Posts: 90
Joined: 2006-08-08 11:00

Re: The new -sc/sc_prompt/sc_exit command line options

Post by lwc »

Really? No one?
Last edited by lwc on 2009-12-07 13:03, edited 1 time in total.
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by JDaus »

i haven't tried this with the latest versions, but it worked fine for me ...

the -sc command did two things in one (prompt the reverse connection viewer to accept connection & when conection finished, exit). so it was split into -sc_prompt and -sc_exit, thus allowing prompt to be used with autoreconnect ... much better

maybe the changelog needs to be updated to state the removal of -sc command in v1.0.6.3 ...
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: The new -sc/sc_prompt/sc_exit command line options

Post by redge »

-sc_exit
*Server quit when viewer disconnect
*Don't exit when desktop switch to UAC/winlogon
this make me trouble and confusion
better separate command ?
and maybe allow -autoreconnect with -sc_exit and solve the conflict opposite ?
is it logic for you JDaus ?

-sc_exit
*Server quit when viewer disconnect

-sc_uac (not new function but separate command more clear ?)
[s]*Don't exit when desktop switch to UAC/winlogon[/s]
*wait when desktop switch to UAC/winlogon

start winvnc -sc_exit -autoreconnect -connect host -run
user closing vncviewer send close connexion and winvnc retry until close vncviewer systray (not pause/block)
or
maybe i missed on step or wrong order winvnc 1.0.8.2 ?
Last edited by redge on 2010-01-02 08:24, edited 3 times in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by JDaus »

redge wrote:-sc_uac (not new function but separate command more clear ?)
[s]*Don't exit when desktop switch to UAC/winlogon[/s]
*wait when desktop switch to UAC/winlogon
So what exactly will this new setting do ??? i don't fully understand what your talking about.
redge wrote:start winvnc -sc_exit -autoreconnect -connect host -run
user closing vncviewer send close connexion and winvnc retry until close vncviewer systray (not pause/block)
or
maybe i missed on step or wrong order winvnc 1.0.8.2 ?
you are using the "automatic" reconnect feature with the automatic exit feature ... why do you want to use the both of them at the same time ???
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: The new -sc/sc_prompt/sc_exit command line options

Post by redge »

"-sc_uac" (not exist) is request new function for clarify "-sc_exit" confusing me.
*wait when desktop switch to UAC/winlogon

(sc_exit should really exit and sc_uac should wait UAC security credential)
not same function.
you are using the "automatic" reconnect feature with the automatic exit feature ... why do you want to use the both of them at the same time ???
is opposite but not impossible to manage. just need thinking different


autoreconnect usage:

-autoreconnect
should autoreconnect infinity

-autoreconnect 3 should reconnect maximum 3 time if there no answer, then stop like it should work really if number specified.
retry between autoreconnect is the natural timeout.
unpossible to search message of user YY answer to me about repeater! don't know why!
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
lwc
40
40
Posts: 90
Joined: 2006-08-08 11:00

Re: The new -sc/sc_prompt/sc_exit command line options

Post by lwc »

Yes, but the original question was why isn't there a prompt to sc_prompt?
User avatar
pgmoney
100
100
Posts: 285
Joined: 2004-06-26 22:29
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by pgmoney »

redge wrote:"-sc_uac" (not exist) is request new function for clarify "-sc_exit" confusing me.
*wait when desktop switch to UAC/winlogon
It probably should always wait if not running as a service. Patch posted.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: The new -sc/sc_prompt/sc_exit command line options

Post by redge »

It probably should always wait if not running as a service. Patch posted.
yesssssssssssss, you understand, great, cooooool :-)
waiting for the update winvnc patched :-)
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
User avatar
pgmoney
100
100
Posts: 285
Joined: 2004-06-26 22:29
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by pgmoney »

redge wrote:
It probably should always wait if not running as a service. Patch posted.
yesssssssssssss, you understand, great, cooooool :-)
waiting for the update winvnc patched :-)
I'll post an updated exe when this backup finishes. It might be a few hours.
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by JDaus »

lwc wrote:Yes, but the original question was why isn't there a prompt to sc_prompt?
ah ... your talking about have a SC gui on the ... that's not what scprompt actually does. it shows a sc prompt @ the viewer when using reverse connections ...
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by supercoe »

pgmoney wrote:It probably should always wait if not running as a service. Patch posted.
This works perfectly, thanks pgmoney!
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
certifiedgeek
Posts: 5
Joined: 2010-01-31 02:46

Re: The new -sc/sc_prompt/sc_exit command line options

Post by certifiedgeek »

Thanks to everyone who has spent time and effort making this UVNC such a popular tool.

I am fairly new to UVNC or any type of remote desktop support and would like to learn more. I see that the current version of SC doesn't support 64 bit windows, right? If I'm understanding this post correctly, the current version of the UVNC server can be run in a SC mode by adding additional commands to the exe file such as sc_prompt. My question is this... Can I use the current version 1.0.8.2 server and somehow have it automatically run the needed commands such as sc_prompt, connect, and so on? I am looking to create a zip file with the needed files in it for the people I want to support. I am looking to do this to make sure I can still have a basic single click type of support for my customer/family that would be compatible with the 64 bit version of windows.

For example, they could download a zip file with the 1.0.8.2 server in it, the encryption plug-in, the rc4.key, and maybe a text file that had the needed commands that I wanted to run so that when they click on the server it would start with the commands that would basically make it single click. The text file would be something like the current helpdesk file that is used in the SC version.

Thanks in advance.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by supercoe »

certifiedgeek,

Sounds like you need ChunkVNC!
[topic=15764][/topic]
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
certifiedgeek
Posts: 5
Joined: 2010-01-31 02:46

Re: The new -sc/sc_prompt/sc_exit command line options

Post by certifiedgeek »

supercoe,

first of all thanks for your response, but mostly for all your posts and help I've seen in the forums while reading for the best solutions. The ChunkVNC seems like a great program that would make life much easier, but I would have to use a repeater which I'm not sure at this point I want to do. Just about all of my remote support will be from the same location and the ChunkVNC would be great if I was somewhere else.

I am thinking about making a batch file that will start the connection when the customer clicks on it, but I'm not sure about all the commands that can be used in the batch file. Is there a way to include a command that will tell winvnc to use encryption when started? Is there a command that will automatically stop the winvnc service from running on the computer when the connection is closed?

of course, thanks.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by supercoe »

certifiedgeek,

It is possible to run the repeater on the same computer that will also be used as the viewer if you're in a fixed location. Here in my shop I just have a spare XP machine running the repeater all the time. I do this because sometimes I like to take a laptop with me on the road to use as a viewer.

If you want to go the command line route check out the docs:
http://doc.uvnc.com/

To enable encryption in the ultravnc.ini:
UseDSMPlugin=1
DSMPlugin=MSRC4Plugin.dsm

These server commands will give you SC functionality:
-sc_prompt
This option modify some behavioiur for Single Click usage.
*Pass server info to viewer and request viewer accept
(This use an unofficial rfb protocol, require ultravnc viewer)
-sc_exit
*Server quit when viewer disconnect
*Don't exit when desktop switch to UAC/winlogon
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
certifiedgeek
Posts: 5
Joined: 2010-01-31 02:46

Re: The new -sc/sc_prompt/sc_exit command line options

Post by certifiedgeek »

supercoe,

thanks for the info and your time listing the commands. i would assume my remote pcs would just need the uvnc server, ultravnc.ini, msrc4plugin.dsm, rc4.key, and maybe my batch file, correct?

On chunckvnc, do you notice any difference in speed when going through a repeater vs. going through a direct connection? does chunckvnc support 64 bit windows? does the command line option on uvnc 1.0.8.2 support 64 bit? does the other ultravnc sc that you can build online support 64 bit? I have a windows 7 64 bit here that i will test it out on if it's supported.

again, thanks
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by supercoe »

i would assume my remote pcs would just need the uvnc server, ultravnc.ini, msrc4plugin.dsm, rc4.key, and maybe my batch file, correct?

I would recommend also including schook.dll or vnchooks.dll as you will get much better screen updates.

On chunckvnc, do you notice any difference in speed when going through a repeater vs. going through a direct connection?

Using the repeater will slow the connection down a bit compared to a direct connection but it's still plenty fast enough for remote support.

does chunckvnc support 64 bit windows?

I've tested it on WindowsXP 64bit and Server 2003 64bit, there are known problems with installing ultravnc as a service on Vista/7 64bit but it runs fine otherwise.

does the command line option on uvnc 1.0.8.2 support 64 bit?

I don't understand what you mean here... Command line options aren't affected by the OS.

does the other ultravnc sc that you can build online support 64 bit?

I don't know enough about SC to answer this, but 64bit windows still runs 32bit apps.

I have a windows 7 64 bit here that i will test it out on if it's supported.

Please do and report back in the main ChunkVNC thread:
[topic=15764][/topic]
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
certifiedgeek
Posts: 5
Joined: 2010-01-31 02:46

Re: The new -sc/sc_prompt/sc_exit command line options

Post by certifiedgeek »

Thanks for the great clear responses. That makes sense and I will let you know how the testing goes with win 7 64bit. i created the batch file which works fine, but I am wondering if i can't just enter the command that will run automatically somewhere in the ultravnc.ini file like service_commandline= and then the command that's in the batch file. Would that work, or not? I tried it using the same basic command that I used in the batch file but it wouldn't work.

My question is this: Can you input the command into the ultravnc.ini file somewhere so that all you have to do is click on the winvnc.exe when would then look at the .ini file for a command to run and it will automatically try to connect and then exit when done? I was thinking that if the winvnc looks at the .ini file, then maybe it could be done, but I don't know. Of course, this is not needed since I could just use a batch file, but it would make for one less file that I zip up for people.

Thanks,
Sean :D
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by supercoe »

Can you input the command into the ultravnc.ini file somewhere so that all you have to do is click on the winvnc.exe

No, but you could create a self extracting archive that runs the command you want.

I would suggest using AutoIt instead of a batch file as you can compile all the files you need into the script.

service_commandline is only used once UltraVNC has been installed as a service.

Keep in mind that using a batch file will cause multiple security "Run this file" boxes, 1 for the batch file and 1 for winvnc.exe. This could confuse customers.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
certifiedgeek
Posts: 5
Joined: 2010-01-31 02:46

Re: The new -sc/sc_prompt/sc_exit command line options

Post by certifiedgeek »

Excellent point! I didn't think about that yet but having to click two different run boxes would be a little much considering I could use something like AutoIT that would create one exe file doing everything I need.

Thanks again for your help and let me know if I can be of any help to you.

Sean
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by supercoe »

No problem, that's what we're here for!

If you create something neat why don't you come back and share your code.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: The new -sc/sc_prompt/sc_exit command line options

Post by JDaus »

certifiedgeek wrote:My question is this: Can you input the command into the ultravnc.ini file somewhere so that all you have to do is click on the winvnc.exe when would then look at the .ini file for a command to run and it will automatically
as supercue suggested, running in a self extracting eye would do what you want.

my scprompt app has a builder that can send commandline arguments to the selected application on extraction. so it you just want to use remote support without giving users a GUI, then that will work for you, otherwise try scprompt, it was designed yo do what you want.
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
kenny782
8
8
Posts: 13
Joined: 2009-06-22 04:57

Re: The new -sc/sc_prompt/sc_exit command line options

Post by kenny782 »

Maybe the answer is here and I just got lost among the posts.

Is their anyway to check the status of the vnc serv?

I'm trying to setup InstantSupport to kill itself if VNC is sitting around
disconnected past a certain number of minutes.

I tried editing InstantSupport_Files\ultravnc.ini
I changed the IdleTimeout value from 0 to 1, I assumed that meant 1 minute
Then I re-compiled but that had no effect.


Worst case just exiting after I disconnect would work too I guess, I tried adding -sc_exit but Instant continued to run after I disconnected.

Thanks,

Kenny
Post Reply