We have 10 laptops running Windows XP Service pack 2 that are configured on a mixed mode windows domain. Those laptops are also used in the field where the auditos take an 8-port switch, go onsite and switch to a peer to peer mode with static IP addresses. All laptops use a local (i.e. non-domain) username and password to log in. That username is Auditor. All laptops also use the same shared folder called "clitemp" that it is confiugured to have Full control for administrators and the user Auditor (who is a local administrator) Below are the scripts used for connection that each laptop has with unique local IP addresses for each laptop of course:
1) Script to connect to the Field network with the 8-port switch or when they are at work on the domain:
if exist \winnt\system32 cd \winnt\system32
if not exist \winnt\system32 cd \windows\system32
@echo Setting IP address and Subnet
netsh interface ip set address name = "Local Area Connection" source = static addr = 192.168.1.68 mask = 255.255.255.0
@echo Setting Gateway
netsh interface ip set address name = "Local Area Connection" gateway = 192.168.1.1 gwmetric = 1
@echo Setting Primary and Secondary DNS servers
netsh interface ip set dns name = "Local Area Connection" source = static addr = 192.168.1.2
netsh interface ip add dns name = "Local Area Connection" addr = 126.96.36.199
@echo IP Adress Changed to FIELD and WORK network
2) Script to display computer name. The auditor who is going to act as the server when in the field runs that and it basically gives the name to the people to use to map a drive
' Display Computer Name
Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo "Computer Name = " & WshNetwork.ComputerName & ""
3) This script asks for the name of the computer that the auditor acting as the server gives and maps the share Clients as drive W: using the credentials of the machine that is acting as the server.
set /p pcname=Please enter name of the PC (eg. JohnD-Laptop) to connect:
Echo Disconnecting any old W: drive if it exists...
net use W: /d /yes
Echo Attempting to connect to W: Drive...
net use W: \\%pcname%\clitemp <password for user auditor> /user:%pcname%\auditor
No firewalls are setup on the laptops, but on occasion we still get the 1311 error message. All laptops log on locally so the domain authentication should not be an issue. All laptops use the same local account to log on locally and the map drive script explicitly connects using the account that is on the PC that is acting as the server so cached credentials should exist, but even if they are not, the fact that the map drive command explicitly provides the credentials, should allow for connection.
The only other thing I noted when this occurs is that the user whose machine can't map the drive, cannot see the server by name. They can ping by IP address, but even if I try to have them enter the IP address to map the drive while also using the credentials, the error 1311 occurs again.
Any suggestions on the matter would be appreciated. I did the research on the error and there should be no authentication issues since the authentication is explicitly given ont he script.