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



Linear Mode


Posts: n/a