?
Solved

WinNT://localmachine/User script Hangs

Posted on 2008-10-01
6
Medium Priority
?
614 Views
Last Modified: 2013-12-24
We have a call to Getobject("winNT://localmachinename/username"). This is (unfortunately) run from some legacy code in VB6, as part of a login script on a Windows network, but with Novell eDirectory LDAP servers. The Login is being processed by the Novell Login GINA. The program, and call to "winNT" works perfectly across an installed user  base of several 1000 windows XP pc's, but on one site and on some PC's it hangs.

In addition it particularly hangs on cold boot but not warm boot of the PC's. In our script we are trying to retrieve the user's SID, once we have the object returned from the winNT call.

The network uses a mix of NETBIOS/WINS/TCPIP and DNS

Our current working theory is that the getobject call is timing out on a network name resolution, however surely the call to "winNT://localmachinename/user" would check the local pc name first prior to doing a network name resolution

If we wait "5" minutes then the script does complete, however typically it would complete in a number of seconds not minutes.

Any suggestions regards solving this?
How can we stop the hang
0
Comment
Question by:Vince Wingate
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 22617271
How are you deriving the localmachine name?
0
 
LVL 1

Author Comment

by:Vince Wingate
ID: 22622242
good question - we are reading the environment variable "USERDOMAIN" - which as its Novell eDirectory and not Windows DC/AD's is the local machine name
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 22623234
Does it work if you hard code the computername in there - as a test?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 1

Author Comment

by:Vince Wingate
ID: 22623371
we have debug statements all thru the code producing a log, and although the name is actually held in a string variable - we know that the string variable is set correctly - so in the actual (vb6) code we have

dim sComp as string
dim sUser as string
dim o as object

sComp = environ("USERDOMAIN")
sUser = environ ("USERNAME")

o = GetObject("WinNT://" & sComp & "/" & sUser")
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 22623646
Hmm - I would still advise, especially since you're reaching to the environment, to grab sComp = environ("Computername") instead....and/or trim the   string value as well...
0
 
LVL 1

Accepted Solution

by:
Vince Wingate earned 0 total points
ID: 22731031
We have determined the cause of this issue to be a Novell application called iPrint which was causing the WinNT:// lookup to run very slowly. Thanks for your assistance
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 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