• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

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
0
Butch Smith
Asked:
Butch Smith
  • 4
  • 3
1 Solution
 
TrackhappyCommented:
What is the error when yoyu run it manually?
0
 
Butch SmithAuthor Commented:
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?
0
 
TrackhappyCommented:
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"
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
TrackhappyCommented:
Alternatively, add a line "pause" straight after the active line in the batch file.
0
 
Butch SmithAuthor Commented:
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
0
 
TrackhappyCommented:
I have to head off, but first thing is to ping hte server name you are trying to connect to ansd verify that it is resolvable by name, and reachable via ip address.
ping BVC, should return an IP address and successul pings. This looks to be where the problem is.

Try using net use x: \\ipaddress\share and see if that works.

Then type net use \\BVC and it should show a list of shares on that machine.

If the share is not there, then sort out the sharing of the folder.

All the best.
Glenn.
0
 
sirbountyCommented:
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...
0
 
Butch SmithAuthor Commented:
got it, thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now