‎03-30-2012 02:07 AM
cmd.exe /K {actionpath}pslist.exe -s -r 3 \\{computer}
{actionpath}taskkill.bat {computer}
@echo off
if %1.==. GOTO END
:STARTOFKILL
ECHO.
@ECHO Preparing to kill Process on computer %1
REM Clearing variables
set killprocess=
set killagain=
set idkill=
ECHO.
set /p killprocess=Do you wish to kill a process (n/y) [enter=skip]?
if {%killprocess%}=={y} goto yeskill
if {%killprocess%}=={n} goto nokill
if %killprocess%.==. goto nokill
goto nokill
:yeskill
set /p idkill=Enter number only of ID to delete [process name or process id]?
\\NAMEOFSERVERHERE\lansweeper$\pskill.exe \\%1 %idkill%
set /p killagain=Do you wish to kill another process (n/y) [enter=skip]?
if {%killagain%}=={y} goto STARTOFKILL
if {%killagain%}=={n} goto noagainkill
:noagainkill
:nokill
ECHO.
ECHO Press any key to close this window...
pause>nul
GOTO END
:BLANK
:END
‎01-19-2018 10:36 PM
cmd /K sc \\{smartname} query remoteregistry & sc \\{smartname} start remoteregistry & sc \\{smartname} query remoteregistry & pause & exit
cmd /K sc \\{smartname} query remoteregistry & sc \\{smartname} stop remoteregistry & sc \\{smartname} query remoteregistry & pause & exit
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now