Automatically encrypt EFS in Windows XP, Vista or Windows 7

In the following article, we will show you how to create scripts to automate the EFS standard data encryption process of user accounts every time they log in. The purpose of encryption in this way is to protect confidential documents, information of individuals, organizations or companies, then back them up.

TipsMake.com - In the article below, we will show you how to create scripts to automate the EFS standard data encryption process of user accounts every time they log in . The purpose of encryption in this way is to protect confidential documents, information of individuals, organizations or companies, then back them up on external storage devices.

Specifically, the following code will perform some functions such as:

- Encrypt all data in the My Documents folder, Outlook - this is also the default storage of * .pst and * .ost files in Outlook 2000, Outlook 2003.

- Export all output data from the script to another file, in the My documents folder of the user account, with a specific name in the form % computername% .efs

How to do it on Windows XP:

REM @echo off
REM EFS MyDoc & Outlook EFS Encryption Script Version 1.1
REM http://www.groovyPost.com
REM
REM Script Created by MrGroove (groovyPost.com)
REM
REM chương trình này là free software; không thể được redistributed
REM không có quyền của groovyPost.com
REM
echo ***** >> "% userprofile% my documents% computername% .efs"
REM EFS Encryption Script Version 1.1
REM ================================================= =====
REM First, let's tạo một tập tin để lưu các việc làm việc làm việc cho history
echo ****** >> "% userprofile% my documents% computername% .efs"
echo ****** >> "% userprofile% my documents% computername% .efs"
REM ================================================= =====
echo% date%% time% >> "% userprofile% My documents% computername% .efs"
REM ================================================= ==
Đang hiện thời được tiếp tục để cập nhật các tập tin để kiểm tra không có tập tin tập tin có tập tin cũ
cipher / u >> "% userprofile% My documents% computername% .efs"
REM ================================================= ==
REM Begin encryption of the "My Documents" folder
cipher / a / e / h / i / q / s: "% userprofile% My Documents" >> "% userprofile% My documents% computername% .efs"
REM ================================================= =====
REM Begin encrption of the "Outlook" folder where the OST and PST files are stored
cipher / a / e / h / i / q / s: "% userprofile% Local SettingsApplication DataMicrosoftOutlook" >> "% userprofile% My documents% computername% .efs"
REM ================================================= =
REM More House Keeping
echo% date%% time% >> "% userprofile% My documents% computername% .efs"
echo ****** >> "% userprofile% My documents% computername% .efs"
echo ****** >> "% userprofile% My documents% computername% .efs"
REM ================================================= =
REM ================================================= =
REM All Done!

With Windows Vista, 7:

REM @echo off
REM EFS MyDoc & Outlook EFS Encryption Script Version 1.1
REM http://www.groovyPost.com
REM
REM Script Created by MrGroove (groovyPost.com)
REM
REM chương trình này là free software không thể được redistributed
REM không có quyền của groovyPost.com
REM
echo ***** >> "% userprofile% documents% computername% .efs"
REM EFS Encryption Script Version 1.1
REM ================================================= =====
REM First, let's tạo một tập tin để lưu các việc làm việc làm việc cho history
echo ****** >> "% userprofile% documents% computername% .efs"
echo ****** >> "% userprofile% documents% computername% .efs"
REM ================================================= =====
echo% date%% time% >> "% userprofile% documents% computername% .efs"
REM ================================================= ==
Đang hiện thời được tiếp tục để cập nhật các tập tin để kiểm tra không có tập tin tập tin có tập tin cũ
cipher / u >> "% userprofile% documents% computername% .efs"
REM ================================================= ==
REM Begin encryption of the "Documents" folder
cipher / a / e / h / i / q / s: "% userprofile% Documents" >> "% userprofile% documents% computername% .efs"
REM ================================================= =====
REM Begin encrption of the "Outlook" folder where the OST and PST files are stored
cipher / a / e / h / i / q / s: "% userprofile% Local SettingsApplication DataMicrosoftOutlook" >> "% userprofile% documents% computername% .efs"
REM ================================================= =
REM More House Keeping
echo% date%% time% >> "% userprofile% documents% computername% .efs"
echo ****** >> "% userprofile% documents% computername% .efs"
echo ****** >> "% userprofile% documents% computername% .efs"
REM ================================================= =
REM ================================================= =
REM All Done!

Good luck!

5 ★ | 1 Vote