Cipher
This page is from Microsoft
Updated: January 21, 2005
Syntax
Parameters
Remarks
- 
				Using /w/w removes data from portions of the volume it can access and have not been allocated to files or directories. It does not lock the drive, so other programs can obtain space on the drive, which cipher cannot erase. Because this option writes to a large portion of the hard volume, it might take a long time to complete and should only be used when necessary. 
- Encrypting or decrypting files
				To prevent an encrypted file from becoming decrypted when it is modified, it is recommended that you encrypt both the file and the folder in which it resides. 
- Using read-only files and folders
				Cipher cannot encrypt files that are marked as read-only. 
- Using multiple folder names
				You can use multiple folder names and wildcard characters. 
- Using multiple parametersYou must separate multiple parameters by at least one space. ExamplesTo back up the certificate and private key currently used to encrypt and decrypt EFS files to a file named c:\myefsbackup.pfx, type:cipher /x c:\myefsbackup To encrypt the MonthlyReports folder and all subfolders, type: cipher /e /s:monthlyreports To encrypt only the Marketing.xls file in the May subfolder, type: cipher /e /a monthlyreports\may\marketing.xls To determine which files in the May folder are encrypted, type: cipher monthlyreports\may\* Formatting legendFormat Meaning Italic Information that the user must supply Bold Elements that the user must type exactly as shown Ellipsis (...) Parameter that can be repeated several times in a command line Between brackets ([]) Optional items Between braces ({}); choices separated by pipe (|). Example: {even|odd} Set of choices from which the user must choose only one Courier font Code or program output 
