Solved

Login script doesn't work

Posted on 2006-06-23
2
164 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 82

Assisted Solution

by:oBdA
oBdA earned 150 total points
Comment Utility
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
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

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…
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now