?
Solved

Login script doesn't work

Posted on 2006-06-23
2
Medium Priority
?
170 Views
Last Modified: 2010-04-13
Hi Experts,

I'm trying to run a test login script on a Windows 2000 domain controller from the properties of an admin account. Its a very bacsoc script on c:\test.bat and it just sends one net send on the network. The script it self is correct, the and I'm tring to run it by logging in to the same machine so that there is no netwroking issue invole. the user has the full control on the directory but for some staringe reason the script doesn't work. Anyone can please help me to troubleshoot this problem.

Thanks,
   
0
Comment
Question by:Impex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

Assisted Solution

by:oBdA
oBdA earned 600 total points
ID: 16971078
Scripts defined in the user's profile *have* to go into the netlogon share at %Systemroot%\sysvol\sysvol\your.domain.name\scripts.
Then just enter the name of the script (no path!) in the logon script box.
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 400 total points
ID: 16971853
Legacy scripts can often run "hidden" in Windows 2000 by default. There is a property in group policy under administrative templates that can control that -- maybe it is running but hidden, does the command prompt black window appear at all?

In any case as 0bda says the path should just be test.bat and it should be in the above directory.  If you start | run \\severname\netlogon you should see your file there for it to work properly.

If you are running Windows 200x network I would advise using Group Policy scripts anyhow.

Right click on the Ou containing your users, policies, and add a new policy
Drill down under User configuration until you come to Login / Logoff scripts
There you can define the scripts that run when users under that OU logon and logoff.

There are also startip and shutdown scripts which can be run against computers rather than users if you drill down under the computer configuration part.

Steve
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
The Summer 2017 Scholarship Winners have been announced!
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question