8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

给Win10PE添加Microsoft iSCSI Initiator Service发起服务

尉官 caocaofff 2020-11-15 17:05:14 69

WinPE有了Microsoft iSCSI Initiator Service服务之后,就可以通过iscsicpl控制面板或iscsicli命令连接目标了。

如果你的Win10PE没有该功能,可以按下面步骤进行添加。

添加文件

先添加文件,文件列表如下:

此处内容隐藏,登录后可见!立即登录  登录后请刷新页面!刷新

这些文件都非常小,总体连1MB都不到

在注册表添加驱动

离线修改system注册表文件,附加到HKEY_LOCAL_MACHINE\ss

导入如下注册表内容:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\ss\ControlSet001\Services\iScsiPrt]
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,72,\
  00,69,00,76,00,65,00,72,00,73,00,5c,00,6d,00,73,00,69,00,73,00,63,00,73,00,\
  69,00,2e,00,73,00,79,00,73,00,00,00
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"DisplayName"="@iscsi.inf,%iScsiPortName%;iScsiPort Driver"
"Owners"=hex(7):69,00,73,00,63,00,73,00,69,00,2e,00,69,00,6e,00,66,00,00,00,00,\
  00
"BootFlags"=dword:00000001

[HKEY_LOCAL_MACHINE\ss\ControlSet001\Services\iScsiPrt\Parameters]
"BusType"=dword:00000009

 

在注册表添加服务

按同样步骤,导入下面注册表内容:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\ss\ControlSet001\Services\MSiSCSI]
"Description"="@%SystemRoot%\\system32\\iscsidsc.dll,-5001"
"DisplayName"="@%SystemRoot%\\system32\\iscsidsc.dll,-5000"
"ErrorControl"=dword:00000001
"FailureActions"=hex:50,46,00,00,01,00,00,00,01,00,00,00,03,00,00,00,14,00,00,\
  00,01,00,00,00,c0,d4,01,00,01,00,00,00,e0,93,04,00,00,00,00,00,00,00,00,00
"FailureActionsOnNonCrashFailures"=dword:00000001
"FailureCommand"="customScript.cmd"
"Group"="iSCSI"
"ImagePath"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,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,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,20,00,2d,00,70,00,00,\
  00
"ObjectName"="LocalSystem"
"RebootMessage"="See Note 3 below"
"RequiredPrivileges"=hex(7):53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,\
  00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,68,00,\
  61,00,6e,00,67,00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,\
  00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,\
  61,00,74,00,65,00,47,00,6c,00,6f,00,62,00,61,00,6c,00,50,00,72,00,69,00,76,\
  00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,61,00,\
  74,00,65,00,50,00,65,00,72,00,6d,00,61,00,6e,00,65,00,6e,00,74,00,50,00,72,\
  00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6d,00,\
  70,00,65,00,72,00,73,00,6f,00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,\
  00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,54,00,63,00,62,00,50,00,\
  72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,4c,00,6f,\
  00,61,00,64,00,44,00,72,00,69,00,76,00,65,00,72,00,50,00,72,00,69,00,76,00,\
  69,00,6c,00,65,00,67,00,65,00,00,00,00,00
"ServiceSidType"=dword:00000001
"Start"=dword:00000003
"Type"=dword:00000020

[HKEY_LOCAL_MACHINE\ss\ControlSet001\Services\MSiSCSI\Parameters]
"ServiceDll"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,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,\
  69,00,73,00,63,00,73,00,69,00,65,00,78,00,65,00,2e,00,64,00,6c,00,6c,00,00,\
  00
"ServiceDllUnloadOnStop"=dword:00000001

 

0000000000000000000000000000000000000000000000000000000000000000

 

虽然这里的Start值是3,但是可能并没有自启动该服务,你可以使用net start msiscsi来手动启动,当然,运行iscsicpl会提醒你服务没有启动是否需要启动。

最后分离注册表文件后打包启动。

 

本方法适用于32位、64位WIndows10PE系统,已在19042测试通过,特此分享。

 

我的博客:www.cboot.org
最新回复 (2)
  • 士兵 宝之林 2020-11-17 15:02:49
    2

    可以通过iscsicpl控制面板或iscsicli命令连接目标,是什么意思?小白不懂,楼主还需要说详细一点哦。

    这家伙太懒了,什么也没留下。
  • 尉官 caocaofff 2020-11-17 16:49:04
    3
    宝之林 可以通过iscsicpl控制面板或iscsicli命令连接目标,是什么意思?小白不懂,楼主还需要说详细一点哦。

    介绍:https://blog.csdn.net/tjiyu/article/details/52811458

    你可以理解为服务器开启了iscsi服务后,可以将某个存储介质映射为一个目标,客户端去连接这个目标就能在本地显示出该存储介质。用这个方法可以读取服务器的数据资源。

    我的博客:www.cboot.org
    • PECMD技术社区
      4
        登录 注册
返回