Re: NET USE in 2k3

Tech-Archive recommends: Speed Up your PC by fixing your registry



John Schneider wrote:
"Ian" wrote:


John Schneider wrote:

I have a laptop running Windows 2003 server, a Desktop running Windows XP Pro, and a batch file that I use once a week to synchronize some files between the two. A line in the batch file that maps a drive on the laptop to a shared drive on the Desktop worked in Windows 2000 server but doesn't work in 2k3.

The laptop is a corporate machine, and part of our corporate domain. The XP box is part of my home network, with the stock named workgroup MSHOME. At home, I'll plug the laptop into my home network. This is the line I use to map the drive:
net use J: \\DesktopName\SharedFolderName Password /user:UserName
This worked fine in Win 2k, but since I installed 2k3, that line now gives me the error:
System error 67 has occurred.
The network name cannot be found.


If I substitute "DesktopName" with the actual address, such as 192.168.1.103 (all the machines at home are on a network/router), it maps just fine. The only problem with hardcoding that address is that whenever the router is recycled, the Desktop will probably get a new address.

I know I'm missing something obvious here, but I just can't figure this one out.

John Schneider


Have you setup RRAS to allow broadcast name resolution?

Try using deskopname.domainname ie \\desktop01.mydomain.local

Ian



Ian,

Thanks for the response, but I'm not familiar with RRAS. Is this something new with 2k3?

The XP box I'm trying to connect to is not part of a domain, but just the standard MSHOME workgroup. Unfortunately, I'm in the office now and won't be able to test this until tonight. Are you saying that I should try it like this:?
net use J: \\DesktopName.MSHOME.local\SharedFolderName Password /user:UserName


Thanks again,
John
Apologies,
I assumed you would be trying to access the corporate network from home (rather than the other way round).


Your corprate machine will be preconfigured to use the company's name servers and dependant on your VPN setup broadcast name resolution my be disabled - Probably safer to use IP Address to connect to the machine


Ian e.g net use J: \\192.168.1.10\SharedFolderName Password /user:UserName .



Relevant Pages

  • Mapped drive to share on local machine not usable if network disconnected
    ... I created a share (TestShare for the folder c:\temp). ... Then I created a mapped drive P: which maps to \\MyLaptop\TestShare. ... drive and everyting works, until I disconnect my laptop from the network. ...
    (microsoft.public.win32.programmer.networks)
  • use batch file to map network drive that requires username and password
    ... I want to create a batch file that i can schedule to run that maps a network ...
    (microsoft.public.win2000.general)
  • Re: One Users My Documents no longer redirected.
    ... even connect to the network at all because it's a PITA. ... So I would think that a wireless 54 mbps connection would be ... one laptop, and try it for a day or two to see what happens. ... active directory OU as the other users whose redirection works? ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem with XP Pro and Home in same Network
    ... the network can be accessed successfully from within My Network Places. ... the laptop is the mb, the laptop can access the network from within My ... Network Places, but the desktops cannot. ... wireless computer never be a server, and certainly not a browser. ...
    (microsoft.public.windowsxp.network_web)
  • RE: The VA Stolen Laptop - Lessons Learned
    ... disabled reaches the laptop? ... make a lot more sense when data is housed on the "work" network and NTFS ... Encrypt it with whatever you like... ... the machine or the user couldn't get to their profile off the network. ...
    (Security-Basics)