@ECHO OFF

REM ******************************************************
REM ** Mapping a drive to the home folder triggers the  **
REM ** generation of the login script.  Windows NT/2K   **
REM ** does this automatically but we need to map the   **
REM ** drive manually for the others.                   **
REM ******************************************************

IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' } /home
:SkipHomeMapping

