Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



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 by Golden
28 Jan 2013
Published by

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


.

28 Jan 2013   #1
LittleJay

Windows 7 Home Premium 64bit SP 1
 
 

Thanks Golden! I just learned something new.

My System SpecsSystem Spec
.

28 Jan 2013   #2
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

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

 Cipher Command - Overwrite Deleted Data in Windows





Tutorial Tools



Similar help and support threads for2: Cipher Command - Overwrite Deleted Data in Windows
Windows 7 Tutorial Category
Solved Prefetch data deleted ! Installation & Setup
A file in Desktop cant be deleted. Command prompt doesnt recognize it. General Discussion
Recovering deleted data, Windows 7 Home Edition (x64) Backup and Restore
Prefetch Data is being deleted cannot figure out why. General Discussion
Deleted Vista Recovery Data Installation & Setup
Recover deleted data from a deleted user account? Chillout Room
Prefetch data deleted. General Discussion

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 07:06 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33