Koozali.org: home of the SME Server

netlogon on vpn clients

Offline groyk

  • ****
  • 140
  • +0/-0
netlogon on vpn clients
« 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!

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: netlogon on vpn clients
« Reply #1 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
......