Solved

Error 1311 There are currently no logon servers available to service the logon request

Posted on 2009-05-06
10
2,812 Views
Last Modified: 2012-05-06
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:
@echo off
c:
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 = 205.171.3.65
@echo IP Adress Changed to FIELD and WORK network
pause
exit

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

'  VBScript.
'  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.
@Echo off

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

pause
exit

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.
0
Comment
Question by:WSBCS01
  • 5
  • 5
10 Comments
 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
net use W: \\%pcname%\clitemp <password for user auditor> /user:%pcname%\auditor
Since the username and password is the same on all computers, you don't need the %pcname%\ in /user:%pcname%\auditor
Due to that %pcname%, if Windows is unable to locate that computer by netbios name it won't be able to authenticate.
0
 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
Actually, since they are all logged in with the same name and password, you shouldn't have to even specify the user or password in the script.
0
 

Author Comment

by:WSBCS01
Comment Utility
Kenneniah, understand that. but we tried the regular net use with no credentials and also with the /user: switch that did not contain computer name. As I stated, we also tried using the ip address as well to map with no effect.
0
 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
Yeah, strange things happen when Windows can't find a "server" through DNS or NetBIOS, especially authentication issues. Therefore the question becomes why can't they see each other using NetBIOS name. When this is ocurring what happens if you run "nbtstat -A ipaddress" ?
0
 

Author Comment

by:WSBCS01
Comment Utility
For that, I'll have to wait when it happens again when they are in the field.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
Is it just the laptops connected to the switch, as I see you are setting a gateway and DNS servers, Is the 192.168.1.2 an actual DNS server?
0
 

Author Comment

by:WSBCS01
Comment Utility
Kenneniah,

It is, but not when in the field. It is the domain controller when they are at the office. Basically they use the same ip scheme when either in the field or in the office.
0
 
LVL 24

Accepted Solution

by:
Kenneniah earned 500 total points
Comment Utility
If the IP scheme stays the same, why do you need a script to set the IP etc.? Or is it to switch from DHCP to static?
Anyway, XP will first try DNS name resolution and when it fails will try NetBIOS through WINS or broadcast. When having this problem it sounds like Windows isn't switching to NetBIOS broadcast like it should, or possible the switch isn't broadasting the resolution request. Also possible is a master browser election/computer browser service issue. Unfortunately it would require active testing during the problem to find out. Such as disabling the browser service on all but one laptop, using a sniffer to see if broadcast packets are being sent etc.

What I would probably do in your situation is instead of using those scripts and shares on a laptop is to have them take an NAS device with them. Therefore it's always the same etc.
0
 

Author Comment

by:WSBCS01
Comment Utility
Kenneniah,

It is to switch between DHCP and static. Even when they are in the fileld they can exit their own little field network, connect to the client's network and use the internet. They can then switch back.

I believe however that the fact that the DNS is set as the domain controller may cause some issues with authentication. As such I will accept all your suggestions as solution to the issue.

If all goes well, in a few months they will have Terminal services access through VPN and all this excessive scripting stuff will be a non issue.
0
 

Author Closing Comment

by:WSBCS01
Comment Utility
I am fairly certain that your suggestions will resolve the issue or at least will explain the inconsistencies. I thank you for your response.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now