Chinaunix首页 | 论坛 | 博客
  • 博客访问: 161636
  • 博文数量: 26
  • 博客积分: 1550
  • 博客等级: 上尉
  • 技术积分: 380
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-29 03:53
文章分类
文章存档

2012年(1)

2011年(7)

2009年(1)

2008年(17)

我的朋友

分类: WINDOWS

2008-08-30 20:05:24

那是因为你的系统里有隐藏网卡,隐藏网卡的IP是10.1.1.1 所以就产生了冲突啊
删除隐藏网卡就可以了,具体方法如下
  在DOS命令行中,输入字符串命令“set devmgr_show_nonpresent_devices=1”,再单击一下回车键;接着继续执行“Start DEVMGMT.MSC”命令,打开系统的设备管理器窗口;再单击该窗口菜单栏中的“查看”/“显示隐藏的设备”命令(如图1所示),然后从设备列表中展开“网卡”项目,随后你将看到一个灰色调的网卡图标,该网卡其实就是所谓的“隐藏”网卡了。可以写成vbs脚本运行如下
// DEVMGR_SHOW_NONPRESENT_DEVICES.js 设置环境变量并启用设备管理器查看幽灵硬件
// Author: Climbing (xclimbing@gmail.com)
var shell
shell = WScript.CreateObject("WScript.Shell")
shell.Environment("System").Item("DEVMGR_SHOW_NONPRESENT_DEVICES")='1'
shell.run("devmgmt.msc")
 
 
 
或者使用注册表[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}就是network的第一项下有本地连接1,2,3,4等,把它没删掉。
 
引用下删除本机所有硬件设备的批处理,封装系统用的,转自,感谢石头哥的无私奉献
reg delete HKLM\SYSTEM\ControlSet001\Enum\ACPI /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\DISPLAY /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\FDC /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\HID /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\IDE /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\ISAPNP /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\LPTENUM /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\SERENUM /f
reg query "HKLM\SYSTEM\ControlSet001\Enum\PCI" | find "VEN" > ~dev2del.txt
if exist ~dev2del.txt for /F "tokens=*" %%i in (~dev2del.txt) do reg delete "%%i" /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\PCIIDE /f
::reg delete HKLM\SYSTEM\ControlSet001\Enum\SCSI /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\STORAGE /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\SW /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\USB /f
::reg delete HKLM\SYSTEM\ControlSet001\Enum\PCI_HAL /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\*PNP0501 /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_VGA /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\MEDIA /f
reg query "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root" | find "*" > ~dev2del.txt
if exist ~dev2del.txt for /F "tokens=*" %%i in (~dev2del.txt) do reg delete "%%i" /f
if exist ~dev2del.txt del /f /q ~dev2del.txt
 
提到了这个注册表项,再啰嗦点,[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\
保存了XP下的系统服务设置,可以在这里删除不需要的服务,QQ曾有键盘服务的bug,就是在这里解决的,
服务的说明文字也是在这修改的,当然没啥意义。
例如HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Alerte的内容
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Alerter]
"Type"=dword:00000020
"Start"=dword:00000004
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
  6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,00,72,00,76,00,69,00,63,\
  00,65,00,00,00
"DisplayName"="Alerter"
"DependOnService"=hex(7):4c,00,61,00,6e,00,6d,00,61,00,6e,00,57,00,6f,00,72,00,\
  6b,00,73,00,74,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00
"DependOnGroup"=hex(7):00,00
"ObjectName"="NT AUTHORITY\\LocalService"
"Description"="哈哈,我改了。通知所选用户和计算机有关系统管理级警报。如果服务停止,使用管理警报的程序将不会受到它们。如果此服务被禁用,任何直接依赖它的服务都将不能启动。"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Alerter\Parameters]
"AlertNames"=hex(7):00,00
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
  00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
  61,00,6c,00,72,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Alerter\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
  05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
  00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Alerter\Enum]
"0"="Root\\LEGACY_ALERTER\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
 
其中的Start的值是启动类型,1:系统,2:自动,3:手动,4:禁止,使用net start(stop)也可以达到控制服务的效果。
DisplayName是服务"名称",Description是"描述",还有其他的对比下就知道了。
 
 
 
 
 
阅读(4936) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~