Schedule Tasks - Password

Microsoft Windows server 2003
January 25, 2010 at 15:54:38
Specs: Windows 2003

I had been trying to findout
How to or where to save passwords for scheduled tasks in windows 2003

For example, I want to run a schedule task say FTP on a windows 2003 server.
How do I save the usernames and passwords used by the FTP task.
Though the simplest way is to write them to a file and let your script read from the file, I would like to know if there is any other secure way to do this.

Thanks very much!

See More: Schedule Tasks - Password

Report •

January 26, 2010 at 09:49:07
If you find a GOOD way of protecting the file that stores the passwords, this would be the way to go. But, since just that does not work on Windows, I would not even try.

So, other ways ... you could write your script, with the passwords hardcoded in it, but then convert your BAT/CMD file to a COM file. These COM files are binaries ... and they COULD distort the hardcoded password, so it would be unreadable. Lookfor BAT2COM or CMD2COM in Google.

Another way would be to scramble the file that stores the password, and let the script that reads the file, unscramble it while reading. The problem is that the file (storing the passwords) may be unreadable at first, but any half-programmer will find out how to decode, since that is stored nicely in the main script. If an additional password is needed, it will also be stored there even ... back to square 1.

Report •

January 26, 2010 at 11:38:26
Thanks very much tvc!

I will try the BAT2COM procedure..

Report •

Related Solutions

Ask Question