2015-05-12 14:12:37
来 源
中存储网
Windows 7
上一篇文章讲的是:防止黑客入侵攻击简单设置Win7磁盘配额;本篇主题是:安装SCSI驱动WinPE下如何

@echo off
title 在PE下安装硬盘控制器驱动简单脚本 by chenall 2008-12-14
rem 使用方法: 1.可直接拖放,即把对应驱动的SYS文件拖放到这个程序的图标上.
rem  2.使用命令行pe_scsi.cmd [你的SYS文件]
rem ....http://www.366840202.cn................http://bbs.wuyou.com
rem ...
if "%1"=="" goto :eof
>"%temp%scsi_serv.inf" echo.
>>"%temp%scsi_serv.inf" echo.[Version]
>>"%temp%scsi_serv.inf" echo.signature = "$Windows NT$"
>>"%temp%scsi_serv.inf" echo.[DefaultInstall.Services]
>>"%temp%scsi_serv.inf" echo.AddService = %~n1,,Service
>>"%temp%scsi_serv.inf" echo.[Service]
>>"%temp%scsi_serv.inf" echo.DisplayName = "%~n1 Service"
>>"%temp%scsi_serv.inf" echo.Description = "%~1"
>>"%temp%scsi_serv.inf" echo.ServiceType = 2
>>"%temp%scsi_serv.inf" echo.StartType = 2
>>"%temp%scsi_serv.inf" echo.ErrorControl = 1
>>"%temp%scsi_serv.inf" echo.ServiceBinary = %%12%%%~nx1
copy /y %1 %WinDir%system32drivers >nul
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %temp%scsi_serv.inf
if not errorlevel 1 (echo.%~nX1驱动安装成功!&pecmd serv %~n1&pause) else (echo.安装失败!&pause)
del /f /q "%temp%scsi_serv.inf"

一直以来,在PE下安装硬盘控制器驱动都是失败的,因为都是使用DEVCON类。SCSI驱动是不是也可以使用类似的方法呢?实验证明,我的想法有一定的可行性(因无条件进行全面测试)!

具体安装方法.
1、把这个驱动的SYS文件复制到DRIVERS目录,其它文件复制到(不需要INF文件)SYSTEM32(注:一般都只有一个SYS文件,所以只要把这个SYS文件复制到DRIVERS目录就好了)。
2,把这个SYS文件设为服务并启动。
3、好了,如果服务正常启动,那系统中就会显示出你的SCSI硬盘。

附上测试效果图,使用VMSARE测试的,附件4为下面批处理脚本,可在PE下使用(注:测试图为了方便,我是直接使用VCdControlTool加载的驱动,正常使用可以直接使用下面的脚本)。

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。