Complete NetShell (netsh) command reference — 24 commands with syntax and examples
← Back to TNI ToolkitProgram management - install, start, stop, and manage programs on servers.
program listprogram describe dns-serverprogram view installed on 123 using 456program install dns-lite on 123 using 456program start dns-lite on 123 using 456program uninstall * on 123 using 456DNS management - lookup, map, and unmap domain names.
dns lookup abc.xyz using 456dns map readnews.com as 123 using 456dns map readnews.com as @foobar using 456dns unmap readnews.com using 456DHCP management - configure DHCP server options.
dhcp show on @mydhcp using @mydebugdhcp option dns @mydns on @mydhcp using @mydebugdhcp option prefix @net1/ on @mydhcp using 456dhcp option bind 1234 as @fixed on @dhcp using 456dhcp option unbind 1234 on @dhcp using 456Manage rules on firewalls - allow/deny traffic by type, source, destination.
firewall show on 123 using 456firewall default deny on 123 using 456firewall allow udp/53 to @dns on 123 using 456firewall deny tcp/22 from @hacker on 123 using 456firewall deny tcp/7*9 on 123 using 456firewall remove #0 on 123 using 456firewall remove #2 #3 #5 on 123 using 456Manage routes on routers - add, remove, and configure routing rules.
route show on 123 using 456route default via port0 on 123 using 456route default drop on 123 using 456route add @abc via port1 on 123 using 456route add @abc traffic tcp/80 via port2 on 123 using 456route add traffic udp/67 from port1 via port2 on 123 using 456route enable broadcast on 123 using 456Configure auto route discovery on routers (RIP protocol).
rip show on 123 using 456rip advertise on 123 using 456rip advertise via port0 on 123 using 456rip listen on 123 using 456Manage virtual local area networks on managed switches.
vlan show on @mysw1 using @mydebugvlan tag port1 with #vlan1 on @mysw using @mydebugvlan tag port1 port2 with #vlan2 on @mysw using @mydebugvlan tag port3 with #vlan1 #vlan2 on @mysw using @mydebugvlan untag port2 with #vlan2 on @mysw using @mydebugManage network configuration on devices/users.
net show on 123 using 456net address set @235-013 on 123 using 456net addr set @debug1 on 123 using 456net dns set @mydns on 123 using 456net dhcp periodic on 123 using 456Scan and list devices accessible through a debugger.
scan devices using 123scan d using 123scan dhcp from 123 with udp/67 using 456scan routers using 123View device status through a remote debugger.
dstat 123 using 456dstat clear 123 using 456Watch device information/programs through a debugger.
watch using 123watch 123 using 456Start traffic capture on a network tap.
pcap on 123 using 456pcap =udp/520 on 123 using 456pcap exclude =tcp/23 =udp/23 on 123 using 456Manage virtual machines on servers.
vmconf show on @mysrv using @mydebugvmconf create 2 1 1 on @mysrv using @mydebugvmconf create 2 1 1 netaddr @myvm on @mysrv using @mydebugManage bots on devices.
botconf show on 123 using 456botconf create visitor to 789 on 123 using 456Manage high-availability setup on devices.
haconf show on @mydevice using @mydebugRemote tool for file backup/migration.
sftp ls on 123 using 456sftp cp /etc/routes.conf on 123 to 789 using 456sftp cp /etc/routes.conf on 123 to 789 rename backup1 using 456sftp rm myfile on 1337 using 456Remote device power management.
power suspend on 123 using 456power wake on 123 using 456power wake broadcast using 456Create command aliases for convenience.
aliasalias apt programalias telnet always usingalias tr trace ${1} from @dbg; tr 123Shell quality-of-life enhancements - set default debugger/device.
always using 123always usingalways not usingalways on 456Schedule commands to run automatically.
cron showcron add hourly ping 123cron add 1200 program start dns-server on @nooncron remove #0 #2cron clear allTry a command, run another if it succeeds or fails.
try ping 1234 else notify 1234 is downtry ping 1234 then notify up else notify downList debuggers for remote access. Only lists debuggers that are RUNNING - make sure to power them up.
Send an on-screen notification.
notify Server is down!Usage manual/help routine.
manman firewallClear the terminal screen.
Print text to terminal.
Exit netsh terminal.