MSFN Forum: Mapping network share with script run by VPN client in Vista - MSFN Forum

Jump to content



Windows Vista Forum Rules

If you have questions about customizing Windows Vista that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows Vista, please post them in the Unattended Windows Vista/Server 2008 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mapping network share with script run by VPN client in Vista Rate Topic: -----

#1 User is offline   qwerty2nd 

  • Group: Members
  • Posts: 3
  • Joined: 01-November 05

Posted 21 September 2008 - 08:57 AM

Hello.

I'm having problem mapping network share with Vista Business using script run by VPN client. There is no domain
in this setup, only file server (win 2003 std) in its own workgroup and few clients that connect to
servers file share over vpn tunnel. The clients use Zyxel's Zywall ipsec VPN client to open the tunnel and
it is configured to run a script that maps the share from server. The problem is that the script does not
work in Vista if run by the VPN client. The script is simple logon.cmd (net use x: \\server\share /user:server\user password).


Heres what I have tried:
-Adjust the ntlm level with secpol.msc
-Set more user rights to share
-Disabled UAC
-Disabled firewall
-Different kind of script (VBS)
-add 1. Added EnableLinkedConnections reg value ( http://support.microsoft.com/kb/937624 )

But so far nothing have worked. The drive appears under network location but has big red X over it and showing
as disconnected network drive. If I try to access it I get "Logon failure: unknown user name or bad password"
announcement. This might not sound like big problem since the share is accessible by running the script manually
or mapping the share manually but some users find even that too complicated and difficult to be done everytime
VPN tunnel is opened..

Here is view from Vista / network location
Posted Image


Here is view from server after the VPN client has run the drive mapping script
Posted Image


This is the alternate VBS script I used
 
' From the book, "Windows XP Cookbook"
' ISBN: 0596007256

' ------ SCRIPT CONFIGURATION ------
strDrive = "x:"
strPath = "\\server\share"
strUser = "server\user"
strPassword = "password"
boolPersistent = false ' True = Persistent ; False = Not Persistent
' ------ END CONFIGURATION ---------
set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDrive, strPath, boolPersistent, _
 strUser, strPassword
WScript.Echo "Successfully mapped drive" 

This post has been edited by qwerty2nd: 21 September 2008 - 10:15 AM



#2 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,897
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 September 2008 - 03:30 PM

if you connect to the network via VPN and manully map a drive will it connnect correctly?

#3 User is offline   pretender69 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 29-June 06

Posted 21 September 2008 - 03:52 PM

Try

net use P: "\\server\share" password /USER:Userid

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy