Created
February 15, 2014 18:54
-
-
Save Nora-Ballard/9023545 to your computer and use it in GitHub Desktop.
Claim all Windows iSCSI disks for MPIO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :MPIO | |
| echo MPIO: Checking claimed BusTypes. | |
| SET MSFT_BUSTYPE_iSCSI=MSFT2005iSCSIBusType_0x9 | |
| FOR /f "tokens=* delims==" %%G IN ('mpclaim -h ^|find "%MSFT_BUSTYPE_iSCSI%"') DO SET FOUND_iSCSI=%%G | |
| mpclaim -h | |
| echo. | |
| if (%FOUND_iSCSI%) == ("%MSFT_BUSTYPE_iSCSI%") GOTO MPIO_Complete | |
| :MPIO_Claim | |
| echo MPIO: Claiming iSCSI BusType. | |
| mpclaim.exe -r -i -d "%MSFT_BUSTYPE_iSCSI%" | |
| echo. | |
| :MPIO_Complete | |
| echo MPIO: iSCSI BusType claimed. | |
| echo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment