none
Cannot apply Logon Script Windows Server 2008 R2

    Question

  • Hello everyone. 

    below is simple command line that needed to be applied to all users in a domain

    reg import \\ad1\NETLOGON\Logon.reg

    I wrapped this "code: into simple txt file and renamed it logon.bat.

    I copied logon.bat into \\domain.local\SysVol\domain.local\Policies\{A16AB93E-F826-422F-88FD-715C63B79FC5}\User\Scripts\Logon folder also copied into C:\Windows\SYSVOL\sysvol\domain.local\scripts (NETLOGON) folder

    Created new GPO and linked it to OU, configured as on picture

    Batch file work on double click. But I can't make it work through GPO. Not even when I type file name in Logon Script field on Profile tab of a user object in ADUC snapin.

    In short, I've read tons of articles about logon script. For example this article But seems I am missing something

    where is my mistake ? 

    HTH


    Vusal M. Dadashzadeh




    Saturday, January 10, 2015 8:27 PM

Answers

  • > Created new GPO and linked it to OU, configured as on picture
     
    Click "Show files" - this opens the folder where your Batch file MUST be
    if you do not enter a full path...
     

    Martin

    Mal ein GUTES Buch über GPOs lesen?

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))
    Monday, January 12, 2015 1:05 PM
  • Hi Vusal,

    >>Batch file work on double click. But I can't make it work through GPO

    Based on the description, you can run command gpresult/h gpreport.html to collect group policy result report to check how group policy settings are applied. Besides, you can also check event logs in Event Viewer to see if some related events were logged.

    Best regards,
    Frank Shen

    Tuesday, January 13, 2015 7:59 AM
    Moderator
  • Can you find out a problematic machine and see whether user is able to access / see the script file , which has pushed via GPO. ?

    Regards, Prabhu

    Tuesday, January 13, 2015 12:28 PM

All replies

  • Hello everyone. 

    below is simple command line that needed to be applied to all users in a domain

    reg import \\ad1\NETLOGON\hesabatAvis.reg

    I wrapped this "code: into simple txt file and renamed it logon.bat.

    I copied logon.bat into \\domain.local\SysVol\domain.local\Policies\{A16AB93E-F826-422F-88FD-715C63B79FC5}\User\Scripts\Logon folder also copied into C:\Windows\SYSVOL\sysvol\domain.local\scripts (NETLOGON) folder

    Created new GPO and linked it to OU, configured as on picture

    Batch file work on double click. But I can't make it work through GPO. Not even when I type file name in Logon Script field on Profile tab of a user object in ADUC snapin.

    where is my mistake ? 

    HTH


    Vusal M. Dadashzadeh

    Saturday, January 10, 2015 8:16 PM
  • > Created new GPO and linked it to OU, configured as on picture
     
    Click "Show files" - this opens the folder where your Batch file MUST be
    if you do not enter a full path...
     

    Martin

    Mal ein GUTES Buch über GPOs lesen?

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))
    Monday, January 12, 2015 1:05 PM
  • Hi Vusal,

    >>Batch file work on double click. But I can't make it work through GPO

    Based on the description, you can run command gpresult/h gpreport.html to collect group policy result report to check how group policy settings are applied. Besides, you can also check event logs in Event Viewer to see if some related events were logged.

    Best regards,
    Frank Shen

    Tuesday, January 13, 2015 7:59 AM
    Moderator
  • Can you find out a problematic machine and see whether user is able to access / see the script file , which has pushed via GPO. ?

    Regards, Prabhu

    Tuesday, January 13, 2015 12:28 PM