Why doesn't this mapping script work in Vista?

Posted: 04-03-2007, 07:56 PM

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

Reply With Quote

Responses to "Why doesn't this mapping script work in Vista?"

shdyer
Guest
Posts: n/a
 
RE: Why doesn't this mapping script work in Vista?
Posted: 04-04-2007, 01:14 PM
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
>
>
Reply With Quote
Kerry Brown
Guest
Posts: n/a
 
Re: Why doesn't this mapping script work in Vista?
Posted: 04-04-2007, 03:31 PM
Can you map the drive manually?

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"mark1210" <mark1210.2ohare@DoNotSpam.com> wrote in message
news:mark1210.2ohare@DoNotSpam.com...
>
> 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
>
Reply With Quote
mark1210
Guest
Posts: n/a
 
Re: Why doesn't this mapping script work in Vista?
Posted: 04-05-2007, 06:16 AM

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

Reply With Quote
Kerry Brown
Guest
Posts: n/a
 
Re: Why doesn't this mapping script work in Vista?
Posted: 04-05-2007, 06:41 AM
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" <mark1210.2ojx7g@DoNotSpam.com> wrote in message
news:mark1210.2ojx7g@DoNotSpam.com...
>
> 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
>
Reply With Quote
mark1210
Guest
Posts: n/a
 
Re: Why doesn't this mapping script work in Vista?
Posted: 04-05-2007, 07:21 PM

Kerry,

Thanks for the info.

All,

I was able to make this work after read the URL Kerry provided. If yo
use Home or Home Premium then the article won't work. secpol.msc i
only for Vista Business or Ultimate. If you use Home or Home Premiu
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

--
mark121
-----------------------------------------------------------------------
mark1210's Profile: http://forums.techarena.in/member.php?userid=2421
View this thread: http://forums.techarena.in/showthread.php?t=71879

http://forums.techarena.i

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty Mapping Drives under Vista Neil P Windows Vista Networking & Sharing 1 03-04-2007 03:00 AM
Mapping network drives & update don't work, when part of win2k3 do Ben Franklin Windows Vista Networking & Sharing 1 06-25-2006 12:11 AM
Mapping network drives, updates don't work, when part of win2k3 do Ben Franklin Windows Vista Networking & Sharing 0 06-24-2006 05:20 PM
can't get nbtstat to work using shell script in WINXP Roylei Windows XP WMI 0 03-12-2005 04:33 PM
My Dus Script for Blaster didn't Work Help me j.y.kim Windows XP Embedded 1 08-20-2003 09:42 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90