How to lock or unlock the hard drive

Note: The commands below only work in versions of Windows prior to Windows XP.

You need to open a command prompt window to unlock or lock the hard drive. In Windows, click the Start button and enter cmd in the Search field, then press the Enter key.

Computer hard driveTo unlock the hard drive

unlock x:

The x represents the letter of the hard drive that you want to unlock. For example, if you needed to unlock the C: drive, you would type unlock c:

To lock the hard drive

lock x:

The x represents the letter of the hard drive that you want to lock. For example, if you needed to lock the C: drive, you would type lock c:

Additional information