Solved

net use command anomaly

Posted on 2007-11-29
11
1,051 Views
Last Modified: 2012-05-05
I am use the "net use" command from a windows command prompt to map a drive from a domain computer to another windows computer which is in a stand alone workgroup.  When I use the following command which specifiies the IP address of the computer before the user account, the time in takes to map the drive is roughly 10-15 seconds.

net use * \\172.20.10.5\c$ password /user:172.20.10.5\administrator

However, if I remove the IP address before the user name "administrator" and let the access request bounce off my Active Directory domain controllers, it takes only 1-5 seconds to map the drive.

net use * \\172.20.10.5\c$ password /user:administrator

I would prefer if the command did not try to bounce off my domain controllers because it generates an error in the security event log, but I would like the mapping process to only take 1-5 seconds instead of 10-15 seconds.   Does anyone know why mapping with the correct full credentials would take longer than with the incomplete ones?  Is there any way to use the correct full credentials and speed up the process?

0
Comment
Question by:AManoux
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 53

Expert Comment

by:McKnife
ID: 20378641
Bouncing? What error does it create?
Does the account administrator (of the domain) have the same password as the 172...admin?
Is DNS working as expected?
Try nslookup 172.20.10.5 - how long does that take?
What result comes after nslookup (simply "nslookup")
5 questions :)
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20378644
Have you tries using:
net use * \\172.20.10.5\c$ password /user:DomainName\administrator
                                                                        ^

If that is not an option is there a DNS PTR record for 172.20.10.5
0
 
LVL 7

Expert Comment

by:Wod
ID: 20378692
have you tried using the ComputerName and DomainName instead of IP address?


net use [{DeviceName | *}] [\\ComputerName\ShareName[\volume]] [{Password | *}]] [/user:[DomainName\]UserName] [/user:[DottedDomainName\]UserName] [/user: [UserName@DottedDomainName] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]

Open in new window

0
 
LVL 1

Author Comment

by:AManoux
ID: 20378695
To McKnife:
On my domain controller it generates Event: '676' Type: 'AUDIT FAILURE' Category: 'Account Logon '. I then have to explain to our auditors why someone was trying to use an "administrator" account on our domain. Not fun.  The domain admin account does not use the same password as the 172...admin account.  DNS is active on the domain but the computer in the workgroup that I am trying to map a drive to is in a workgroup.  I don't believe workgroup computers register their name in a Active Directory integrated DNS setup.

To RobWill:
I'm confused.  The computer I am trying to map a drive to is a member of standalone workgroup. There is no "DomainName" to enter before the user name.  Do you mean put in the WorkGroup name before the user name?

0
 
LVL 77

Accepted Solution

by:
Rob Williams earned 150 total points
ID: 20378740
>>"The computer I am trying to map a drive to is a member of standalone workgroup. There is no "DomainName"." Sorry, "heard" AD and assumed, you can try using the computer name, but there may not be much difference in that situation:
net use * \\172.20.10.5\c$ password /user:ComputerName\administrator

You could also add the computer name and IP to the local LMHosts file. And then use computer name in the net use command. Ii should resolve using the LMHost before using DNS and may avoid the error.
0
The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

 
LVL 1

Author Comment

by:AManoux
ID: 20378755
I will try using the LMhost file and see if that makes any difference.  I am confused though why DNS is even playing an issue here since DNS resolves names to IP address and since I am already using the IP address of the computer in my Net Use command I don't see why DNS is needed.
0
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 100 total points
ID: 20378774
nono, DNS does both directions.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20378784
Good point. I don't know, but it would sound to me as if it is, and the error is due to no PTR record (required to resolve IP to DNS name). I find you start mixing Domains and workgroups and different permissions you can get all kinds of weird results. Not suggesting it won't work, just some surprises. The only reason I was suggesting LMHosts is if it "feels" it needs to resolve, LMHOSTS is checked before DNS, and might head it off before contacting the DNS server. Just a long shot.
0
 
LVL 1

Author Comment

by:AManoux
ID: 20378845
Ok, well after some more testing it looks like I can use an IP address for the share mapping but I need to change the user credentials to use the Netbios name of the machine in order to speed things up.

net use * \\172.20.10.5\c$ password /user:ComputerName\administrator

Not sure if that is a DNS issue or a WINS issue? If either of you have more insight feel free to comment. Otherwise I will split the points between RobWill and McKnife since you guys were first to reply with answers and additional help.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20378889
To be honest I have never seen the command used with
 /USER:<IP>\administrator
I didn't think it would work at all. <G>
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20379109
Thanks AManoux.
Cheers !
--Rob
0

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

760 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

18 Experts available now in Live!

Get 1:1 Help Now