I need to know the steps/process to password protect a folder and without entering the password no one should be able to access the file.
The reason for asking via scripting is we do not have WinZip or WinRAR installed on our desktops. I have few confidential documents/files in different formats like docx, xlsx, .pdf, images etc. I have put all the files in a folder but unable to password protect it.
Can any of you please help me without taking the help of any 3rd party app or downloads?
Many thanks in advance.
Using a script to input a password doesn't help you much if people can read the script, which they can when you give them access to execute it. EFS is one way to combat that, however as outlined in my article it's not a very secure method if someone was determined to get the contents. I'd argue that Microsoft Office documents with a strong password are harder to get access into, at least slower when you consider bruteforce.
You may want to look into BitLocker, windows 7 and beyond have built-in.
If there are files that only certain people should have access too, then you may want to try NTFS permissions first, encryption may not be needed.