Author Topic: [SOLVED] Samba PDC - LOGON.BAT cannot run  (Read 11016 times)

jan.rok

  • Zen Apprentice
  • *
  • Posts: 27
  • Karma: +2/-0
    • View Profile
[SOLVED] Samba PDC - LOGON.BAT cannot run
« on: October 23, 2012, 02:21:09 pm »
Hallo,
I have Zentyal 3.0.3 as PDC for LAN with Windows 7 Prof.

My loginscript is placed in \\server\netlogon\, name is logon.bat.

I can this logon.bat run only manually - this working.
But I login to the PC using PDC, it didnt works at all.

For my tests is in login.bat only:
Code: [Select]
echo on
pause

But I login to the PC using PDC, it didnt works at all. I have only home directory H:\.
Why?

Thanks very much for help.
J.R.



« Last Edit: October 23, 2012, 08:34:52 pm by jan.rok »

jan.rok

  • Zen Apprentice
  • *
  • Posts: 27
  • Karma: +2/-0
    • View Profile
Re: Samba PDC - LOGON.BAT cannot run
« Reply #1 on: October 23, 2012, 08:34:34 pm »
I have any solution (for Zentyal 3.0 with Samba4):

1. Place LOGIN.BAT into \\server\netlogon (/var/lib/samba/sysvol/<domain_name>/scripts)
2. On Windows station as Domain Administrator install "Windows Remote Administration Tools" (see http://wiki.samba.org/index.php/Samba4/HOWTO#Viewing_Samba_4_Active_Directory_object_from_Windows).
3. Run " Active Directory Users and Computers Snap-In" (dsa.msc from Command Line).
3. For each user in Active Directory set login script (Expand <domain_name> tree --> Users, select any users, open Properties, select Profile tab, enter LOGIN.BAT


freeoli

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] Samba PDC - LOGON.BAT cannot run
« Reply #2 on: November 27, 2012, 02:32:53 pm »
Thank you.

When can i set this option to all user? Or user teamplate?