Reconnect network drive at startup

Create a Scheduled Task which executes this script as a batch file:

@echo off

:Start
timeout /t 5 /nobreak >NUL
if exist S:\NUL goto End
net use s: \\THE_NETWORK_PATH /USER:<user name> <password> /P:YES
if ERRORLEVEL 1 goto Start
:End