Link to home
Start Free TrialLog in
Avatar of Butch Smith
Butch SmithFlag for United States of America

asked on

logon script wont run

I have typed the following script to make it a bat file:

net use s: \\servername\shared

I placed the bat file in the sysvol/dnsname/scripts (proper place) and under the user in active directory under the users profile/logon script I have typed the name of the batch file "logon.bat"

I also try running the actual batch file on the client computer when the user is logged on and it still does not create the mapped drive, any ideas
Avatar of Trackhappy
Trackhappy
Flag of Australia image

What is the error when yoyu run it manually?
Avatar of Butch Smith

ASKER

Im not sure how to get the screen to stop so I can view the error, when I run the batch file it happens so quick.  How can I run it and keep the prompt open?
Run a command prompt and run it within the window:

start, run, cmd (starts a command prompt)
cd c:\(whereveryou have copied the file to)
"logon.bat"

or
 ("\\domain.name\netlogon\logon.bat" maybe"
Alternatively, add a line "pause" straight after the active line in the batch file.
system error 67 has occurred
the network name cannot be found

The server name is BVC

so I have: net use s: \\BVC\shared

the shared is the name of the folder sitting on the C drive of the server
ASKER CERTIFIED SOLUTION
Avatar of Trackhappy
Trackhappy
Flag of Australia 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 sirbounty
To test, you might also try mapping to the c drive:
net use s: \\bvc\c$

if that works, I suspect the share is not properly shared...
got it, thanks