Solved

Login script doesn't work

Posted on 2006-06-23
2
166 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
2 Comments
 
LVL 83

Assisted Solution

by:oBdA
oBdA earned 150 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 100 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

772 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