Network drives

I use several windows PCs and regularly need to log into network drive space to save and back up data. With five different drives using different domains and passwords this become a little tedious so I have an auto log in script. Writing your own is straight forward.

Use notepad or gedit and make a file with the following line for each drive space:

net use * \\[YOUR DRIVE NAME]\[YOUR DRIVE FOLDER] /u:[DOMAIN]\[USER NAME] [PASSWORD]

So an example might be:

net use * \\pluto.science.co.uk\science_stuff /u:scilab\abc124 password01 net use * \\pluto.science.co.uk\science_data /u:scilab\abc124 password01 net use * \\eros.science.co.uk\abc123 /u:esl\abc124 password02

Save the file with the extension .bat (e.g quick_login.bat) and a double click should log you into your drives.
If you put it on a flash drive you can take your quick log in anywhere BUT be aware it has all your passwords unencrypted so represents a potential security risk.

Depending on your security set up you may also be able to add an auto run file:

[autorun] open=quick_login.bat

Save as autorun.inf and it may run the login script when ever the drive is plugged in. I haven't got this to work as all out machines have auto run disabled.

Comments

Popular Posts