Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password protect a bat file 2

Status
Not open for further replies.

mholbert

IS-IT--Management
Jan 10, 2006
105
US
I would like to find a way to password protect a bat file, so that when it is executed, the first thing it does is require a password to go any further.

Anybody know how to accomplish that?

MH
 
Oh this site was still there last night and offered a free app i think it was called RunAs User or something, basically it would allow you to encrypt and password protect scripts.



Keep an eye out and see if it appears if not put a post in the Windows XP forum for gpalmer711 i 'think' he wrote it and will possibly be able to advise.
 
Not that I am aware of. You could set NTFS Permissions on the folder where the batch file resides.
If the batch file is part of a scheduled task just make sure the system account has access to the folder. But, we know that anyone with admin access on the server can change permissions. You can also password protect and encrypt the folder where the batch file resides using a third party tool such as: But I am not sure if this would work with a scheduled task.
 
There are some basic programs that come with the flash thumb drives that can encrypt files in any directory you choose. This will prompt you for a password. If authenticated correctly, it will give you full access to the file. You may already have this if you own a flash drive. If you dont, u can probably find one on the net or go buy a thumb drive and move the program to you pc.

I can not think of any other way to protect the execution of the bat file. You could possibly set the file to only be accessed by certain users such as an administrator. Im not sure of your application so i dont know if that would work for you or not. Will it be on a end users desktop logged in under that users name, but dont want them to be able to execute it? If that is the case, you might want to try my original idea!
 
It's back it might be worth a look.

Support for Executable Files, Batch Files, VB Script & Windows Installer Packages

RunAsUser can now compile your target files into the executable you create

Password is now encrypted with a 64bit Cipher to stop the discovery of the password


 
Love that program porkchopexpress! I know Greg had it "down" for a while, but glad it's back. I'll be grabbing it once again!
 
I downloaded it and will test later today.

Thank PCE, I appreciate the assistance. MH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top