Set up the Storage Area Network (SAN) Policy in Windows PE
Updated: October 20, 2013
Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2
Storage area network (SAN) functionality enables a computer to mount disks and other storage devices automatically from other computers. By configuring the SAN policy on a Windows Preinstallation Environment (Windows PE) image, you can control whether or not disks are automatically mounted and which disks can be mounted. You can also disable the policy to automatically mount disks.
For Windows PE images that are available in the Windows® Assessment and Deployment Kit (Windows ADK), the default SAN policy is to mount available disks automatically. But if the SAN environment has many available disks, automatically mounting them might reduce the performance of Windows PE. The container ID determines the external and internal disk status. If the device container ID of a disk is the same as the root container ID, the disk is internal. Otherwise, it's an external disk. You can use the Setsanpolicy.cmd file in the Windows PE tools path to configure the SAN policy on a Windows PE image.
Mount the Windows PE image to an available mount point. For example:
Dism /mount-image /imagefile:C:\winpe_x86\ISO\sources\boot.wim /index:<image_index> /mountdir:C:\winpe_x86\mount
where <image_index> is the number of the selected image in the .wim file.
Run the setsanpolicy command. For example:
where <image_path> is the path of a mounted Windows PE image, and <policy_number> is the SAN policy number.
These values are valid <policy_number> values:
SAN policy number Description
Mounts all available storage devices.
This is the default value.
Mounts all storage devices except those on a shared bus.
Doesn't mount storage devices.
New for Windows 8. Makes internal disks offline.
Note All external disks and the boot disk are online.
This example shows how to configure the SAN policy on a Windows PE image to mount all disks except those disks on a shared bus:
Setsanpolicy C:\winpe_x86\mount <2>
where <2> is the SAN policy number that mounts all storage device except those on a shared bus.
Unmount the image and commit the changes. For example:
Dism /unmount-image /mountdir:C:\winpe_x86\mount /commit
You can change the default SAN policy of a Windows image by using Windows System Image Manager (Windows SIM) to customize the Microsoft-Windows-PartitionManager component. You use the
SanPolicy setting to configure the Windows image during an unattended installation.
On your technician computer, open Windows System Image Manager (Windows SIM). Click Start, type Windows System Image Manager, and then select Windows System Image Manager.
On the Insert menu, click RunSynchronous.
Note Don't use the RunSynchronousNetsh advfirewall command during the specialize configuration pass.
The Create Synchronous Command dialog box appears.
Enter the Netsh advfirewall firewall commands to add them to the answer file, and then click OK.
For more information, see the Network Shell (Netsh) Technical Reference. You can convert Netsh commands to Windows PowerShell® commands. For more information, see the Netshell to Powershell Conversion Guide.
In the SynchronousCommand Properties pane, in the Settings section next to Description, enter a description like Enable Windows Messenger.