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
虽然这里的Start值是3,但是可能并没有自启动该服务,你可以使用net start msiscsi来手动启动,当然,运行iscsicpl会提醒你服务没有启动是否需要启动。
最后分离注册表文件后打包启动。
本方法适用于使用Win10builder制作的32位、64位WIndows10PE系统,已在19042测试通过,特此分享。
可以通过iscsicpl控制面板或iscsicli命令连接目标,是什么意思?小白不懂,楼主还需要说详细一点哦。
宝之林 可以通过iscsicpl控制面板或iscsicli命令连接目标,是什么意思?小白不懂,楼主还需要说详细一点哦。
介绍:https://blog.csdn.net/tjiyu/article/details/52811458
你可以理解为服务器开启了iscsi服务后,可以将某个存储介质映射为一个目标,客户端去连接这个目标就能在本地显示出该存储介质。用这个方法可以读取服务器的数据资源。
Win11pe failed
conthuongbome Win11pe failed
分享的文件列表可能不全。win11pe需要执行:
reg delete HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT /f
ss 应该是 SYSTEM吧 我照做了之后 还是启动不了服务
jianfeng ss 应该是 SYSTEM吧 我照做了之后 还是启动不了服务
可能缺失了更多的文件或注册表,得将你的WinPE文件列表和正常能启动服务的版本进行对比排查