Script to Assign Drive Letter to Disk based on SCSILogicalUnit RRS feed

  • Question

  • Hi,

    I am currently working with a 3Par SAN implementation & I am trying to accomplish some system maintenance tasks using VBScript.

    I need a script that can accomplish the following:

    1.) Remove drive letters for a specified set of SCSI Luns.
    2.) Be able to re-add the SAME drive letter back to the disk based on SCSI Lun.

    We are running into this problem since we are trying to do snapshots of the data for backup purposes, and due to some windows restrictions we must remove the drive letters before making a copy of the volume & mounting the copy to another machine.

    Also, the LUN id's will never change, but the DeviceID's seem to whenever we do any kind of re-configuration...  I'm trying to script this out completely using the WMI provider, but I've had no luck re-assigning the drive letter once it has been removed.?.

    Any ideas??


    Tuesday, January 9, 2007 9:54 PM