Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Windows XP cipher 指令加密/解密檔案與資料夾完整參數說明

編輯:關於 Windows

Windows XP 內建 cipher.exe 指令列工具,可對檔案/資料夾進行 EFS 加密與解密,支援遞迴處理、金鑰更新、復原代理人管理等進階功能。

常用參數

參數功能
/e加密指定資料夾(含後續新增檔案)
/d解密指定資料夾
/s:目錄遞迴處理子資料夾
/a同時處理檔案與目錄
/i發生錯誤仍繼續執行
/f強制加密/解密(預設跳過已處理項目)
/q僅回報基本資訊
/h包含隱藏/系統屬性檔案
/k建立新的檔案加密金鑰(忽略其他參數)
/u [/n]更新使用者加密金鑰(/n 僅掃描不更新)
/r:檔名產生新的復原代理人憑證與私鑰
/w:目錄清除磁碟未使用空間資料(防止資料殘留)

範例

  • 加密資料夾含子目錄:cipher /e /s:D:\Secret
  • 解密資料夾:cipher /d /s:D:\Secret
  • 查看目前目錄加密狀態:cipher(無參數)
  • 更新金鑰:cipher /u
  • 清除已刪除檔案殘留資料:cipher /w:C:\

參數較多建議備份備查。cipher 為無介面指令工具,適合批次腳本或遠端管理場景使用。

Copyright © Windows教程網 All Rights Reserved