Windows 7 Forums


Windows 7: Cipher Command - Overwrite Deleted Data in Windows


Cipher Command - Overwrite Deleted Data in Windows

How to Overwrite Deleted Data using the "Cipher" Command in Windows
Published 28 Jan 2013
Published by

Featured Tutorial

Secunia ONLINE Software Inspector
Secunia ONLINE Software Inspector

How to Scan for Common Software Vulnerabilities

Troubleshooting Steps for Windows 7
Troubleshooting Steps for Windows 7



User Profile - Customize During Installation
User Profile - Customize During Installation

How to Customize Default User Profile in Audit Mode

Emergency Kit - save your files from a dead OS
Emergency Kit - save your files from a dead OS

How to Create and Use a Linux Mint Mate USB Flash Drive to Recover your Files

iTunes Video DRM Remove Method
iTunes Video DRM Remove Method



SF Diagnostic Tool - Using for Troubleshooting
SF Diagnostic Tool - Using for Troubleshooting

Using SF Diagnostic Tool for Troubleshooting
How to Overwrite Deleted Data using the "Cipher" Command in Windows

information   Information
The Windows cipher command line tool is predominantly used to manage the encryption status of NTFS volumes. A lesser known function of this command is the ability to securely overwrite free disk space.

Files deleted on a volume are only marked for deletion and can still be recovered. By using the cipher command, the free space occupied by the deleted files are securely overwritten resulting in a more secure system in which the previously deleted files cannot be recovered.

The advantage of using the cipher command is that it ONLY overwrites free disk space - the remainder of the volume is untouched. The cipher command can be run from a booted system without the need to dismount volumes/partitions/disks, or to resort to more complex tools.

This tutorial will show you how to securely wipe or overwrite free disk space on any partition or disk using the inbuilt cipher command in Windows.



Steps:

1. Open an elevated command prompt.

2. Type the command below, and press Enter.

The syntax required is:
Code:
cipher /w:[drive]:\[folder]
where [drive] = drive letter, [folder] = folder name

In the example below, I wish to wipe all free disk space on my F drive (a logical partition on a physical disk). Thus, I use the following syntax:

Code:
cipher /w:F:\
The output from the cipher command is shown below. The free space is overwritten 3 times:
  • once with a series of 0's (zero)
  • once with a series of 255's
  • once with a series of random numbers
Cipher Command - Overwrite Deleted Data in Windows-cip1.png
Note   Note
Disks with large amounts of free space will take some time to be overwritten - on my system, wiping 25 GB of free space takes approximately 10 minutes.

Regards,
Golden




Need more help? Try searching our extensive help and support site.
Loading
28 Jan 2013   #1
LittleJay

Windows 7 Home Premium 64bit SP 1
The North Star state
 
 

Thanks Golden! I just learned something new.

My System SpecsSystem Spec

28 Jan 2013   #2
Golden

Windows 7 Ultimate SP1 (x64)
South Australia
 
 

No worries mate - glad you found it useful.
My System SpecsSystem Spec
Comment

 Cipher Command - Overwrite Deleted Data in Windows problems?



Tutorial Tools



Similar help and support threads for: Cipher Command - Overwrite Deleted Data in Windows
Windows 7 Tutorial Category
Wipe free space on SSD? Is it safe? Hardware & Devices
disk space 4 free Performance & Maintenance
Can't Delete Free Space in Disk Management General Discussion
Free Space in Disk Management Hardware & Devices
Help! (Free) disk space required to run Windows 7? Installation & Setup


All times are GMT -5. The time now is 07:16 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32