Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logon script Issue

Status
Not open for further replies.

jpollack

IS-IT--Management
Jan 26, 2005
162
US
There is one machine in our organization that will not map one of my network drives. This script has worked on dozens of other machines, but not this one. I do have local admin rights. Does anyone know why this is happening?

Thanks,
John
 
Full moon?

Seriously though, what happens if you try to use the same command that's in the logon script from a command prompt to map the drive? What error do you get?
 
is there a difference in OS? SP#? How exactly are you running the script? Bat file or VBScript?

Computer/Network Technician
CCNA
 
Post your script so we know how you are trying to do it. Is is a vbscript or a bat file? Are you disconnecting the drive letter first? Are you mapping using the ",True" if this is vbscript?

I hope you find this post helpful.

Regards,

Mark
 
The script runs from windows 2000 A.D. The client is XP service pack 2. The script is a simple net use .bat file.
 
OK.. this sounds easy enough..

It sounds as if the XP SP2 machine has the firewall turned on.. what you need to do is open up the Firewall Exceptions list and enable File & Print Sharing in the exceptions.

Unless you do so, this will deny all file and print sharing.

Computer/Network Technician
CCNA
 
I am about 100% sure that the firewall is off because other logon scripts are running and mapping other drives. Yes, I am sure that there is not a drive letter conflict. The drive is being mapped to B:, our computers do not have floppy drives.
 
A and B, I thought were reserved for floppy drives regardless of whether it had them?

Computer/Network Technician
CCNA
 
No, you can map to both A and B if the computer does not have a floppy assigned to either letter. I was able to run the script from the command prompt from the offending computer. I logged onto a machine in the next cubical and the script ran sucessfully. Maybe, I should check the BIOS to see if something needs to be changed there.
 
yer right, you may need to disable the floppy in the BIOS, as some will reserve the drive letters... that may be it.

Computer/Network Technician
CCNA
 
I just disabled the floppy in the bios and the script still does not run. I am perplexed.
 
maybe open cmd.exe first, then run the script.. so you can see the error it gives you



Computer/Network Technician
CCNA
 
add the following to the net use line to log the error:

net use b: \\server\share>>C:\logonerror.txt

Post the complete logonerror.txt file once you've tried logging in again on the offending pc.
 
Lloyd the script runs fine from the command prompt.

I will try adding the logonerror.txt, but I don't think there are any errors, because it runs from cmd.exe.
 
so it will successfully run from cmd.exe and map the drive??

Computer/Network Technician
CCNA
 
Yes Lolyd it ran when I opened up the command prompt and typed \\server\xx.bat. The output was the command completed succesfully. I then opened my computer and there was B: maped.
 
ok.. is this trying to map during a roaming profile transfer?

sounds like maybe it isn't mapping due to not being able to contact the server share.

Computer/Network Technician
CCNA
 
Again I would ask please post your script.

I hope you find this post helpful.

Regards,

Mark
 
net use b: \\server\folder

Roaming profiles are not in use.
 
Give this a try.

NET USE B: \\Server\Folder /PERSISTENT:YES

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top