Hi All,

I am trying to figure out what is the best way to go by puting username and password for domain users in a project.

What my software does is it runs cmd with runas administrator command. (Process.StartInfo.Domain / Username / Password)

Now the problem is password for domain changes every week so i have to recreate the project with new password. I am trying to figure out an alternative.

Three things come to mind:-

1- Save password in Text file somehow with md5 hash (no clue how to but just an idea)

2- User SQL database and store username and password. (Its kinda off a overkill i think)

3- In my program have an option to compile the project (built) and export the exe file with hardcoded username and password.

i know this is almost like recompiling from vb 2010 studio. But without having to install vb 2010. I have seen this in some remote administration softwares and spywares.(no i am not making virus)

I would like to use the 3rd option since its the best for my requirement.

Has anyone implemented something like this from any of the above options. I would love some pointers.

Thanks.

Mega