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

Every SC Users DREAM Script!!! I call it Ultr@VNC *NO CLICK*

Single Click discussions / bugs
Post Reply
Hickory420
8
8
Posts: 17
Joined: 2007-08-10 05:53

Every SC Users DREAM Script!!! I call it Ultr@VNC *NO CLICK*

Post by Hickory420 »

Ok guys, I have it! I finally got it working with the help of YY ;) thank you.

A similar script may exist... but I haven't searched for one.... I wrote this from scratch :D

If you post this script elsewhere, please give credit where credit is due. That's all I ask.

This works best in a domain environment (including different subnets) with Domain Admin access.

I use PsExec in my script:
http://technet.microsoft.com/en-us/sysi ... 96649.aspx

The Script:

Code: Select all

@echo off
Title Ultr@VNC Single Click... Script written by Hickory420
:start
@echo.
set /p pc=Computer you wish to control: 
@echo.
echo Pinging %pc%...
set usr=domain\username
set pwd=password
ping %pc% -n 2 -w 500 | find /I "Reply from" >NUL
If ErrorLevel 1 goto noping
@echo --------------------------
psexec \\%pc% -u %usr% -p %pwd% -c -f -i -d ultravncsc.exe | call "C:\Program Files\UltraVNC\vncviewer.exe" ID:420 -proxy 192.168.20.56::5901
@echo --------------------------
@echo.
@echo Closing the VNC connection
goto Done
:noping
cls
@echo.
@echo Can not Ping Host...
@echo.
goto start
:Done
@echo.
@echo --------------------------
@echo.
@echo Deleting... ultravncsc.exe
del \\%pc%\C$\Windows\System32\ultravncsc.exe
@echo Done
pause
Obviously edit the script as needed.

The following is the important part of my Helpdesk.txt

Code: Select all

[DIRECT]

[HOST]
Helpdesk Support
-ID 420 -connect 192.168.20.56::5500 -noregistry 
So there you have it people. If you have any questions or any problems running the script, just let me know and I will be more than happy to help.

Enjoy!!!
Last edited by Hickory420 on 2008-01-18 08:27, edited 1 time in total.
Post Reply