Solved

net use command anomaly

Posted on 2007-11-29
11
1,055 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 54

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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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
 
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 54

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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
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…
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…

856 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