Chinaunix首页 | 论坛 | 博客
  • 博客访问: 591154
  • 博文数量: 60
  • 博客积分: 3993
  • 博客等级: 中校
  • 技术积分: 1572
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-08 17:08
文章分类

全部博文(60)

文章存档

2012年(7)

2011年(35)

2010年(8)

2009年(7)

2008年(3)

分类: WINDOWS

2011-10-09 15:39:15

您可以在命令提示符处使用 Sysocmgr.exe 工具来添加或删除 Windows 组件。您可以将 Sysocmgr.exe 与以下命令行开关一起使用:

  • /i:path to Sysoc.inf file,其中 path to Sysoc.inf file 是 Sysoc.inf 文件的完整路径,例如:

    c:\windows\inf\sysoc.inf

  • /u:path to answer file,其中 path to answer file 是包含要添加或删除的项目列表的应答文件的完整路径。
  • /q - 以安静模式运行 Sysocmgr.exe(无显示页)
  • /r - 禁止重新启动(如果需要)
注意:此过程不能处理 Microsoft 传真服务、Windows Media Player、COM+ 和分布式事务协调器,因为这些组件不支持它。这些是不可删除的核心组件。
应答文件可以是任何 Windows 应答文件,它只解析 [Components] 和 [NetOptionalComponents] 两部分。下面显示的是一个示例文件:

[Components] Netoc = on Reminst = on Paint = off pinball = off Solitaire = off [NetOptionalComponents] lpdsvc = 1 SimpTcp = 1 wins = 1

要使用 Sysocmgr.exe 开始安装或卸载这些组件,请键入下面的命令(将文件保存为 c:\ocm.txt):

sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt

阅读(2243) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~