windows recovery mode集成硬盘驱动

windows recovery mode相关命令

reagentc /?

reagentc /info

reagentc /disable

reagentc /enable

腾讯云windows recovery模式没集成硬盘驱动,以server2019为例,介绍如何给recovery mode集成驱动

其实≥2008R2的系统操作方式都一样(低版本跟高版本的命令稍有区别,参考文档尾部给出的附件代码),但大致思路是一样的:要先找准winre.wim的位置,通过reagentc /info 命令即可确认位置,例如下图这个系统的winre.wim的位置就是磁盘0(即系统盘)的第2个分区(即C盘)的Recovery\WindowsRE\目录下

winre.wim的位置即C:\Recovery\WindowsRE\Winre.wim

【高版本系统集成recovery模式硬盘驱动】

wget http://115.159.148.149/Win10_2016_2019.zip -outfile c:\drivers.zip

expand-archive -path "c:\drivers.zip" -destinationpath c:\drivers

pnputil -i -a c:\drivers\amd64\*.inf

mkdir C:\boottmp -force

dism /Get-ImageInfo /ImageFile:"C:\Recovery\WindowsRE\Winre.wim"

dism /Mount-Image /ImageFile:"C:\Recovery\WindowsRE\Winre.wim" /index:1 /MountDir:"C:\boottmp"

dism /Add-Driver /Image:"C:\boottmp" /Driver:"C:\drivers\amd64\viostor.inf" /ForceUnsigned

dism /Add-Driver /Image:"C:\boottmp" /Driver:"C:\drivers\amd64\netkvm.inf" /ForceUnsigned

dism /Image:"C:\boottmp" /Get-Drivers

dism /Unmount-Image /MountDir:"C:\boottmp" /Commit

这里给一个脚本仅供参考,代码上有if else判断操作系统的高低版本而加以命令的区别。

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...