Luca Bertoncello
2016-Apr-12 15:57 UTC
[Samba] [Half OT?] Waiting for completion of Startupscript before logon
Rowland penny <rpenny at samba.org> schrieb:> Can you be a bit more specific, it sounds like you mean users can logon > somewhere even though Samba isn't running, or do you mean that windows > users are not running a logon script when they log in.No, of course Samba runs... I mean, Windows boots and starts a Startup-Script (or will shutdown and call a Shutdown-Script). These Scripts will be executed, but in the case of the Startup-Script the user can Logon even if the Startup-Script didn't complete. The script works in background and will not be displayed. Any idea, how can I force the execution in foreground and DON'T allow the user to log on until the Startup-Script completes? Thanks Luca Bertoncello (lucabert at lucabert.de)
Rowland penny
2016-Apr-12 16:19 UTC
[Samba] [Half OT?] Waiting for completion of Startupscript before logon
On 12/04/16 16:57, Luca Bertoncello wrote:> Rowland penny <rpenny at samba.org> schrieb: > >> Can you be a bit more specific, it sounds like you mean users can logon >> somewhere even though Samba isn't running, or do you mean that windows >> users are not running a logon script when they log in. > No, of course Samba runs... > I mean, Windows boots and starts a Startup-Script (or will shutdown and call > a Shutdown-Script). > These Scripts will be executed, but in the case of the Startup-Script the > user can Logon even if the Startup-Script didn't complete. > The script works in background and will not be displayed. > > Any idea, how can I force the execution in foreground and DON'T allow the > user to log on until the Startup-Script completes? > > Thanks > Luca Bertoncello > (lucabert at lucabert.de) >That is a new one, most peoples problem is getting them to run :-D Any way, not sure, but you could try this: https://social.technet.microsoft.com/Forums/windowsserver/en-US/a4834aba-1157-4528-a535-a6afd90ec843/how-to-delay-logon-ctrlaltdel-screen-until-startup-script-via-gpo-completes?forum=winserverGP Rowland
Luca Olivetti
2016-Apr-12 16:28 UTC
[Samba] [Half OT?] Waiting for completion of Startupscript before logon
El 12/04/16 a les 17:57, Luca Bertoncello ha escrit:> Any idea, how can I force the execution in foreground and DON'T allow the > user to log on until the Startup-Script completes?There's a GPO for that (again, reverse translated, so be careful). Under Default domain policy -> Directives -> Administrative templates -> System -> Scripts enable "Synchronous execution of session startup scripts" disable "Asynchronous execution of startup scripts" enable "Execute startup scripts in visible manner" Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
Luca Bertoncello
2016-Apr-12 16:31 UTC
[Samba] [Half OT?] Waiting for completion of Startupscript before logon
Luca Olivetti <luca at wetron.es> schrieb:> El 12/04/16 a les 17:57, Luca Bertoncello ha escrit: > > > Any idea, how can I force the execution in foreground and DON'T allow the > > user to log on until the Startup-Script completes? > > There's a GPO for that (again, reverse translated, so be careful). > > Under Default domain policy -> Directives -> Administrative templates -> > System -> Scripts > > enable "Synchronous execution of session startup scripts" > disable "Asynchronous execution of startup scripts" > enable "Execute startup scripts in visible manner"Thanks, it was that! I got this information from this page: http://searchwindowsserver.techtarget.com/tip/Using-Group-Policy-Objects-to-manage-script-execution Regards Luca Bertoncello (lucabert at lucabert.de)
Marc Muehlfeld
2016-Apr-12 17:00 UTC
[Samba] [Half OT?] Waiting for completion of Startupscript before logon
Hello Luca, Am 12.04.2016 um 17:57 schrieb Luca Bertoncello:> I mean, Windows boots and starts a Startup-Script (or will shutdown and call > a Shutdown-Script). > These Scripts will be executed, but in the case of the Startup-Script the > user can Logon even if the Startup-Script didn't complete. > The script works in background and will not be displayed. > > Any idea, how can I force the execution in foreground and DON'T allow the > user to log on until the Startup-Script completes?If I search for "gpo wait for logon script" on Google, this is the first result: https://msdn.microsoft.com/en-us/library/ms811586.aspx Is this what you're looking for? Regards, Marc