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

Login script doesn't work

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
Impex
Asked:
Impex
2 Solutions
 
oBdACommented:
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
 
Steve KnightIT ConsultancyCommented:
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

[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.

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