+ Post New Thread
Results 1 to 4 of 4
How do you do....it? Thread, Startup Script not completed before login in Technical; I have a startup script that uninstalls mcafee: objShell.Run ("C:\PROGRA~1\McAfee\MANAGE~1\Agent\myinx /Script=C:\PROGRA~1\McAfee\MANAGE~1\VScan\vsasap.in x /Section=DefaultUninstall /quiet") It works on its own. It ...
  1. #1
    duxbuz's Avatar
    Join Date
    Jan 2010
    Posts
    310
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Blog Entries
    1
    Rep Power
    0

    Startup Script not completed before login

    I have a startup script that uninstalls mcafee:

    objShell.Run ("C:\PROGRA~1\McAfee\MANAGE~1\Agent\myinx /Script=C:\PROGRA~1\McAfee\MANAGE~1\VScan\vsasap.in x /Section=DefaultUninstall /quiet")

    It works on its own.

    It also gives me a dialog box "do you wish to uninstall mcafee etc" if ran without /quiet switch running as a startup script. This suggests it works in the startup script.


    But it does not appear to work properly, as a startup script. I previously had a similair script to uninstall google toolbar, this worked fine, but was slightly different as it was written:

    objshell.run """C:\Program Files\Google\Google Toolbar\Component\GoogleToolbarManager_9DE96A29E72 1D90A.exe""/uninstall" ,,True

    like i said though the script does perform the job if ran whilst logged in.

    Also as i said, if ran without /quiet, in the startup script, i can see the dialog box

    Am not sure why this would happen.

    I have tried various settings in gpmc like stated here: Scripts Extension Tools and Settings: Group Policy

    Run logon scripts synchronously
    Run startup scripts visible

    It appears that the script process is not being completed. Or its not working, but with waht i stated earlier things seem to be running ok in some respects.

    Anyone help?

    Thanks.

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,210
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    i assume its because the script thats running at startup is finishing the uninstalers its calling are running on their own and are not tied back to the main script so the main script goes run prog1 done run prog 2 done rather than run prog one wait for control to be returned run prog 2 and so on

  3. #3
    duxbuz's Avatar
    Join Date
    Jan 2010
    Posts
    310
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Blog Entries
    1
    Rep Power
    0
    It looks like you are right. I added the ,,true and removed the parenthesis and it now waits.

    I had tried this previous, removing parenthesis, but i was getting syntax errors.

    Only issue now is that its nt running at startup, its running after I log in. It says running startup scripts, after I login. Weird. Might be something to do with the synchronous thing i set in gpmc.

    Thanks for response.

  4. #4

    sparkeh's Avatar
    Join Date
    May 2007
    Posts
    6,259
    Thank Post
    1,138
    Thanked 1,463 Times in 980 Posts
    Blog Entries
    22
    Rep Power
    457
    Have you enabled synchronous processing?
    If not try setting: Computer Configuration\Administrative Templates\System\Logon\ "Always wait for the network at computer startup and logon"

    Sounds like users are logging in before policies are applied which (in my opinion) is never a good idea.

SHARE:
+ Post New Thread

Similar Threads

  1. Startup script woes
    By witch in forum Coding
    Replies: 14
    Last Post: 17th March 2010, 06:59 PM
  2. Startup Script Running after login
    By glennda in forum Windows
    Replies: 6
    Last Post: 17th November 2009, 11:54 PM
  3. Startup Script
    By Chuckster in forum Windows
    Replies: 5
    Last Post: 26th February 2009, 12:53 PM
  4. Installing GoogleSketchup 6 via startup script
    By markwilliamson2001 in forum Windows
    Replies: 3
    Last Post: 4th March 2008, 07:26 PM
  5. RM CC3 Startup Script
    By randle in forum Windows
    Replies: 4
    Last Post: 30th July 2007, 02:56 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
  •