Win2008 Logon Script Won't Run

reicherb

Platinum Member
Nov 22, 2000
2,122
0
0
I'm preparing for an eDir to AD (Win2008) migration. I'm having an issue getting an executable to launch during logon. (I've got a lot to learn)

I put authenticat.bat in both of the following locations on my primary domain controller (BRDC1)

C:\Windows\SYSVOL\sysvol\birchrun.local\scripts on BRDC1
C:\Windows\SYSVOL\sysvol\birchrun.local\Policies\{7C5CE395-3845-4788-9C1F-F3ACE9FE700B}\User\Scripts\Logon

I put the following login script in User Configuration\Policies\Windows Settings\Scripts (Logon/Loggoff) of a GPO at the root of my domain
\\brdc1\NETLOGON\authenticat.bat

authenticat.bat contains:
@echo off
start \\birchrun.local\netlogon\authenticat.exe RA[198.111.214.92]
pause

It doesn't matter what user I logon as, the script never launches. A command prompt never opens, I never get any error messages.

Any clues what I'm missing?

Thanks.
 

Rubycon

Madame President
Aug 10, 2005
17,768
485
126
I know this sounds silly but did you put the logon script file name in the logon script field under the user profile tab?

 
Last edited:

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
I know this sounds silly but did you put the logon script file name in the logon script field under the user profile tab?


Sorry Rubycon but that is the wrong place for 2003+ That is for really old versions of windows.



-----


CWindows\SYSVOL\sysvol\birchrun.local\scripts on BRDC1
CWindows\SYSVOL\sysvol\birchrun.local\Policies\{ 7C5CE395-3845-4788-9C1F-F3ACE9FE700B}\User\Scripts\Logon

I put the following login script in User Configuration\Policies\Windows Settings\Scripts (Logon/Loggoff) of a GPO at the root of my domain
\\brdc1\NETLOGON\authenticat.bat

authenticat.bat contains:
@echo off
start \\birchrun.local\netlogon\authenticat.exe RA[198.111.214.92]
pause


#1, logon scripts cannot be 'interactive' or they won't run (pause in this case)

#2 when you add a script there will be an 'open folder' button, you place the logon script there. DFS / FRS will take care of replicating the script. You reference it simply by the name without any pathing information. IE it should just show: authentivat.bat in the window.

#3 Why the root of the domain? Are you 100% you want this running on domain controllers and member servers? You should create a users OU and attach the script there.

here is a step by step:

http://www.petri.co.il/setting-up-logon-script-through-gpo-windows-server-2008.htm
 
Last edited:

reicherb

Platinum Member
Nov 22, 2000
2,122
0
0
#1, logon scripts cannot be 'interactive' or they won't run (pause in this case)
I removed the pause and it still doesn't work. I did verify that if I browse to the file from a workstation that it works fine.

#3 Why the root of the domain? Are you 100% you want this running on domain controllers and member servers? You should create a users OU and attach the script there.
I used the delegation tab to exclude the DCs and other servers. It should run everywhere else.

It looks like I'm doing everything right...
 

reicherb

Platinum Member
Nov 22, 2000
2,122
0
0
I got it. I was putting the path to the file in the policy. I changed it to just the file name and it works now.

Thanks.
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Hmm works for 2008 R2.

It works but it is considered 'legacy.' It is a handy place to stick a script to run for one user. But for group management and the like it is easier to use GPO.
 
Last edited:

Rubycon

Madame President
Aug 10, 2005
17,768
485
126
It works but it is considered 'legacy.' It is a handy place to stick a script to run for one user. But for group management and the like it is easier to use GPO.

Yes I was just saying one can try and it would show quickly if it were a permissions issue for domain members, etc.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |