Here is the scenario, I have Windows Server 2003 and 2008 which is connected LUNs. I wanted to get status of the disk if disks are online or offline using command line.
I'm trying to execute
diskpart /s sample.txt and
SELECT DISK=1 CREATE PARTITION primary
So, the above command is not getting executed , because the disk is offline. Is there any native "command line utility" or script to check the status of LUNs assigned to system?