Discussion Locked

Logon.bat will not run on Login

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Win2000 server running DHCP and DNS.
The workstations receive an ip and from the command line I can run net use x: \\server\shared
But the logon.bat does not run even that simple statement.

The logon.bat is located in the Scripts subdir.

I'mBaffled!

11 replies

by catmanth

you have enabled the logon script at the user manager? If not, the script will not executed.

by magarahan

I already closed this question and points were distributed. I appreciate your offer for help but I won't award again. That was not the solution anyway but thanks.

by bennytoh

Take note that when you use the net use command, if the shared folder that you are pointing to has a space, do keep the variables in quotes like the example below
net use x: "\\singapore\My Documents"
otherwise the command to map that particular drive would not work Cheers

by magarahan

I already closed this question and points were distributed. I appreciate your offer for help but I won't award again. That was not the solution anyway but thanks.

by gigelul

Also if you have more than one server put on all this script (or be sure which server authenticate the users in network).
More detail about answer1:
In user manager select users wich will execute this script/bat, chose properties and in profile\logon script name, enter your bat file name.
Also you can enable replication between your server/s and workstations for this script/bat.

by magarahan

I already closed this question and points were distributed. I appreciate your offer for help but I won't award again. That was not the solution anyway but thanks.

by typamfiloff

IF you are using the legacy profile way(in AD users and computers) make sure you add the file in the profiles tab and place the file in
C:\WINNT\sysvol\sysvol\mycarstats.local\scripts

If you are doing this in the AD group policies put the file in C:\WINNT\sysvol\sysvol\mycarstats.local\Policies\{31B2F340-016D-11D2-****-***********\USER\Scripts\Logon

go to AD user&computers and right click your domain at the top of the tree and go to properties. Go to the group policy tab/ edit/userconfig/windows settings/scripts/logon and add the logon script.

by magarahan

I already closed this question and points were distributed. I appreciate your offer for help but I won't award again. That was not the solution anyway but thanks.

by gperrie

How many domain controllers do you have? If more than one remember the script has to be copied/replicated to all possible logon points or will sometimes run but not other times.

Gavin

by magarahan

I already closed this question and points were distributed. I appreciate your offer for help but I won't award again. That was not the solution anyway but thanks.

This discussion is closed to new replies.