Community FAQ
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

Archive

This board contains archived posts from the retired Lansweeper Forum and Insiders Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now