none
Is there a command line command to disable a hard disk in Windows 7?

    Question

  • Hi

    I have a lab of 35 Windows 7 x64 bit machines, with 2 hard disks. Is there a way to disable the second hard disk from the command line NOT the gui because we need to write a script that runs every time the machine boots.

    Also is it possible also via the command line to remap a drive ?

    Any help would greatly be appreciate. This is an urgent matter.

     

     

    Thursday, March 24, 2011 9:59 PM

Answers

All replies

  • For such scripts, I recommand that you post in "The Official Scripting Guys Forum!":

    http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

     


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Microsoft Student Partner
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration

     

     

    Thursday, March 24, 2011 10:28 PM
  • Hello clivebuckwheat,

    Diskpart would be the tool, depends on how you want to disable the disk somewhat.

    Options for Diskpart

    http://technet.microsoft.com/en-us/library/cc766465(WS.10).aspx 


    Thanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights. VAMT - Volume Activation Management Tool - Download link http://www.microsoft.com/downloads/details.aspx?FamilyID=ec7156d2-2864-49ee-bfcb-777b898ad582&displaylang=en
    Thursday, March 24, 2011 10:59 PM
  • I'd like to put the second disk offline, is this possible using diskpart.
    Friday, March 25, 2011 2:02 PM
  • Hello clivebuckwheat,

    use the offline command, open an elevated cmd prompt

    and run help offline.

    The TechNet link doesn't mention the Offline command but it's there


    Thanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights. VAMT - Volume Activation Management Tool - Download link http://www.microsoft.com/downloads/details.aspx?FamilyID=ec7156d2-2864-49ee-bfcb-777b898ad582&displaylang=en
    Tuesday, March 29, 2011 12:05 AM