How to: Automate server login on a workgroup using a batch file

When having workstations on workgroups trying to use resources from the server, you will need to enter the credentials everytime you restart the machine.

To prevent this you may want to put a script on the workstation’s startup folder to create the connection between the server and the machine.

Create a batch file on the local drive, example login.bat and put in the below code:

net use \\my-server\IPC$ /USER: administrator my-password

Save the file and then create a shortcut to it on the startup folder in your Start programs so that it will be executed on startup of the machine.

This will do the trick to automatically log you on another machine. You can also add other servers by adding another line in the file.

Leave a Reply

Your email address will not be published. Required fields are marked *