![]() |
|
Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
|||||||
| Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing) |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello, I have 14 machines (12 Windows XP and 2 Windows Vista Home Premium) the Vista machines are unable to use the mapping script that works fine with XP. The script in Vista executes but generates a "Invalid Password" error. The passwords are fine and the same exact script works fine in XP. These machines are not part of a domain, they are part of a workgroup however. The scripts map a user to a D-Link DSM-G600 Network fileserver. Here is the script with sensitive details removed. Any idea why this isn't working in Vista but works flawlessly in XP? Details of startup.vbs (which is placed in the specific user's startup folder: *Option Explicit Dim objNetwork Dim strDriveLetter, strRemotePath, strUser, strPassword, strProfile ' Values of variables set strDriveLetter = "Z:" strRemotePath = "\\dsm-g600\bob home" strUser = "bob" strPassword = "123456" strProfile = "false" ' This section creates a network object. (objNetwork) ' Then apply MapNetworkDrive method. Result H: drive ' Note, this script features 5 arguments on lines 21/22. Set objNetwork = WScript.CreateObject("WScript.Network") objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, _ strProfile, strUser, strPassword * -- mark1210 ------------------------------------------------------------------------ mark1210's Profile: http://forums.techarena.in/member.php?userid=24210 View this thread: http://forums.techarena.in/showthread.php?t=718790 http://forums.techarena.in |
|
|||
|
This sounds similar to the problem I am experiencing trying to map drives
from my Buffallo Link Station. On trying to map the drive, I am prompted for ausername and password. I enter these correctly but get the Invalid Password response as Vista automatically appends the computer name to the beginning of the username, whihc the LinkStation then does not recognise. "mark1210" wrote: Hello, I have 14 machines (12 Windows XP and 2 Windows Vista Home Premium) the Vista machines are unable to use the mapping script that works fine with XP. The script in Vista executes but generates a "Invalid Password" error. The passwords are fine and the same exact script works fine in XP. These machines are not part of a domain, they are part of a workgroup however. The scripts map a user to a D-Link DSM-G600 Network fileserver. Here is the script with sensitive details removed. Any idea why this isn't working in Vista but works flawlessly in XP? Details of startup.vbs (which is placed in the specific user's startup folder: *Option Explicit Dim objNetwork Dim strDriveLetter, strRemotePath, strUser, strPassword, strProfile ' Values of variables set strDriveLetter = "Z:" strRemotePath = "\\dsm-g600\bob home" strUser = "bob" strPassword = "123456" strProfile = "false" ' This section creates a network object. (objNetwork) ' Then apply MapNetworkDrive method. Result H: drive ' Note, this script features 5 arguments on lines 21/22. Set objNetwork = WScript.CreateObject("WScript.Network") objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, _ strProfile, strUser, strPassword * -- mark1210 ------------------------------------------------------------------------ mark1210's Profile: http://forums.techarena.in/member.php?userid=24210 View this thread: http://forums.techarena.in/showthread.php?t=718790 http://forums.techarena.in |
|
|||
|
Can you map the drive manually?
-- Kerry Brown Microsoft MVP - Shell/User http://www.vistahelp.ca "mark1210" wrote in message ... Hello, I have 14 machines (12 Windows XP and 2 Windows Vista Home Premium) the Vista machines are unable to use the mapping script that works fine with XP. The script in Vista executes but generates a "Invalid Password" error. The passwords are fine and the same exact script works fine in XP. These machines are not part of a domain, they are part of a workgroup however. The scripts map a user to a D-Link DSM-G600 Network fileserver. Here is the script with sensitive details removed. Any idea why this isn't working in Vista but works flawlessly in XP? Details of startup.vbs (which is placed in the specific user's startup folder: *Option Explicit Dim objNetwork Dim strDriveLetter, strRemotePath, strUser, strPassword, strProfile ' Values of variables set strDriveLetter = "Z:" strRemotePath = "\\dsm-g600\bob home" strUser = "bob" strPassword = "123456" strProfile = "false" ' This section creates a network object. (objNetwork) ' Then apply MapNetworkDrive method. Result H: drive ' Note, this script features 5 arguments on lines 21/22. Set objNetwork = WScript.CreateObject("WScript.Network") objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, _ strProfile, strUser, strPassword * -- mark1210 ------------------------------------------------------------------------ mark1210's Profile: http://forums.techarena.in/member.php?userid=24210 View this thread: http://forums.techarena.in/showthread.php?t=718790 http://forums.techarena.in |
|
|||
|
Yes, I can map it manually in both XP and Vista. Vista keeps complaining about an invalid password which isn't accurate. I was informed to disable UAC in the control panel of Vista but that didn't fix it either. I spoke to D-Link and they claim that Vista has several problems around drive mapping unless you are part of a domain. Sounds like BS to me... -- mark1210 ------------------------------------------------------------------------ mark1210's Profile: http://forums.techarena.in/member.php?userid=24210 View this thread: http://forums.techarena.in/showthread.php?t=718790 http://forums.techarena.in |
|
|||
|
If the D-Link uses Samba it may need an update. It may not support NTLM2
authentication. You can lower the level of authentication Vista uses but the better solution is for D-Link to come out with a firmware upgrade. It may also be related to the way Vista passes the username for authentication. If you are not in a domain Vista passes the name as computer_name\user_name. You could try explicitly using the workgroup name. strUser = "workgroup_name\bob" or strUser = "domain_name\bob" The following thread talks about both methods. http://forums.microsoft.com/MSDN/Sho...60925&SiteID=1 -- Kerry Brown Microsoft MVP - Shell/User http://www.vistahelp.ca "mark1210" wrote in message ... Yes, I can map it manually in both XP and Vista. Vista keeps complaining about an invalid password which isn't accurate. I was informed to disable UAC in the control panel of Vista but that didn't fix it either. I spoke to D-Link and they claim that Vista has several problems around drive mapping unless you are part of a domain. Sounds like BS to me... -- mark1210 ------------------------------------------------------------------------ mark1210's Profile: http://forums.techarena.in/member.php?userid=24210 View this thread: http://forums.techarena.in/showthread.php?t=718790 http://forums.techarena.in |
|
|||
|
Kerry, Thanks for the info. All, I was able to make this work after read the URL Kerry provided. If you use Home or Home Premium then the article won't work. secpol.msc is only for Vista Business or Ultimate. If you use Home or Home Premium you have to edit the registry by using "regedit". HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Lsa\LMCompatibilityLevel Change the default from 3 to 1 which means use NTLMv2 if available. Hope this helps! -- mark1210 ------------------------------------------------------------------------ mark1210's Profile: http://forums.techarena.in/member.php?userid=24210 View this thread: http://forums.techarena.in/showthread.php?t=718790 http://forums.techarena.in |