Clone wiki

lan-admin / Context Menu Commands

Samples External Context Menu Commands for LAN Administrator

User Account

cm_item*=Account Info
cm_icon*=utils\photo\photo.ico
cm_cmd*=cmd /k title <host.user_cn> && net user <host.user> /domain

cm_item*=Account Disabled
cm_icon*=user_off.ico
cm_cmd*=cmd /k title <host.user_cn> && echo Account Disabled && dsmod user "CN=<host.user_cn>,OU=Users,DC=fabrikam,DC=com" -disabled yes

cm_item*=Account Enabled
cm_icon*=user_on.ico
cm_cmd*=cmd /k title <host.user_cn> && echo Account Enabled && dsmod user "CN=<host.user_cn>,OU=Users,DC=fabrikam,DC=com" -disabled no

Send Message

cm_item*=Send Message
cm_icon*=edit.ico
cm_cmd*="utils\message.vbs" <host.name>
cm_offline_disabled*=1

message.vbs

strComputer = WScript.Arguments(0)
strText = InputBox("Enter your message", "Send Message to " & strComputer, "Hello!")
If (strText <> "") Then
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
    objWMIService.Create "msg * " & strText, null, null, intProcessID
End If

Send Email

cm_item*=Send Email
cm_icon*=email.ico
cm_cmd*=mailto:<host.user_mail>
cm_offline_disabled*=1

Total Commander

cm_item*=cd C$
cm_icon*=tc.ico
cm_cmd*="utils\Open_Folder_with_Total_Commander.js" \\<host.name>\c$
cm_offline_disabled*=1

cm_item*=cd %UserProfile%
cm_icon*=tc.ico
cm_cmd*="utils\Open_Folder_with_Total_Commander.js" "<host.UserProfile>"
cm_offline_disabled*=1

Ping Host

cm_item*=Ping Host
cm_icon*=ping.ico
cm_cmd*=cmd /k title <host.name> & ping -a <host.name> -t

List Installed Software

cm_item*=List Installed Software
cm_icon*=install.ico
cm_cmd*=cmd /k title <host.name> && echo Wait... && wmic /node:"<host.name>" product get name, version
cm_offline_disabled*=1

Remote Tasks Control

cm_item*=Processes
cm_icon*=utils\RemoteTaskControl\files\process.ico
cm_cmd*=utils\RemoteTaskControl\rtc.hta <host.name>
cm_offline_disabled*=1

cm_item*=Services
cm_icon*=utils\RemoteTaskControl\files\service.ico
cm_cmd*=utils\RemoteTaskControl\rtc.hta <host.name> /service
cm_offline_disabled*=1

cm_item*=Devices
cm_icon*=utils\RemoteTaskControl\files\device.ico
cm_cmd*=utils\RemoteTaskControl\rtc.hta <host.name> /device
cm_offline_disabled*=1

Event Viewer

cm_item*=Event Viewer
cm_icon*=event.ico
cm_cmd*=eventvwr.msc /computer:"\\<host.name>"
cm_offline_disabled*=1

Schedule Tasks

cm_item*=Schedule Tasks
cm_icon*=scheduler.ico
cm_cmd*=explorer \\<host.name>\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
cm_offline_disabled*=1

Computer Management

cm_item*=Computer Management
cm_icon*=computer.ico
cm_cmd*=compmgmt.msc /computer=\\<host.name>
cm_offline_disabled*=1

List Files Opened on FileServer

cm_item*=List Open Files
cm_icon*=share.ico
cm_cmd*=utils\ListOpenFiles.vbs <host.name>
cm_offline_disabled*=1

Computer Shutdown

cm_item*=Shutdown
cm_icon*=off.ico
cm_cmd*=cmd /k title <host.name> & shutdown /s /f /m \\<host.name> && echo \\<host.name> shutdown
cm_offline_disabled*=1

Remote Desktop Connection

cm_item*=RDP
cm_icon*=remote_desktop.ico
cm_cmd*=mstsc /v:<host.name>
cm_offline_disabled*=1

Remote Administrator

cm_item*=RAdmin / Install-Uninstall
cm_icon*=install.ico
cm_cmd*="<util_dir>\RAdmin\rinstall.cmd" <host.ip>
cm_offline_disabled*=1

cm_item*=RAdmin / Full Control
cm_icon*=radmin_full_control.ico
cm_cmd*="<util_dir>\RAdmin\radmin.exe" /connect:<host.ip>:<host.radmin_port>
cm_offline_disabled*=1

cm_item*=RAdmin / View Only
cm_icon*=radmin_view.ico
cm_cmd*="<util_dir>\RAdmin\radmin.exe" /connect:<host.ip>:<host.radmin_port> /noinput
cm_offline_disabled*=1

cm_item*=RAdmin / File Transfer
cm_icon*=radmin_file_transfer.ico
cm_cmd*="<util_dir>\RAdmin\radmin.exe" /connect:<host.ip>:<host.radmin_port> /file
cm_offline_disabled*=1

cm_item*=RAdmin / Telnet
cm_icon*=radmin_telnet.ico
cm_cmd*="<util_dir>\RAdmin\radmin.exe" /connect:<host.ip>:<host.radmin_port> /telnet
cm_offline_disabled*=1

DameWare Mini Remote Control

cm_item*=DameWare Control
cm_icon*=dameware.ico
cm_cmd*="%ProgramFiles%\DameWare\DameWare NT Utilities 7.5\DWRCC.exe" -h: -c: -m:<host.name> -x:
cm_offline_disabled*=1

cm_item*=DameWare View
cm_icon*=dameware.ico
cm_cmd*="%ProgramFiles%\DameWare\DameWare NT Utilities 7.5\DWRCC.exe" -h: -c: -m:<host.name> -x: -v:
cm_offline_disabled*=1

UltraVNC

cm_item*=UltraVNC
cm_icon*=utils\VNC\vnc.ico
cm_cmd*="utils\VNC\_vnc.cmd" <host.name>
cm_offline_disabled*=1

[_vnc.cmd] [cm_vnc.zip]

Icons for Context Menu

Updated