כיצד לבצע אוטומציה של הצפנת EFS של מיקרוסופט עבור Windows 7 XP או Vista
לפני מספר ימים הייתי צריך ליצור תסריט אשרהיה מצפין תיקיות עבור משתמשי הקצה שלי בעבודה. כתבתי את הקוד למטה ואז זרקתי אותו לסקריפט כניסה אשר יפעל לאחר שהמשתמשים שלי נכנסו למערכות שלהם. מטרת ההצפנה היא להגן על נתוני חברה רגישים המאוחסנים במחשבים שולחניים ומחשבים ניידים. למרות שהתהליך עבד עבורי, אני ממליץ לך לבדוק אותו היטב לפני הפריסה!
הקוד למטה הוא תהליך פשוט שעושה כמה דברים:
- מצפין את כל הנתונים בתיקייה "המסמכים שלי" של המשתמשים המחוברים.
- מצפין את כל הנתונים בתיקיית "Outlook" של המשתמשים המחוברים. זהו מיקום ברירת המחדל של Outlook 2000 ו- Outlook 2003 מאחסן קבצי PST ו- .ost.
- מוליך את כל הפלט מהסקריפט לקובץ לאוסף מאוחר יותר. ניתן לאתר את הקובץ תחת "המסמכים שלי" של המשתמש המחובר. הקובץ ייקרא% computern% .efs.
Windows XP
REM @echo off REM EFS MyDoc & Outlook EFS Encryption Script Version 1.1 REM https://www.groovypost.com REM REM Script Created by MrGroove (groovyPost.com) REM REM This program is free software; not to be redistributed REM without permission of groovyPost.com REM echo ***** >> "%userprofile%my documents%computername%.efs" REM EFS Encryption Script Version 1.1 REM ====================================================== REM First, let"s create a file to store all the work were doing and for history echo ****** >> "%userprofile%my documents%computername%.efs" echo ****** >> "%userprofile%my documents%computername%.efs" REM ====================================================== echo %date% %time% >> "%userprofile%My documents%computername%.efs" REM =================================================== REM Now were going to update all files to ensure no files are encrypted with old keys 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!
ווינדוס 7
REM @echo off REM EFS MyDoc & Outlook EFS Encryption Script Version 1.1 REM https://www.groovypost.com REM REM Script Created by MrGroove (groovyPost.com) REM REM This program is free software; not to be redistributed REM without permission of groovyPost.com REM echo ***** >> "%userprofile%documents%computername%.efs" REM EFS Encryption Script Version 1.1 REM ====================================================== REM First, let"s create a file to store all the work were doing and for history echo ****** >> "%userprofile%documents%computername%.efs" echo ****** >> "%userprofile%documents%computername%.efs" REM ====================================================== echo %date% %time% >> "%userprofile%documents%computername%.efs" REM =================================================== REM Now were going to update all files to ensure no files are encrypted with old keys 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!
השאר תגובה