Disclaimer: This guide was automatically translated by AI from the German original. Please verify commands and technical details before using them.
Back to overview: Windows guides
To automatically connect network drives after login, create a script.
Open an editor, for example Notepad++.
Define the username and password as parameters:
@echo off
cls
SET USER=username
SET PW=password
net use * /delete /yes
net use X: \SERVERNAME\Share /user:%USER% %PW%
net use Y: \SERVERNAME\Share /user:%USER% %PW%
net use Z: \SERVERNAME\Share /user:%USER% %PW%
Save the script as a .bat file and move it to the Startup folder.
To find the Startup folder, open Run and enter the following command:
shell:startup
Warning: The password is stored in plain text in the script.