So we decided to setup a server here at work since our needs are growing. We built a computer and installed Windows 2003 Server Standard Edition with SP2. I installed active directory, dhcp, and dns with the nifty wizard at setup. We have several different departments with different mapings for printers. So I setup two different OUs lets just call one North and the other South. To test them out i made a simple logon.bat file which consisted of
@echo Hello World!!
@pause
which would show me that it was working as I had to hit any key to continue. I went and setup a GPO for the OU But to no avail I cant get it to work. I even put the logon.bat in their profile it still doesnt run. I added the maping to the default gpo for the entire domain and still nothing!! Here is what I used to help me out
Logon scripts can also be configured in Group Policy. However, Group Policy only applies to clients with Windows 2000 or above. The setting in Group Policy is User Configuration, Windows Settings, Scripts (Logon/Logoff), Logon. Best practice is to copy the file you want for the Logon script to the Windows clipboard, open the Logon setting in the Group Policy editor, press the Show Files... button, and paste the desired file in the dialog. You can select the file and edit it in this dialog as well. This is easier than navigating in Windows Explorer to the folder where Group Policy Logon scripts are saved. However, if you do have to navigate to the folder, the path on the Domain Controller is:
%SystemRoot%\sysvol\sysvol\<domain DNS name>\<policy GUID>\user\scripts\logon
This server has nothing else done to it or setup other than what I have said. This is driving me nuts as it should be something so simple. The clients are Windows 2000 and Windows XP. Please help!!![]()
-
Follow the KB article, sub section logon/logoff scripts
http://support.microsoft.com/kb/250842 -
All i can say is make sure the policy is linked to the correct OU and that the users who should be affected by it are in the correct OU as well.....i really never did any tweaking with startup/logon scripts so i don't know much about it....
Oh, and a gpupdate /force command always help. And a gpresult will show u all the policies applied on the server..... -
well i figured it out myself after messing around under the user, administrative templates,system, scripts i had to enable run logon scripts synchronously, run log on scripts visible. Once i did this it worked like a charm!!
-
Great i learnt something!
-
yeah, you have to turn on a GPO that displays the output of the logon script. That gets people.
Windows 2003 Server Logon Scripts not running
Discussion in 'Windows OS and Software' started by BRPCADMIN, Jun 2, 2008.