How to lock or unlock the hard drive
Note: The commands below only work in versions of Windows prior to Windows XP. To lock or unlock a hard drive in Windows XP or later versions of Windows, use BitLocker or a third-party software program designed for locking and unlocking drives.
To unlock the hard drive
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
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: at the command prompt.
- See our lock and unlock page for further information and related links on these commands.