A Windows Vista forum. Vista Banter

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.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Networking with Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing)

Why doesn't this mapping script work in Vista?



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old April 3rd 07, 06:56 PM posted to microsoft.public.windows.vista.networking_sharing
mark1210
external usenet poster
 
Posts: 1
Default Why doesn't this mapping script work in Vista?


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

  #2 (permalink)  
Old April 4th 07, 12:14 PM posted to microsoft.public.windows.vista.networking_sharing
shdyer
external usenet poster
 
Posts: 1
Default Why doesn't this mapping script work in Vista?

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


  #3 (permalink)  
Old April 4th 07, 02:31 PM posted to microsoft.public.windows.vista.networking_sharing
Kerry Brown
external usenet poster
 
Posts: 2,887
Default Why doesn't this mapping script work in Vista?

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


  #4 (permalink)  
Old April 5th 07, 05:16 AM posted to microsoft.public.windows.vista.networking_sharing
mark1210
external usenet poster
 
Posts: 1
Default Why doesn't this mapping script work in Vista?


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

  #5 (permalink)  
Old April 5th 07, 05:41 AM posted to microsoft.public.windows.vista.networking_sharing
Kerry Brown
external usenet poster
 
Posts: 2,887
Default Why doesn't this mapping script work in Vista?

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


  #6 (permalink)  
Old April 5th 07, 06:21 PM posted to microsoft.public.windows.vista.networking_sharing
mark1210
external usenet poster
 
Posts: 1
Default Why doesn't this mapping script work in Vista?


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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.