Discussion Locked

Unable to run logon scripts

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a client running Win2k adv server with active directory. When I write and apply the logon scripts for the users, the scripts don't run when they log on. All client machines are either XP or 2k. Does anyone have any ideas? Thanks in advancefor your help.

10 replies

by georgevlob

Were the scripts placed in %systemroot%\System32\Repl\Import\Scripts folder?
What type of scripts are they (.bat, vbs, wsh)? If they are vbs or wsh, you must have all the necessary COM objects installed on each workstation for them to work. Let us know which type so that we may give you more specific help.

by huckleberryhound

On your Windows 2000 domain controllers the scripts should be located in C:\winnt\sysvol\sysvol\your_domain\scripts
Replace your_domain with the name of your domain.

Also, what file type are your scripts (ie. BAT, CMD, EXE, VBS)?

If you specified a different location for the sysvol folder during the dcpromo process (such as the D: or E: drive) then you need to make sure that the users have at least the List NTFS right from the root of the drive through the entire path to the scripts folder.

by huckleberryhound

Just to clarify, have you specified the name of the logon script for each user on the Profile tab in the Active Directory Users and Computers tool. Also, you should just have the name of the script in this field (ie. logon.bat) and not the entire path (ie. C:\winnt\sysvol\sysvol\your_domain\scripts\logon.bat).

by chrissaw

Where did you save your login script? It is suppose to be located under WinNT 4.0 here: %systemroot%\System32\Repl\Import\Scripts folder and under W2K here:
%systemroot%\SYSVOL\sysvol\yourdomain.com\scripts.

If you put it in the good placeand it wont work, verify your login script for syntax error.

Hope it help
Christian

by spank

I have the scripts in the correct place and no syntax errors in the .bat script. thanks for you assistance, though.

by m.palex

Were the scripts placed in %systemroot%\System32\Repl\Import\Scripts folder?
What type of scripts you are using(.bat, vbs, wsh)?
Check for the replication.
If not replicated try to force the replication.
Regards.

This discussion is closed to new replies.