Below is a script for you to amend and use as a login script. Amend the code as required and copy the text to a notepad file. Name the notepad file login.bat.
@echo off
echo Welcome to Company Name Here %username%
echo You are logged onto computer name %COMPUTERNAME%
echo Inialising network…
@ping 127.0.0.1 -n 5 -w 1000 > nul
Net use K: \\server\share /persistent:yes
Net use L: \\server\share /persistent:yes
ECHO Successful
Explained:
%username% – Displays the username of the user logging in
@ping 127.0.0.1 -n 5 -w 1000 > nul – A 5 second wait. Not required just allows some time to display what’s going on when the script is running. Just to impress the bosses 😉