经典的网络管理命令

interface 命令
interface set/show interface 启用、禁用、连接、断开连接以及显示请求拨号接口的配置。
interface set/show credentials 在请求拨号接口上配置或显示用户名、密码和域名。
win2000命令全集
accwiz.exe > accessibility wizard for walking you through setting up your machine for your mobility needs. 辅助工具向导
acsetups.exe > acs setup dcom server executable
actmovie.exe > direct show setup tool 直接显示安装工具
append.exe > allows programs to open data in specified directories as if they were in the current directory. 允许程序打开制定目录中的数据
arp.exe > network display and modify ip - hardware addresses 显示和更改计算机的ip与硬件物理地址的对应列表
at.exe > at is a scheduling utility also included with unix 计划运行任务
atmadm.exe > displays statistics for atm call manager. atm调用管理器统计
attrib.exe > display and modify attributes for files and folders 显示和更改文件和文件夹属性
autochk.exe > used to check and repair windows file systems 检测修复文件系统
autoconv.exe > automates the file system conversion during reboots 在启动过程中自动转化系统
autofmt.exe > automates the file format process during reboots 在启动过程中格式化进程
autolfn.exe > used for formatting long file names 使用长文件名格式
bootok.exe > boot acceptance application for registry
bootvrfy.exe > bootvrfy.exe, a program included in windows 2000 that notifies the system that startup was successful. bootvrfy.exe can be run on a local or remote computer. 通报启动成功
cacls.exe > displays or modifies access control lists (acls) of files. 显示和编辑acl
calc.exe > windows calculators 计算器
cdplayer.exe > windows cd player cd播放器
change.exe > change { user | port | logon } 与终端服务器相关的查询
charmap.exe > character map 字符映射表
chglogon.exe > same as using "change logon" 启动或停用会话记录
chgport.exe > same as using "change port" 改变端口(终端服务)
chgusr.exe > same as using "change user" 改变用户(终端服务)
chkdsk.exe > check the hard disk for errors similar to scandisk 3 stages must specify a drive letter 磁盘检测程序
chkntfs.exe > same as using chkdsk but for ntfs ntfs磁盘检测程序
cidaemon.exe > component of ci filer service 组成ci文档服务
cipher.exe > displays or alters the encryption of directories [files] on ntfs partitions. 在ntfs上显示或改变加密的文件或目录
cisvc.exe > content index -- it's the content indexing service for i 索引内容
ckcnv.exe > cookie convertor 变换cookie
cleanmgr.exe > disk cleanup, popular with windows 98 磁盘清理
cliconfg.exe > sql server client network utility sql客户网络工具
clipbrd.exe > clipboard viewer for local will allow you to connect to other clipboards 剪贴簿查看器
clipsrv.exe > start the clipboard server 运行clipboard服务
clspack.exe > clspack used to create a file listing of system packages 建立系统文件列表清单
cluster.exe > display a cluster in a domain 显示域的集群
_cmd_.exe > famous command prompt 没什么好说的!
cmdl32.exe > connection manager auto-download 自动下载连接管理
cmmgr32.exe > connection manager 连接管理器
cmmon32.exe > connection manager monitor 连接管理器监视
cmstp.exe > connection manager profile manager 连接管理器配置文件安装程序
comclust.exe > about cluster server 集群
comp.exe > comclust add, remove, or join a cluster. 比较两个文件和文件集的内容*
compact.exe > displays or alters the compression of files on ntfs partitions. 显示或改变ntfs分区上文件的压缩状态
conime.exe > console ime ime控制台
control.exe > starts the control panel 控制面板
convert.exe > convert file system to ntfs 转换文件系统到ntfs
convlog.exe > converts ms iis log files 转换iis日志文件格式到ncsa格式
cprofile.exe > copy profiles 转换显示模式
cscript.exe > ms windows scripts host version 5.1 较本宿主版本
csrss.exe > client server runtime process 客户服务器runtime进程
csvde.exe > comma separated variable import/export utility 日至格式转换程序
dbgtrace.exe > 和terminal server相关
dcomcnfg.exe > display the current dcom configuration. dcom配置属性
dcphelp.exe > ?
dcpromo.exe > promote a domain controller to adsi ad安装向导
ddeshare.exe > display dde shares on local or remote computer dde共享
ddmprxy.exe >
debug.exe > runs debug, a program testing and editing tool. 就是debug啦!
dfrgfat.exe > defrag fat file system fat分区磁盘碎片整理程序
dfrgntfs.exe > defrag ntfs file system ntfs分区磁盘碎片整理程序
dfs_cmd_.exe > configures a dfs tree 配置一个dfs树
dfsinit.exe > distributed file system initialization 分布式文件系统初始化
dfssvc.exe > distributed file system server 分布式文件系统服务器
diantz.exe > ms cabinet maker 制作cab文件
diskperf.exe > starts physical disk performance counters 磁盘性能计数器
dllhost.exe > dllhost is used on all versions of windows 2000. dllhost is the hedost process for all com+ applications. 所有com+应用软件的主进程
dllhst3g.exe >
dmadmin.exe > disk manager service 磁盘管理服务
dmremote.exe > part of disk management 磁盘管理服务的一部分
dns.exe > dns applications dns
doskey.exe > recalls windows command lines and creates macros 命令行创建宏
dosx.exe > dos extender dos扩展
dplaysvr.exe > direct play helper 直接运行帮助
drwatson.exe > dr watson for 2000 fault detector 华生医生错误检测
drwtsn32.exe > dr watson for 2000 viewer and configuration manager 华生医生显示和配置管理
dtcsetup.exe > installs mdtc
dvdplay.exe > windows 2000 dvd player dvd播放
dxdiag.exe > direct-x diagnostics direct-x诊断工具
edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)
edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)
esentutl.exe > ms database utility ms数据库工具
eudcedit.exe > private character editor ture type造字程序
eventvwr.exe > windows 2000 event viewer 事件查看器
evnt_cmd_.exe > event to trap translator; configuration tool
evntwin.exe > event to trap translator setup
exe2bin.exe > converts exe to binary format 转换exe文件到二进制
expand.exe > expand files that have been compressed 解压缩
extrac32.exe > cab file extraction utility 解cab工具
fastopen.exe > fastopen tracks the location of files on a hard disk and stores the information in memory for fast access. 快速访问在内存中的硬盘文件
faxcover.exe > fax cover page editor 传真封面编辑
faxqueue.exe > display fax queue 显示传真队列
faxsend.exe > fax wizard for sending faxes 发送传真向导
faxsvc.exe > starts fax server 启动传真服务
fc.exe > compares two files or sets of files and their differences 比较两个文件的不同
find.exe > searches for a text string in file or files 查找文件中的文本行
findstr.exe > searches for strings in files 查找文件中的行
finger.exe > fingers a user and displays statistics on that user finger一个用户并显示出统计结果
fixmapi.exe > fix mapi files 修复mapi文件
flattemp.exe > enable or disable temporally directories 允许或者禁用临时文件目录
fontview.exe > display fonts in a font file 显示字体文件中的字体
forcedos.exe > forces a file to start in dos mode. 强制文件在dos模式下运行
freecell.exe > popular windows game 空当接龙
ftp.exe > file transfer protocol used to transfer files over a network connection 就是ftp了
gdi.exe > graphic device interface 图形界面驱动
grovel.exe >
grpconv.exe > program manager group convertor 转换程序管理员组
help.exe > displays help for windows 2000 commands 显示帮助
hostname.exe > display hostname for machine. 显示机器的hostname
ie4uinit.exe > ie5 user install tool ie5用户安装工具
ieshwiz.exe > customize folder wizard 自定义文件夹向导
iexpress.exe > create and setup packages for install 穿件安装包
iisreset.exe > restart iis admin service 重启iis服务
internat.exe > keyboard language indicator applet 键盘语言指示器
ipconfig.exe > windows 2000 ip configuration. 察看ip配置
ipsecmon.exe > ip security monitor ip安全监视器
ipxroute.exe > ipx routing and source routing control program ipx路由和源路由控制程序
irftp.exe > setup ftp for wireless communication 无线连接
ismserv.exe > intersite messaging service 安装或者删除service control manager中的服务
jdbgmgr.exe > microsoft debugger for java 4 java4的调试器
jetconv.exe > convert a jet engine database 转换jet engine数据库
jetpack.exe > compact jet database. 压缩jet数据库
jview.exe > command-line loader for java java的命令行装载者
krnl386.exe > core component for windows 2000 2000的核心组件
label.exe > change label for drives 改变驱动器的卷标
lcwiz.exe > license compliance wizard for local or remote systems. 许可证符合向导
ldifde.exe > ldif cmd line manager ldif目录交换命令行管理
licmgr.exe > terminal server license manager 终端服务许可协议管理
lights.exe > display connection status lights 显示连接状况
llsmgr.exe > windows 2000 license manager 2000许可协议管理
llssrv.exe > start the license server 启动许可协议服务器
lnkstub.exe >
locator.exe > rpc locator 远程定位
lodctr.exe > load perfmon counters 调用性能计数
logoff.exe > log current user off. 注销用户
lpq.exe > displays status of a remote lpd queue 显示远端的lpd打印队列的状态,显示被送到基于unix的服务器的打印任务
lpr.exe > send a print job to a network printer. 重定向打印任务到网络中的打印机。通常用于unix客户打印机将打印任务发送给连接了打印设备的nt的打印机服务器。
lsass.exe > lsa executable and server dll 运行lsa和server的dll
lserver.exe > specifies the new dns domain for the default server 指定默认server新的dns域
macfile.exe > used for managing macfiles 管理macfiles
magnify.exe > used to magnify the current screen 放大镜
makecab.exe > ms cabinet maker 制作cab文件
mdm.exe > machine debug manager 机器调试管理
mem.exe > display current memory stats 显示内存状态
migpwd.exe > migrate passwords. 迁移密码
mmc.exe > microsoft management console 控制台
mnmsrvc.exe > netmeeting remote desktop sharing netmeeting远程桌面共享
mobsync.exe > manage synchronization. 同步目录管理器
mountvol.exe > creates, deletes, or lists a volume mount point. 创建、删除或列出卷的装入点。
mplay32.exe > ms media player 媒体播放器
mpnotify.exe > multiple provider notification application 多提供者通知应用程序
mq1sync.exe >
mqbkup.exe > ms message queue backup and restore utility 信息队列备份和恢复工具
mqexchng.exe > msmq exchange connector setup 信息队列交换连接设置
mqmig.exe > msmq migration utility 信息队列迁移工具
mqsvc.exe > ?
mrinfo.exe > multicast routing using snmp 使用snmp多点传送路由
mscdexnt.exe > installs mscd (ms cd extensions) 安装mscd
msdtc.exe > dynamic transaction controller console 动态事务处理控制台
msg.exe > send a message to a user local or remote. 发送消息到本地或远程客户
mshta.exe > html application host html应用程序主机
msiexec.exe > starts windows installer program 开始windows安装程序
mspaint.exe > microsoft paint 画板
msswchx.exe >
mstask.exe > task schedule program 任务计划表程序
mstinit.exe > task scheduler setup 任务计划表安装
narrator.exe > program will allow you to have a narrator for reading. microsoft讲述人
nbtstat.exe > displays protocol stats and current tcp/ip connections using nbt 使用 nbt(tcp/ip 上的 netbios)显示协议统计和当前 tcp/ip 连接。
nddeapir.exe > ndde api server side ndde api服务器端
net.exe > net utility 详细用法看/?
net1.exe > net utility updated version from ms net的升级版
netdde.exe > network dde will install itself into the background 安装自己到后台
netsh.exe > creates a shell for network information 用于配置和监控 windows 2000 命令行脚本接口。
netstat.exe > displays current connections. 显示协议统计和当前的 tcp/ip 网络连接。
nlsfunc.exe > loads country-specific information 加载特定国家(地区)的信息。windows 2000 和 ms-dos 子系统不使用该命令。接受该命令只是为了与 ms-dos 文件兼容。
notepad.exe > opens windows 2000 notepad 记事本
nslookup.exe > displays information for dns 该诊断工具显示来自域名系统 (dns) 名称服务器的信息。
ntbackup.exe > opens the nt backup utility 备份和故障修复工具
ntbooks.exe > starts windows help utility 帮助
ntdsutil.exe > performs db maintenance of the adsi 完成adsi的db的维护
ntfrs.exe > nt file replication service nt文件复制服务
ntfrsupg.exe >
ntkrnlpa.exe > kernel patch 核心补丁
ntoskrnl.exe > core nt kernel kt的核心
ntsd.exe >
ntvdm.exe > simulates a 16-bit windows environment 模拟16位windows环境
nw16.exe > netware redirector netware转向器
nwscript.exe > runs netware scripts 运行netware脚本
odbcad32.exe > odbc 32-bit administrator 32位odbc管理
odbcconf.exe > configure odbc driver's and data source's from command line 命令行配置odbc驱动和数据源
os2.exe > an os/2 warp server (os2 /o) os/2
os2srv.exe > an os/2 warp server os/2
os2ss.exe > an os/2 warp server os/2
osk.exe > on screen keyboard 屏幕键盘
packager.exe > windows 2000 packager manager 对象包装程序
pathping.exe > combination of ping and tracert 包含ping和tracert的程序
pax.exe > is a posix program and path names used as arguments must be specified in posix format. use "//c/users/default" instead of "c:\users\default." 启动便携式存档互换 (pax) 实用程序
pentnt.exe > used to check the pentium for the floating point division error. 检查pentium的浮点错误
perfmon.exe > starts windows performance monitor 性能监视器
ping.exe > packet internet groper 验证与远程计算机的连接
posix.exe > used for backward compatibility with unix 用于兼容unix
print.exe > cmd line used to print files 打印文本文件或显示打印队列的内容。
progman.exe > program manager 程序管理器
proquota.exe > profile quota program
psxss.exe > posix subsystem application posix子系统应用程序
qappsrv.exe > displays the available application terminal servers on the network
在网络上显示终端服务器可用的程序
qprocess.exe > display information about processes local or remote 在本地或远程显示进程的信息(需终端服务)
query.exe > query termserver user process and sessions 查询进程和对话
quser.exe > display information about a user logged on 显示用户登陆的信息(需终端服务)
qwinsta.exe > display information about terminal sessions. 显示终端服务的信息
rasadmin.exe > start the remote access admin service 启动远程访问服务
rasautou.exe > creates a ras connection 建立一个ras连接
rasdial.exe > dial a connection 拨号连接
rasphone.exe > starts a ras connection 运行ras连接
rcp.exe > copies a file from and to a rcp service. 在 windows 2000 计算机和运行远程外壳端口监控程序 rshd 的系统之间复制文件
rdpclip.exe > rdpclip allows you to copy and paste files between a terminal session and client console session. 再终端和本地复制和粘贴文件
recover.exe > recovers readable information from a bad or defective disk 从坏的或有缺陷的磁盘中恢复可读取的信息。
redir.exe > starts the redirector service 运行重定向服务
regedt32.exe > 32-bit register service 32位注册服务
regini.exe > modify registry permissions from within a script 用脚本修改注册许可
register.exe > register a program so it can have special execution characteristics. 注册包含特殊运行字符的程序
regsvc.exe >
regsvr32.exe > registers and unregister's dll's. as to how and where it register's them i dont know. 注册和反注册dll
regtrace.exe > options to tune debug options for applications failing to dump trace statements
trace 设置
regwiz.exe > registration wizard 注册向导
remrras.exe >
replace.exe > replace files 用源目录中的同名文件替换目标目录中的文件。
reset.exe > reset an active section 重置活动部分
rexec.exe > runs commands on remote hosts running the rexec service. 在运行 rexec 服务的远程计算机上运行命令。rexec 命令在执行指定命令前,验证远程计算机上的用户名,只有安装了 tcp/ip 协议后才可以使用该命令。
risetup.exe > starts the remote installation service wizard. 运行远程安装向导服务
route.exe > display or edit the current routing tables. 控制网络路由表
routemon.exe > no longer supported 不再支持了!
router.exe > router software that runs either on a dedicated dos or on an os/2 system. route软件在 dos或者是os/2系统
rsh.exe > runs commands on remote hosts running the rsh service 在运行 rsh 服务的远程计算机上运行命令
rsm.exe > mounts and configures remote system media 配置远程系统媒体
rsnotify.exe > remote storage notification recall 远程存储通知回显
rsvp.exe > resource reservation protocol 源预约协议
runas.exe > run a program as another user 允许用户用其他权限运行指定的工具和程序
rundll32.exe > launches a 32-bit dll program 启动32位dll程序
runonce.exe > causes a program to run during startup 运行程序再开始菜单中
rwinsta.exe > reset the session subsystem hardware and software to known initial values 重置会话子系统硬件和软件到最初的值
savedump.exe > does not write to e:\winnt\user.dmp 不写入user.dmp中
scardsvr.exe > smart card resource management server 子能卡资源管理服务器
schupgr.exe > it will read the schema update files (.ldf files) and upgrade the schema. (part of adsi) 读取计划更新文件和更新计划
secedit.exe > starts security editor help 自动安全性配置管理
services.exe > controls all the services 控制所有服务
sethc.exe > set high contrast - changes colours and display mode logoff to set it back to normal 设置高对比
setreg.exe > shows the software publishing state key values 显示软件发布的国家语言
setup.exe > gui box prompts you to goto control panel to configure system components 安装程序(转到控制面板)
setver.exe > set version for files 设置 ms-dos 子系统向程序报告的 ms-dos 版本号
sfc.exe > system file checker test and check system files for integrity 系统文件检查
sfmprint.exe > print services for macintosh 打印macintosh服务
sfmp***e.exe >
sfmsvc.exe >
shadow.exe > monitor another terminal services session. 监控另外一台中端服务器会话
share.exe > windows 2000 和 ms-dos 子系统不使用该命令。接受该命令只是为了与 ms-dos 文件兼容
shmgrate.exe >
shrpubw.exe > create and share folders 建立和共享文件夹
sigverif.exe > file signature verification 文件签名验证
skeys.exe > serial keys utility 序列号制作工具
smlogsvc.exe > performance logs and alerts 性能日志和警报
smss.exe >
sndrec32.exe > starts the windows sound recorder 录音机
sndvol32.exe > display the current volume information 显示声音控制信息
snmp.exe > simple network management protocol used for network mangement 简单网络管理协议
snmptrap.exe > utility used with snmp snmp工具
sol.exe > windows solitaire game 纸牌
sort.exe > compares files and folders 读取输入、排序数据并将结果写到屏幕、文件和其他设备上
spoolsv.exe > part of the spooler service for printing 打印池服务的一部分
sprestrt.exe >
srvmgr.exe > starts the windows server manager 服务器管理器
stimon.exe > wdm stillimage- > monitor
stisvc.exe > wdm stillimage- > service
subst.exe > associates a path with a drive letter 将路径与驱动器盘符关联
svchost.exe > svchost.exe is a generic host process name for services that are run from dynamic-link libraries (dlls). dll得主进程
syncapp.exe > creates windows briefcase. 创建windows文件包
sysedit.exe > opens editor for 4 system files 系统配置编辑器
syskey.exe > encrypt and secure system database nt账号数据库按群工具
sysocmgr.exe > windows 2000 setup 2000安装程序
systray.exe > starts the systray in the lower right corner. 在低权限运行systray
taskman.exe > task manager 任务管理器
taskmgr.exe > starts the windows 2000 task manager 任务管理器
tcmsetup.exe > telephony client wizard 电话服务客户安装
tcpsvcs.exe > tcp services tcp服务
.exe > telnet utility used to connect to telnet server
termsrv.exe > terminal server 终端服务
tftp.exe > trivial ftp 将文件传输到正在运行 tftp 服务的远程计算机或从正在运行 tftp 服务的远程计算机传输文件
tftpd.exe > trivial ftp daemon
themes.exe > change windows themes 桌面主题
tlntadmn.exe > telnet server administrator telnet服务管理
tlntsess.exe > display the current telnet sessions 显示目前的telnet会话
tlntsvr.exe > start the telnet server 开始telnet服务
tracert.exe > trace a route to display paths 该诊断实用程序将包含不同生存时间 (ttl) 值的 internet 控制消息协议 (icmp) 回显数据包发送到目标,以决定到达目标采用的路由
tsadmin.exe > terminal server administrator 终端服务管理器
tscon.exe > attaches a user session to a terminal session. 粘贴用户会话到终端对话
tsdiscon.exe > disconnect a user from a terminal session 断开终端服务的用户
tskill.exe > kill a terminal server process 杀掉终端服务
tsprof.exe > used with terminal server to query results. 用终端服务得出查询结果
tsshutdn.exe > shutdown the system 关闭系统
unlodctr.exe > part of performance monitoring 性能监视器的一部分
upg351db.exe > upgrade a jet database 升级jet数据库
ups.exe > ups service ups服务
user.exe > core windows service windows核心服务
userinit.exe > part of the winlogon process winlogon进程的一部分
usrmgr.exe > start the windows user manager for domains 域用户管理器
utilman.exe > this tool enables an administrator to designate which computers automatically open accessibility tools when windows 2000 starts. 指定2000启动时自动打开那台机器
verifier.exe > driver verifier manager driver verifier manager
vwipxspx.exe > loads ipx/spx vdm 调用ipx/spx vdm
w32tm.exe > windows time server 时间服务器
wextract.exe > used to extract windows files 解压缩windows文件
winchat.exe > opens windows chat 打开windows聊天
winhlp32.exe > starts the windows help system 运行帮助系统
winlogon.exe > used as part of the logon process. logon进程的一部分
winmine.exe > windows game 挖地雷
winmsd.exe > windows diagnostic utility 系统信息
wins.exe > wins service wins服务
winspool.exe > print routing 打印路由
winver.exe > displays the current version of windows 显示windows版本
wizmgr.exe > starts windows administration wizards windows管理向导
wjview.exe > command line loader for java 命令行调用java
wowdeb.exe > . for starters, the 32-bit apis require that the wowdeb.exe task runs in the target debugee's vm 启动时,32位api需要
wowexec.exe > for running windows over windows applications 在windows应用程序上运行windows
wpnpinst.exe > ?
write.exe > starts ms write program 写字板
wscript.exe > windows scripting utility 脚本工具
wupdmgr.exe > starts the windows update wizard (internet) 运行windows升级向导
xcopy.exe > used to copy directories 复制文件和目录,包括子目录
修改注册表加强win 2000安全
资料编号:23760 来源:电脑报 发布:zwh 时间:2003.04.14 15:42 人气:841 关闭窗口
  1、设置生存时间
  hkey_local_machine\system\currentcontrolset\services\tcpip\parameters
  defaultttl reg_dword 0-0xff(0-255 十进制,默认值128)
  说明:指定传出ip数据包中设置的默认生存时间(ttl)值。ttl决定了ip数据包在到达目标前在网络中生存的最大时间。它实际上限定了ip数据包在丢弃前允许通过的路由器数量.有时利用此数值来探测远程主机操作系统。
  2、防止icmp重定向报文的攻击
  hkey_local_machine\system\currentcontrolset\services\tcpip\parameters
  enableicmpredirects reg_dword 0x0(默认值为0x1)
  说明:该参数控制windows 2000是否会改变其路由表以响应网络设备(如路由器)发送给它的icmp重定向消息,有时会被利用来干坏事.win2000中默认值为1,表示响应icmp重定向报文。
  3、禁止响应icmp路由通告报文
  hkey_local_machine\system\currentcontrolset\services\tcpip\parameters\inter
  faces\interface
  performrouterdiscovery reg_dword 0x0(默认值为0x2)
  说明:“icmp路由公告”功能可造成他人计算机的网络连接异常,数据被窃听,计算机被用于流量攻击等严重后果.此问题曾导致校园网某些局域网大面积,长时间的网络异常。因此建议关闭响应icmp路由通告报文.win2000中默认值为2,表示当dhcp发送路由器发现选项时启用。
  4、防止syn洪水攻击
  hkey_local_machine\system\currentcontrolset\services\tcpip\parameters
  synattackprotect reg_dword 0x2(默认值为0x0)
  说明:syn攻击保护包括减少syn-ack重新传输次数,以减少分配资源所保留的时间。路由缓存项资源分配延迟,直到建立连接为止.如果synattackprotect=2,则afd的连接指示一直延迟到三路握手完成为止.注意,仅在tcpmaxhalfopen和tcpmaxhalfopenretried设置超出范围时,保护机制才会采取措施。
 5、禁止c$、d$一类的缺省共享
  hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters
  autoshareserver、reg_dword、0x0
  6、禁止admin$缺省共享
  hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters
  autosharewks、reg_dword、0x0
  7、限制ipc$缺省共享
  hkey_local_machine\system\currentcontrolset\control\lsa
  restrictanonymous reg_dword 0x0 缺省
              0x1 匿名用户无法列举本机用户列表
              0x2 匿名用户无法连接本机ipc$共享
  说明:不建议使用2,否则可能会造成你的一些服务无法启动,如sql server
  8、不支持igmp协议
  hkey_local_machine\system\currentcontrolset\services\tcpip\parameters
  igmplevel reg_dword 0x0(默认值为0x2)
  说明:记得win9x下有个bug,就是用可以用igmp使别人蓝屏,修改注册表可以修正这个bug.win2000虽然没这个bug了,但igmp并不是必要的,因此照样可以去掉。改成0后用route print将看不到那个讨厌的224.0.0.0项了。
  9、设置arp缓存老化时间设置
  hkey_local_machine\system\currentcontrolset\services:\tcpip\parameters
  arpcachelife reg_dword 0-0xffffffff(秒数,默认值为120秒)
  arpcacheminreferencedlife reg_dword 0-0xffffffff(秒数,默认值为600)
  说明:如果arpcachelife大于或等于arpcacheminreferencedlife,则引用或未引用的arp缓存项在arpcachelife秒后到期。如果arpcachelife小于arpcacheminreferencedlife,未引用项在arpcachelife秒后到期,而引用项在arpcacheminreferencedlife秒后到期。每次将出站数据包发送到项的ip地址时,就会引用arp缓存中的项。
 10、禁止死网关监测技术
  hkey_local_machine\system\currentcontrolset\services:\tcpip\parameters
  enabledeadgwdetect reg_dword 0x0(默认值为ox1)
  说明:如果你设置了多个网关,那么你的机器在处理多个连接有困难时,就会自动改用备份网关。有时候这并不是一项好主意,建议禁止死网关监测。
  11、不支持路由功能
  hkey_local_machine\system\currentcontrolset\services:\tcpip\parameters
  ipenablerouter reg_dword 0x0(默认值为0x0)
  说明:把值设置为0x1可以使win2000具备路由功能,由此带来不必要的问题。
  12、做nat时放大转换的对外端口最大值
  hkey_local_machine\system\currentcontrolset\services:\tcpip\parameters
  maxuserport reg_dword 5000-65534(十进制)(默认值0x1388--十进制为5000)
  说明:当应用程序从系统请求可用的用户端口数时,该参数控制所使用的最大端口数。正常情况下,短期端口的分配数量为1024-5000。将该参数设置到有效范围以外时,就会使用最接近的有效数值(5000或65534)。使用nat时建议把值放大点。
  13、修改mac地址
  hkey_local_machine\system\currentcontrolset\control\class\
  找到右窗口的说明为"网卡"的目录,
  比如说是{4d36e972-e325-11ce-bfc1-08002be10318}
展开之,在其下的0000,0001,0002...的分支中找到"driverdesc"的键值为你网卡的说明,比如说"driverdesc"的值为"intel(r) 82559 fast ethernet lan on motherboard"然后在右窗口新建一字符串值,名字为"networkaddress",内容为你想要的mac值,比如说是"004040404040"然后重起计算机,ipconfig /all看看。
曾几何时,大家都有想过在命令行下改ip和网关。以前在nt4下实现起来过于麻烦,现在windows 2000下的netsh命令能实现该功能了。
netsh 是本地或远程计算机的 windows 2000 网络组件的命令行和脚本实用程序。为了存档或配置其他服务器,netsh 实用程序也可以将配置脚本保存在文本文件中。
netsh 实用程序是一个外壳,它通过附加的"netsh 帮助 dll",可以支持多个 windows 2000 组件。"netsh 帮助 dll"提供用来监视或配置特定 windows 2000 网络组件的其他命令,从而扩展了 netsh 的功能。每个"netsh 帮助 dll"都为特定的网络组件提供了一个环境和一组命令。每个环境中都可以有子环境。例如,在路由环境中存在子环境 ip 和 ipx,它们将 ip 路由和 ipx 路由命令集中在一起。
netsh 命令行选项包括下列各项:
用法: netsh [-a aliasfile] [-c context] [-r remotemachine]
[command | -f scriptfile]
下列指令有效:
此上下文中的命令:
? - 显示命令列表。
aaaa - 更改到 `aaaa' 上下文。
add - 将一个配置项添加到项目列表中。
delete - 在项目列表上删除一个配置项目。
dhcp - 更改到 `dhcp' 上下文。
dump 0 - 显示一个配置脚本。
exec - 运行一个脚本文件。
help - 显示命令列表。
interface - 更改到 `interface' 上下文。
ras - 更改到 `ras' 上下文。
routing - 更改到 `routing' 上下文。
set - 更新配置设置。
show - 显示信息
wins - 更改到 `wins' 上下文。
下列的子上下文可用:
routing interface ras dhcp wins aaaa
若需要命令的更多帮助信息,请键入命令,
后面跟 ?。
-a aliasfile
指定使用了一个别名文件。别名文件包含 netsh 命令列表和一个别名版本,所以可以使用别名命令行替换 netsh 命令。可以使用别名文件将其他平台中更熟悉的命令映射到适当的 netsh 命令。
-c context
指定对应于已安装的支持 dll 的命令环境。
命令
指定要执行的 netsh 命令。
-f scriptfile
指定运行 scriptfile 文件中所有的 netsh 命令。
-r remotemachine
指定在远程计算机上运行 netsh 命令,由名称或 ip 地址来指定远程计算机。
您可以将命令缩写为意义明确的最短的字符串。例如,发布 sh ip int 命令相当于发布 show ip interface。netsh 命令可以是全局的或特定环境的。全局命令可以在任何环境中发布,并用于一般的 netsh 实用程序功能。特定环境的命令随环境而变化。您可以将发布的命令记录在日志文件中,以创建 netsh 命令会话的审核踪迹。
列出了 netsh 全局命令。
命令 说明
.. 上移一个环境等级。
? 或 help 显示命令行"帮助"。
show version 显示 windows 和 netsh 实用程序的当前版本。
show netdlls 显示已安装的"netsh 帮助 dll"的当前版本。
add helper 添加"netsh 帮助 dll"。
delete helper 删除"netsh 帮助 dll"。
show helper 显示已安装的"netsh 帮助 dll"。
cmd 创建 windows 2000 命令窗口。
online 将当前模式设置为联机。
offline 将当前模式设置为脱机。
set mode 将当前模式设置为联机或脱机。
show mode 显示当前模式。
flush 丢弃以脱机模式进行的任何更改。
commit 提交以脱机模式进行的更改。
set audit-logging 打开或关闭记录工具。
show audit-logging 显示当前的审核记录设置。
set loglevel 设置记录信息的级别
show loglevel 显示记录信息的级别。
set machine 配置执行 netsh 命令的计算机。
show machine 显示执行 netsh 命令的计算机。
exec 执行包括 netsh 命令的脚本文件。
quit 或 bye 或 exit 退出 netsh 实用程序。
add alias 向现有命令添加别名。
delete alias 删除现有命令的别名。
show alias 显示所有已定义的别名。
dump 将配置写入文本文件。
popd 从堆栈中弹出环境的脚本命令。
pushd 将当前的环境推入堆栈的脚本命令。
netsh 实用程序有如下命令模式:
联机
联机模式下,在 netsh 命令提示符下发布的命令被立即执行。
脱机
脱机模式下,将在 netsh 命令提示符下积累发布的命令,并通过发布 commit 全局命令来按照批处理方式执行。可以通过发布 flush 全局命令来丢弃积累的命令。
脚本
使用 -f 命令行选项,或在 netsh 命令提示符下发布 exec 全局命令,可以执行指定文件中所有的 netsh 命令。
要创建当前配置的脚本,请使用 dump 全局命令。dump 命令根据 netsh 命令输出当前运行的配置。可以使用该命令创建的脚本来配置新的服务器或重新配置现有的服务器。如果要对组件的配置作很大的更改,推荐您使用 dump 命令开始配置会话,以防在进行更改前需要还原配置。
interface 命令
下表列出了可在 windows 2000 命令提示符下键入的 netsh 命令,这些命令用于管理运行 windows 2000 server 及"路由和远程访问"服务的计算机上的接口设置。如果对某个特殊功能有多个命令,则在每个命令之间用斜线 (/) 分隔。
当在命令提示符下键入命令时,请在每个命令前加上 netsh。要获得每个命令的精确语法,可在命令之后键入 ?。选项例如,要获得 netsh interface 命令的命令行"帮助",请在命令提示符下键入 netsh interface?。
命令 说明
interface set/show interface 启用、禁用、连接、断开连接以及显示请求拨号接口的配置。
interface set/show credentials 在请求拨号接口上配置或显示用户名、密码和域名。
……… (省略二、三千字)

言归正传,现在来看看win2000下的网络设置的配置。
d:\>netsh
netsh>interface
interface>dump
#========================
# 接口配置
#========================
pushd interface
reset all

popd
# 接口配置结束
# ----------------------------------
# 接口 ip 配置
# ----------------------------------
pushd interface ip

# "本地连接 2" 的接口 ip 配置
set address name = "本地连接 2" source = dhcp
set dns name = "本地连接 2" source = dhcp
set wins name = "本地连接 2" source = dhcp
# "本地连接" 的接口 ip 配置
set address name = "本地连接" source = static addr = 192.168.1.10 mask = 255.255.255.0
set address name = "本地连接" gateway = 192.168.0.1 gwmetric = 1
set dns name = "本地连接" source = static addr = 192.168.0.1
set wins name = "本地连接" source = static addr = none

popd
# 接口 ip 配置结束

如果,你想快速修改一个本地ip地址。
你可以先用文本写入以下的内容:
interface ip
set address 本地连接 static 192.168.5.10 255.255.255.0 192.168.0.1 1
接口名称 ip地址 子网掩码 网关 接口跃点数
如上保存为 local.sh
d:\>netsh exec local.sh即可。是不是十分简单呢。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值