Avatar of Venantius Britto
Venantius Britto
 asked on

How to password protect a folder via vb script?

Hello Experts,
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.
Encryption

Avatar of undefined
Last Comment
Rich Rumble

8/22/2022 - Mon
Rich Rumble

Please read my articles, they may make a suggestion that will help you:
https://www.experts-exchange.com/articles/12134/Choosing-the-right-encryption-for-your-needs.html
https://www.experts-exchange.com/articles/12132/Microsoft-EFS-Recovery.html

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.
see: https://www.experts-exchange.com/articles/12386/How-secure-are-passwords.html

You may want to look into BitLocker, windows 7 and beyond have built-in.
https://www.howtogeek.com/193013/how-to-create-an-encrypted-container-file-with-bitlocker-on-windows/

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.
-rich
Venantius Britto

ASKER
Hi Rich,
Thanks for your response. But these options did not help me in getting what I wanted.
The reason is since I need to do in my office system there are restrictions, with these I want to protect my folder :(
Thanks.
ASKER CERTIFIED SOLUTION
Rich Rumble

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Venantius Britto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Rich Rumble

Closing question. Author seems to have found a solution.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck