كيفية أتمتة تشفير Microsoft EFS لنظام التشغيل Windows 7 XP أو Vista
قبل بضعة أيام كنت بحاجة إلى إنشاء برنامج نصيتشفير المجلدات للمستخدمين النهائيين في العمل. لقد كتبت الرمز أدناه ثم ألقيته في برنامج نصي لتسجيل الدخول والذي سيتم تشغيله بعد ذلك عندما قام المستخدمون بتسجيل الدخول إلى أنظمتهم. الغرض من التشفير هو حماية بيانات الشركة الحساسة المخزنة على أجهزة الكمبيوتر المكتبية والمحمولة. على الرغم من نجاح العملية بالنسبة لي ، أوصيك باختبارها جيدًا قبل النشر!
الكود أدناه هو عملية بسيطة تقوم ببعض الأشياء:
- تشفير جميع البيانات في مجلد "المستندات" للمستخدمين المسجلين.
- تشفير جميع البيانات في مجلد "Outlook" للمستخدمين الذين قاموا بتسجيل الدخول. هذا هو الموقع الافتراضي الذي يخزن فيه Outlook 2000 و Outlook 2003 ملفات .pst و. ost.
- توجيه كافة الإخراج من البرنامج النصي إلى ملف لتجميعه لاحقًا. يمكن وضع الملف أسفل "المستندات" الخاصة بالمستخدم الذي قام بتسجيل الدخول. سيتم استدعاء الملف٪ اسم الكمبيوتر٪ .efs.
ويندوز إكس بي
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!
اترك تعليقا