Windows Thread, Synchronous logon scripts - FFS!!! in Technical; Not sure whether this should be here or in the FFS area. We have been having probs with slow logins ...
-
26th June 2006, 11:09 PM #1 Synchronous logon scripts - FFS!!!
Not sure whether this should be here or in the FFS area. We have been having probs with slow logins and logon stuff not being fully applied. Reading up on MS suggests running the logon scripts synchronously, so that they all have to finish before the PC can be used - seems a good idea...
However, it becomes apparent after a while that certain bits of the scripts no longer actually work (eg TerminatorX which stops the kids running naughties). After much faffing about and days of testing each part of the scripting process - it appears that running the scripts synchronously has the effect of killing off any child processes when the script finishes - great what a gotcha - advise me to run synchronously so that the scripts will apply properly - but if you do - kill off the processes that the scripts kick off - brilliant - a work of genius!
Further searching on MS after I discover this shows that this is not a problem - but a design feature.
Any body got a work round that leaves my scripts working??
-
-
IDG Tech News
-
27th June 2006, 06:32 AM #2 Re: Synchronous logon scripts - FFS!!!
KLUDGE ALERT
I'm ashamed of myself for suggesting it but you could make your script schedule a task that runs once (i.e. now+2 seconds) then deletes itself. I've never scripted the creation of scheduled tasks, but everything's possible.
-
-
27th June 2006, 08:44 AM #3 Re: Synchronous logon scripts - FFS!!!
You could use the 'start' command to run the command in a seperate process.
-
-
27th June 2006, 08:51 AM #4 Re: Synchronous logon scripts - FFS!!!

Originally Posted by
Geoff You could use the 'start' command to run the command in a seperate process.
I was using the start command - which is one of the reasons it took me a long while to find the problem - it just didn't seem possible that it would get chopped off
-
-
27th June 2006, 02:46 PM #5 Re: Synchronous logon scripts - FFS!!!
You could run the process as a Windows service using that MS tool whose name I have forgotten
-
-
27th June 2006, 03:13 PM #6 Re: Synchronous logon scripts - FFS!!!
What you really need to do is work out why the policy isn't applying properly. Do you have the option enabled to make windows wait for the network before it logs in?
-
-
27th June 2006, 09:59 PM #7 Re: Synchronous logon scripts - FFS!!!
at the risk of sounding stupid, can't you run the critical scripts [that prevent users geting up to no good] first and less important stuff like adding printers last [maybe frustrating]? - is that an option?
-
-
28th June 2006, 09:11 AM #8 Re: Synchronous logon scripts - FFS!!!

Originally Posted by
mark at the risk of sounding stupid, can't you run the critical scripts [that prevent users geting up to no good] first and less important stuff like adding printers last [maybe frustrating]? - is that an option?
Yeah - but my moan was that as soon as the script finishes - any child processes are terminated without warning - so the prevention programs that are started simply end. I wasn't expecting a solution as MS say this "works as designed" - but it seems flippin daft to me!
-
-
28th June 2006, 01:56 PM #9 Re: Synchronous logon scripts - FFS!!!
Hmm hate to say it but I would not even bother with terminatorx when you could just use proper group policy file execution paths to stop them running the vast amount of things and it also gets around a process sitting in the system.
But thats more of a side point, if you must use terminatorx I would say roll out a package that uses the machine run area of the registry to start it up, or even just create your own service to run the app although this does mean it probably wont be executing as the logged in user but if it reports back the useful data it would be fine.
If you wanted to be sneakier you could just get the script to create a lnk to the terminator app on there startup folder regardless of its existance. It would then run after the scripts and be running as the current user 
Just depends on your network alot matey though.
-
SHARE:
Similar Threads
-
By mmoseley in forum Windows
Replies: 1
Last Post: 24th December 2007, 12:46 AM
-
Replies: 2
Last Post: 12th September 2007, 06:23 PM
-
By woody in forum Windows Vista
Replies: 6
Last Post: 30th January 2007, 04:32 PM
-
By Kyle in forum How do you do....it?
Replies: 17
Last Post: 13th October 2006, 07:54 AM
-
By british-wave in forum How do you do....it?
Replies: 14
Last Post: 15th February 2006, 03:28 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules