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