Ping: 主要是验证目标主机是否存活, 及主机运行的操作系统类型。
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] destination-list
例:ping -l 65500 -t 172.16.4.154
Options:
-t
-a
-n count
-l size
-f
-i TTL
-v TOS
-r count
-s count
-j host-list
-k host-list
-w timeout
Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. Resolve addresses to hostnames. Number of echo requests to send. Send buffer size. Set Don't Fragment flag in packet. Time To Live. Type Of Service. Record route for count hops. Timestamp for count hops. Loose source route along host-list. Strict source route along host-list. Timeout in milliseconds to wait for each reply.
nbtstat: 显示协议统计和当前TCP/IP连接。
Displays protocol statistics and current TCP/IP connections using NBT
(NetBIOS over TCP/IP).
NBTSTA T [ [-a RemoteName] [-A IP address] [-c] [-n]
[-r] [-R] [-RR] [-s] [-S] [interval] ]
例:nbtstat -c
-a (adapter status) Lists the remote machine's name table given its name
-A (Adapter status) Lists the remote machine's name table given its
IP address.
-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses
-n (names) Lists local NetBIOS names.
-r (resolved) Lists names resolved by broadcast and via WINS
-R (Reload) Purges and reloads the remote cache name table
-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IP
addresses to computer NETBIOS names.
-RR (ReleaseRefresh) Sends Name Release packets to WINs and then, starts Refr esh
RemoteName Remote host machine name.
IP address Dotted decimal representation of the IP address.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press Ctrl+C to stop redisplaying
statistics.
-s
specify
redisplaying Netstat: Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] 例:netstat -na -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop
statistics. If omitted, netstat will print the current
configuration information once.
Tracert:
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
Tracert
Options:
-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose source route along host-list.
-w timeout Wait timeout milliseconds for each reply.
Nslookup:
例:Nslookup www.sina.com
At:(task scheduler )
AT 命令安排在特定日期和时间运行命令和程序。
要使用 AT 命令,计划服务必须已在运行中。
AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"
例: at 23:05 tini.exe
at 23:06 “c:\program file\tini.exe”
at 23:07 “net start telnet ”
\\computername 指定远程计算机。 如果省略这个参数,
会计划在本地计算机上运行命令。 id 指定给已计划命令的识别号。
/delete 删除某个已计划的命令。如果省略 id ,
计算机上所有已计划的命令都会被删
除。
日运行。
日运行。
HELP |
SESSION | /yes 不需要进一步确认时,跟删除所有作业 的命令一起使用。 time 指定运行命令的时间。 /interactive 允许作业在运行时,与当时登录的用户 桌面进行交互。 /every:date[,...] 每个月或每个星期在指定的日期运行命令。 如果省略日期,则默认为在每月的本/next:date[,...] 指定在下一个指定日期(如,下周四) 运行命令。 如果省略日期,则默认为在每月的本"command" 准备运行的 Windows NT 命令或批处理程序。 Net: NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
NET ACCOUNTS
强制用户在时间到期之后多久必须注销?: 永不
密码最短使用期限 (天): 0
密码最长使用期限 (天): 42
密码长度下限: 0
保持的密码历史记录长度: None
锁定阈值: 永不
锁定持续时间(分): 30
锁定观测窗口(分): 30
计算机角色: SERVER
命令成功完成
net LOCALGROUP
net LOCALGROUP administrators guest /add
net LOCALGROUP administrators guest /del
此命令用于连接目标计算机或断开与目标计算机共享资源的连接,或显
示计算机的连接信息。
| *]] 例:net use \\192.168.1.67\ipc$ “123456” /user: adminstrator net use /del net use * /del net use k: 此命令的语法是: NET USE [devicename | *] [\\computername\sharename[\volume] [password
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
Net user:
此命令用于显示用户帐号信息以及添加、删除帐号、更改帐号信息。 例:net user
net user abcd 123 /add
net user guest /active:yes
net user abcd /del
用类似的帐号迷惑人,或所普通帐号提升为管理员。
此命令的语法是:
NET USER [username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN] username [/DELETE] [/DOMAIN]
此命令用于创建、删除或显示共享资源。
默认共享。
例:net share
net share music=c:\音乐 /remark: best music
net share music /del
此命令的语法是:
NET SHARE sharename
sharename=drive:path [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Automatic | No ] sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Automatic | No ]
{sharename | devicename | drive:path} /DELETE
net start:
此命令的语法是:
NET START [service]
例: net start telnet
net start “task scheduler“
net stop:
此命令的语法是:
NET STOP service
例:NET STOP TELNET
NET STOP “TASK SCHEDULER”
NET VIEW :
此命令用于显示域列表、计算机列表、或指定计算机的共享资源。 此命令的语法是:
NET VIEW [\\computername [/CACHE] | /DOMAIN[:domainname]] NET VIEW /NETWORK:NW [\\computername]
例: net view
net view
Ping: 主要是验证目标主机是否存活, 及主机运行的操作系统类型。
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] destination-list
例:ping -l 65500 -t 172.16.4.154
Options:
-t
-a
-n count
-l size
-f
-i TTL
-v TOS
-r count
-s count
-j host-list
-k host-list
-w timeout
Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. Resolve addresses to hostnames. Number of echo requests to send. Send buffer size. Set Don't Fragment flag in packet. Time To Live. Type Of Service. Record route for count hops. Timestamp for count hops. Loose source route along host-list. Strict source route along host-list. Timeout in milliseconds to wait for each reply.
nbtstat: 显示协议统计和当前TCP/IP连接。
Displays protocol statistics and current TCP/IP connections using NBT
(NetBIOS over TCP/IP).
NBTSTA T [ [-a RemoteName] [-A IP address] [-c] [-n]
[-r] [-R] [-RR] [-s] [-S] [interval] ]
例:nbtstat -c
-a (adapter status) Lists the remote machine's name table given its name
-A (Adapter status) Lists the remote machine's name table given its
IP address.
-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses
-n (names) Lists local NetBIOS names.
-r (resolved) Lists names resolved by broadcast and via WINS
-R (Reload) Purges and reloads the remote cache name table
-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IP
addresses to computer NETBIOS names.
-RR (ReleaseRefresh) Sends Name Release packets to WINs and then, starts Refr esh
RemoteName Remote host machine name.
IP address Dotted decimal representation of the IP address.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press Ctrl+C to stop redisplaying
statistics.
-s
specify
redisplaying Netstat: Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] 例:netstat -na -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop
statistics. If omitted, netstat will print the current
configuration information once.
Tracert:
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
Tracert
Options:
-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose source route along host-list.
-w timeout Wait timeout milliseconds for each reply.
Nslookup:
例:Nslookup www.sina.com
At:(task scheduler )
AT 命令安排在特定日期和时间运行命令和程序。
要使用 AT 命令,计划服务必须已在运行中。
AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"
例: at 23:05 tini.exe
at 23:06 “c:\program file\tini.exe”
at 23:07 “net start telnet ”
\\computername 指定远程计算机。 如果省略这个参数,
会计划在本地计算机上运行命令。 id 指定给已计划命令的识别号。
/delete 删除某个已计划的命令。如果省略 id ,
计算机上所有已计划的命令都会被删
除。
日运行。
日运行。
HELP |
SESSION | /yes 不需要进一步确认时,跟删除所有作业 的命令一起使用。 time 指定运行命令的时间。 /interactive 允许作业在运行时,与当时登录的用户 桌面进行交互。 /every:date[,...] 每个月或每个星期在指定的日期运行命令。 如果省略日期,则默认为在每月的本/next:date[,...] 指定在下一个指定日期(如,下周四) 运行命令。 如果省略日期,则默认为在每月的本"command" 准备运行的 Windows NT 命令或批处理程序。 Net: NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
NET ACCOUNTS
强制用户在时间到期之后多久必须注销?: 永不
密码最短使用期限 (天): 0
密码最长使用期限 (天): 42
密码长度下限: 0
保持的密码历史记录长度: None
锁定阈值: 永不
锁定持续时间(分): 30
锁定观测窗口(分): 30
计算机角色: SERVER
命令成功完成
net LOCALGROUP
net LOCALGROUP administrators guest /add
net LOCALGROUP administrators guest /del
此命令用于连接目标计算机或断开与目标计算机共享资源的连接,或显
示计算机的连接信息。
| *]] 例:net use \\192.168.1.67\ipc$ “123456” /user: adminstrator net use /del net use * /del net use k: 此命令的语法是: NET USE [devicename | *] [\\computername\sharename[\volume] [password
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
Net user:
此命令用于显示用户帐号信息以及添加、删除帐号、更改帐号信息。 例:net user
net user abcd 123 /add
net user guest /active:yes
net user abcd /del
用类似的帐号迷惑人,或所普通帐号提升为管理员。
此命令的语法是:
NET USER [username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN] username [/DELETE] [/DOMAIN]
此命令用于创建、删除或显示共享资源。
默认共享。
例:net share
net share music=c:\音乐 /remark: best music
net share music /del
此命令的语法是:
NET SHARE sharename
sharename=drive:path [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Automatic | No ] sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Automatic | No ]
{sharename | devicename | drive:path} /DELETE
net start:
此命令的语法是:
NET START [service]
例: net start telnet
net start “task scheduler“
net stop:
此命令的语法是:
NET STOP service
例:NET STOP TELNET
NET STOP “TASK SCHEDULER”
NET VIEW :
此命令用于显示域列表、计算机列表、或指定计算机的共享资源。 此命令的语法是:
NET VIEW [\\computername [/CACHE] | /DOMAIN[:domainname]] NET VIEW /NETWORK:NW [\\computername]
例: net view
net view