November 17, 200421 yr Three of my users' Win2000 PC's need a drive mapped on another domain. As you all know Win2000 can't remember the logon credentials of another domain after a reboot. So what I would like to do is write a logon script that disconnects the current drive and creates a new one with the correct credentials.Does anybody have any idea on how I can do this, and what the correct code is?
November 17, 200421 yr Are the users in question set up on both domains?If so just map the drive in a login script with "net use x: \\machine-name\share-name"There is a registry way of doing it but i cant find the file in question at this time !
November 19, 200421 yr Or using VBScript ...DriveLetter = "N:" 'must be capitalized, change drive letter accordingly RemotePath = "\\server\share" Set WShNetwork = WScript.CreateObject("WScript.Network")WShNetwork.MapNetworkDrive DriveLetter, RemotePath to disconnect use ...WShNetwork.RemoveNetworkDrive DriveLetter
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now