→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
FixitDave
Champion Sweeper
If you already have VNC service started and you use the built in lansweeper action it will stop the existing service and not restart it.

  • Save the following code as VNC.cmd and place it in your {ActionPath}
  • Change the VNCServer value to match the VNC listening service you're using.
  • Copy the VNCViewer.exe file to the {ActionPath}



@echo off
set VNCServer=WINvnc.exe

echo Checking for VNC server application...
wmic /Node:%2 process get name|find /I "%VNCServer%">nul
if '%ERRORLEVEL% EQU '0 (
echo found %VNCServer% process, using locally installed VNC
start %1vncviewer.exe %2
) else (
echo NOT found %VNCServer% process, installing VNC service
start %1lsremote %2
)
timeout /T 5


Add the following line as an action...

{actionpath}VNC.cmd {actionpath} {smartname}
0 REPLIES 0