+ Post New Thread
Results 1 to 9 of 9
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 ...
  1. #1

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,264
    Thank Post
    55
    Thanked 284 Times in 190 Posts
    Rep Power
    135

    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??

  2. #2
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34

    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.

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Synchronous logon scripts - FFS!!!

    You could use the 'start' command to run the command in a seperate process.

  4. #4

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,264
    Thank Post
    55
    Thanked 284 Times in 190 Posts
    Rep Power
    135

    Re: Synchronous logon scripts - FFS!!!

    Quote 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

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,597
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    183

    Re: Synchronous logon scripts - FFS!!!

    You could run the process as a Windows service using that MS tool whose name I have forgotten

  6. #6
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,491
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114

    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?

  7. #7
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    271
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    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?

  8. #8

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,264
    Thank Post
    55
    Thanked 284 Times in 190 Posts
    Rep Power
    135

    Re: Synchronous logon scripts - FFS!!!

    Quote 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!

  9. #9

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,777
    Thank Post
    960
    Thanked 1,378 Times in 842 Posts
    Blog Entries
    1
    Rep Power
    456

    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:
+ Post New Thread

Similar Threads

  1. Logon scripts
    By mmoseley in forum Windows
    Replies: 1
    Last Post: 24th December 2007, 12:46 AM
  2. Mac Logon Scripts
    By atfnet in forum Mac
    Replies: 2
    Last Post: 12th September 2007, 07:23 PM
  3. Vista isn't running logon scripts
    By woody in forum Windows Vista
    Replies: 6
    Last Post: 30th January 2007, 04:32 PM
  4. What do you use for your logon scripts.
    By Kyle in forum How do you do....it?
    Replies: 17
    Last Post: 13th October 2006, 08:54 AM
  5. God Dam Logon Scripts
    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
  •