PBA bug - domain-settings/netlogon scripts not running
Posted: Mon Feb 28, 2011 2:09 am
I have been trying to use the logon.bat script to mount user drives and apply Group Policy settings. However, the script shares.rb which generates smb.conf does not point to logon.bat, but rather %U.bat. Is this a bug?
I tried editing smb.conf first, but found that any changes I made in the [global] section were overwritten upon reboot by the shares.rb script. So I tried editing shares.rb but changes there were also overwritten on reboot. As a workaround, I wrote a shell script to copy logon.bat to %U.bat for each username - a clunky manual solution.
Basically, I think the code should default to logon script =logon.bat, or automatically create %U.bat files for each user.
Code: Select all
[global]
domain logons = yes
logon path = \\%L\profiles\%U
logon drive = q:
logon home = \\%N\%U
logon script = %U.bat
I tried editing smb.conf first, but found that any changes I made in the [global] section were overwritten upon reboot by the shares.rb script. So I tried editing shares.rb but changes there were also overwritten on reboot. As a workaround, I wrote a shell script to copy logon.bat to %U.bat for each username - a clunky manual solution.
Basically, I think the code should default to logon script =logon.bat, or automatically create %U.bat files for each user.