Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: groyk on February 08, 2009, 08:40:50 PM

Title: netlogon on vpn clients
Post by: groyk on February 08, 2009, 08:40:50 PM
Hi I am having troube getting mapped /home dir when I logon via VPN

I can see the logon script is following.
Code: [Select]
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 z: /home
:SkipHomeMapping

REM Call the generated login script from the user's home folder:

CALL z:\netlogon.bat

@REM #------------------------------------------------------------
@REM # TEMPLATE END
@REM #------------------------------------------------------------

Is it possible to change following
Code: [Select]
IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE z: /home
:SkipHomeMapping

to somthing like

Code: [Select]
NET USE z: \\%servername%\%user%
Because I found out that it is the /home reference that gives me trouble!
Title: Re: netlogon on vpn clients
Post by: mrjhb3 on February 08, 2009, 11:23:26 PM
Try something like:
Code: [Select]
IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE z: /home
:SkipHomeMapping
net use p: \\server_name\homes

That is what I use for my XP workstations.

John