Πώς να αυτοματοποιήσετε την κρυπτογράφηση Microsoft EFS για Windows 7 XP ή Vista

Πριν από λίγες μέρες έπρεπε να δημιουργήσω ένα σενάριο το οποίοθα κρυπτογραφήσει φακέλους για τους τελικούς χρήστες μου στην εργασία. Έγραψα τον παρακάτω κώδικα και στη συνέχεια το έβαλα σε ένα σενάριο σύνδεσης, το οποίο στη συνέχεια θα τρέξει καθώς οι χρήστες μου είχαν συνδεθεί στα συστήματά τους. Ο σκοπός της κρυπτογράφησης είναι να προστατεύσει ευαίσθητα δεδομένα της εταιρείας που είναι αποθηκευμένα σε επιτραπέζιους υπολογιστές και φορητούς υπολογιστές. Παρόλο που η διαδικασία δούλευε για μένα, σας συνιστούμε να το δοκιμάσετε προσεκτικά πριν εγκαταστήσετε!

Ο παρακάτω κώδικας είναι μια απλή διαδικασία που κάνει μερικά πράγματα:

  1. Κρυπτογραφεί όλα τα δεδομένα στους χρήστες που έχουν συνδεθεί στο φάκελο "Τα έγγραφά μου".
  2. Κρυπτογραφεί όλα τα δεδομένα στους συνδεδεμένους χρήστες "Outlook" φάκελο. Αυτή είναι η προεπιλεγμένη θέση του Outlook 2000 και του Outlook 2003 αποθηκεύει τα αρχεία .pst και .ost.
  3. Παρέχει όλα τα αποτελέσματα από τη δέσμη ενεργειών σε ένα αρχείο για μεταγενέστερη συλλογή. Το αρχείο μπορεί να εντοπιστεί κάτω από τα "Τα έγγραφά μου" του συνδεδεμένου χρήστη. Το αρχείο θα ονομάζεται% computername% .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!

Windows 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!
0

Παρόμοια άρθρα

Αφήστε ένα σχόλιο