The solution released on the Microsoft Web site is to set the startup of the server service to be dependent on the MS iSCSI service. However, this solution fails to completely rectify the fault. After that, the script batch processing method is adopted during the system startup. The script design is as follows:
1. External disks are identified by iSCSI services; therefore, the script must check the status of iSCSI services and be modified only after the startup of iSCSI services.
2. Under normal circumstances, lanmanserver
is already enabled before iSCSI services are started up; therefore, confirm that the status of lanmanserver
is identified after the startup of iSCSI services.
3. If the status of lanmanserver
is enabled and normal, restart it and add external disks to the share folder. If lanmanserver
fails to be enabled, enable it again.
The detailed procedure is as follows:
Step 1 Download the attachment and decompress it to the system directory.
Step 2 Run gpedit.msc
to enable the group policy:
Choose Local Computer Policy > Computer Configuration > Windows Settings > Script (Startup/Shutdown).
Add the prepared script.
Step 3 Restart the operating system.
Step 4 Check whether the share service is recovered.