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
-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 MVP

Windows 7 Ult. x64
 
 

No worries mate - glad you found it useful.
My System SpecsSystem Spec
14 Aug 2014   #3
ThrashZone

Win-7 H-Premium 64-bit sp1
 
 

Very nice
My System SpecsSystem Spec
.


14 Aug 2014   #4
andrew129260

Windows 7 Professional x64 Sp1
 
 

Great tutorial. Thank you.
My System SpecsSystem Spec
Comment

 Cipher Command - Overwrite Deleted Data in Windows




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Deleted HDD files using diskpart command
Hello In an attempt to create a windows 7 bootable USB I've deleted my HDD (it was late and in a hurry :cry:). I have 2 drives connected: 1'st is an SSD drive - for main windows, 2'nd is a 1TB HDD drive western digital splitted in two partitions. The commands i've runned are: diskpart, list...
Backup and Restore
How to securely overwrite deleted files with a built-in Windows tool
Source http://www.sevenforums.com/tutorials/276046-cipher-command-overwrite-deleted-data-windows.html A Guy
Security News
Cannot overwrite deleted emails on free space
I am trying to overwrite a file in the free space on drive C, but it keeps telling me that it is unable to overwrite the special file type. The file name is "Thunderbird emails.zip". When I first found it I recovered it then went back later to overwrite the emails so it would not be in my ssd...
Browsers & Mail
A file in Desktop cant be deleted. Command prompt doesnt recognize it.
The files name is "Music Place", which is an application from Toshiba. I can not find it in the desktop folder and all the programs that i have used are not able to recognize this file as existing in the desktop. Ive tried to delete it in safe mode but it didnt work. Ive also tried to delete it...
General Discussion
Recovering deleted data, Windows 7 Home Edition (x64)
Hi everyone I've been searching and searching try to figure out a solution here. Basically, I had a zip file (which had a bunch of images in it) in a folder on my PC. The exact destination was: C:\Users\Jack\Desktop\Jack\Random Files\Pictures Anyways, on the 24th of March (2012), I deleted...
Backup and Restore
Recover deleted data from a deleted user account?
How to recover deleted data from an deleted user? Hi Guys, Please help I had an old user account which was corrupted, So I deleted that however forgotten to keep the files...... Is there any way I can get my old data back??:( Using Windows 7 Ultimate 32 bit
Chillout Room

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 14:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App