Author Topic: Netlogon? Scripts  (Read 436 times)

killmasta93

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +14/-0
    • View Profile
Netlogon? Scripts
« on: December 09, 2021, 01:10:15 am »
Hi
I was wondering if zentyal is compatible with netlogon script
Currently i have a windows server 2012r2 and were using netlogon which is a script, this is part of the script

Code: [Select]
@echo off

rem desconecte las unidades de red
net use f: /delete
net use g: /delete
net use h: /delete
net use i: /delete
net use j: /delete
net use k: /delete
net use l: /delete
net use m: /delete
net use n: /delete
net use o: /delete
net use p: /delete
net use q: /delete
net use r: /delete
net use s: /delete
net use t: /delete
net use u: /delete
net use v: /delete
net use x: /delete
net use y: /delete

if not exist g:\ net use G: "\\192.168.3.81\unidadg"

if "%1" == "administrador"         goto grupo_tecnologia


:grupo_tecnologia
net use f: "\\192.168.3.81\Manifiestos"
net use H: "\\192.168.3.81\TI"


:fin
cls
exit


when i try to access the zentyal server though the shares dont see the netlogon folder

Thank you

killmasta93

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +14/-0
    • View Profile
Re: Netlogon? Scripts
« Reply #1 on: December 09, 2021, 05:05:43 am »
so it seems an issue with the netlogon it says that i do now have permission which is odd any ideas?

turalyon

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +11/-0
    • View Profile
Re: Netlogon? Scripts
« Reply #2 on: December 09, 2021, 12:27:24 pm »
Hi,

According the configuration file '/etc/samba/smb.conf', the logon directory is located at '/var/lib/samba/sysvol/domain_name/scripts'. You could try to change temporarily the permissions or change the group owner to 'domain users'.

---
“This world is ours, and by the Holy Light we will keep it safe, now and forever".

killmasta93

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +14/-0
    • View Profile
Re: Netlogon? Scripts
« Reply #3 on: December 09, 2021, 03:43:04 pm »
Thanks for the reply,
so i fixed the permission issue
currently logged in as admin in the windows machine but not getting the net logon im attaching pictures

https://imgur.com/rGULNnK.png

turalyon

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +11/-0
    • View Profile
Re: Netlogon? Scripts
« Reply #4 on: December 13, 2021, 11:37:27 am »
Hi,

Did you do any troubleshooting actions after you set the permissions? Below you have two common actions to debug issues with GPOs:

1. Generating an html report. The command must be executed in the client that has the issue:

Code: [Select]
## Detailed output
gpresult /H Desktop\GPO_results.html /F

2. Generate a detailed report through 'Group Policy Result' from 'Group Policy Management'. You need to use this option with an administrator user but setting the computer and the username that has issues.

Hope it helps.

--
“This world is ours, and by the Holy Light we will keep it safe, now and forever"