Link to home
Start Free TrialLog in
Avatar of TTCLIVE
TTCLIVE

asked on

Net Use returns "System error 64 has occurred. The specified network name is no longer available."

I am using .bat files for sartup scripts to connect network drives, and I just recently started getting this error when I try to run the scripts on login.

System error 64 has occurred. The specified network name is no longer available.

Also, if I try to simply do it from a command prompt after I complete my login I get the same problem. I can browse to the location and I can type the location directly in my address bar to get there, but Net Use just doesn't work...any ideas?
Avatar of slam69
slam69
Flag of United Kingdom of Great Britain and Northern Ireland image

hang on does teh drive your trying to contact to belong to a machine with static Ip. i think the ip lease has changed, run ipconfig /flushdns at command prompt on a machine that is seeing this error and then try again
Avatar of TTCLIVE
TTCLIVE

ASKER

All the servers have static IP's and it won't connect to any of them. If I replace \\servername\share with \\ip address\share I get the same error.
thats strange normally this type of issue points to a dns issue but if IP isnt working either it must be something else.


do you use net delete before the net use command to ensure the drive is disconnected?
Avatar of TTCLIVE

ASKER

Yeah.
ok then onto other things!!

there is this posting and this site is normally very good

http://www.chicagotech.net/troubleshooting/systemerror64b.htm

4 things to try and im a little bit testy as to whether the NIC issue could be causing this but worth trying first
Avatar of TTCLIVE

ASKER

I can talk to the servers, I can manually add the network drive, I just can't use Net Use.
is thi son xp or on vista as both ar elisted in the heading and there ar eseveral posting about issues wiht net use an dvista.. im leaving office nwo will check back in soon
Avatar of TTCLIVE

ASKER

It's on both XP and Vista.
if you run teh script manually once you are logged in does the net use command complete then.

the next thoing im thinking is that the script is running before the machine has an ip address and thats why its bombing out with a dns related error, othert way of checking that would be to log out and not shut down and restart
Avatar of TTCLIVE

ASKER

No, it still doesn't work even after I am logged in and running with an ip address.
can you post your log on script here please
Avatar of TTCLIVE

ASKER

Rem This removes the shared drives that they may have.
net use z:\\ttcserver\community /delete
net use t:\\ttcserver\community /delete
net use M:\\ttcserver\Management$ /delete

Rem This installs the shared drive as a shared hard drive.
net use t: \\ttcserver\community\Shared
net use M:\\ttcserver\Management$

REM Add printer
echo Installing Suite 111 Main Printer on TTCSERVER!
RunDll32.EXE printui.dll,PrintUIEntry /in /n "\\Ttcserver\Qualifier Printer"
echo Installing Suite 111 Main Printer on TTCSERVER!
RunDll32.EXE printui.dll,PrintUIEntry /in /n "\\Ttcserver\Sales Printer"

REM Set Default Printer
rundll32.exe printui.dll,PrintUIEntry /y /n "\\Ttcserver\Qualifier Printer"
ok the first parts in the delete wont work and that could be bombing the script out, then try the persistent variable as well

net use z: /delete
net use t: /delete
net use M: /delete

Rem This installs the shared drive as a shared hard drive.
net use t: \\ttcserver\community\Shared /persisitent:yes
net use M:\\ttcserver\Management$ /persisitent:yes

Avatar of TTCLIVE

ASKER

net use M:\\ttcserver\Management$ /persisitent:yes
The option /PERSISITENT:yes is unknown.
Avatar of TTCLIVE

ASKER

I tried this without the /persistant as well and I just got the error:

System error 67 has occurred.
The network name cannot be found.

But I can still browse to it and go to it by entering the address in the address bar in explorer.
ASKER CERTIFIED SOLUTION
Avatar of slam69
slam69
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TTCLIVE

ASKER

That seemed to do it!!
So it looks like I did 3 things wrong here.
* Wrong use of /delete
* Not using /persistent
* I did not have a space between the drive letter and the path (that was why it could not find the network name!!!) It should have been M:(space)\\path(space)/persistent

Thanks for the help!!