Discussion:
[Samba] Samba AD Netlogon via GPO
(too old to reply)
basti via samba
2017-03-08 10:10:01 UTC
Permalink
Hello,
I try to use netlogon script on my samba AD via GPO.

I have some shares

[netlogon]
path = /var/lib/samba/sysvol/samdom.example.com/scripts
read only = no

[sysvol]
path = /var/lib/samba/sysvol/
read only = no

In RSAT I have add a new GPO

Userconfig -> Windows Settings -> Skripts

I have try
\\samdom.example.com\Sysvol\samdom.example.com\scripts\netlogon\login.bat

\\DC1\netlogon\login.bat

logon.bat

as scriptname. The script isn't execute.
gpresult say that it is done.

Whats wrong here?

Best regards,
Basti
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Marc Muehlfeld via samba
2017-03-08 16:40:02 UTC
Permalink
Hi Basti,
Post by basti via samba
[netlogon]
path = /var/lib/samba/sysvol/samdom.example.com/scripts
read only = no
In RSAT I have add a new GPO
Userconfig -> Windows Settings -> Skripts
I have try
\\samdom.example.com\Sysvol\samdom.example.com\scripts\netlogon\login.bat
\\DC1\netlogon\login.bat
logon.bat
If you set a logon script for a user in the user's properties
(scriptPath attribute), then you store it on the netlogon share.

When using GPOs for login scripts, the files are stored in a
subdirectory of the GPO. For example, for a per-user logon script GPO:
\\{domain}\sysvol\{domain}\Policies\{GUID}\User\Scripts\Logon\

The script name you enter in the Group Policy Editor, is just
"login.bat" or you can simply select it after clicking the "Browse" button.

Additionally, something you should pay attention to when running Win8:
https://support.microsoft.com/en-us/help/2895815/logon-scripts-do-not-run-for-five-minutes-after-a-user-logs-on-to-a-windows-8.1-based-computer
I don't know if the 5-min delay is also default on other versions.
Please let me know if you use a different version.

By the way, for mapping drives, you can also use the GPO "Drive Maps"
feature. This was some advantages, such as "use first available drive
letter", etc.


Regards,
Marc
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Loading...