Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Clean up MSCONFIG

    I've noticed that there are numerous duplicate entries listed under the Startup tab of MSCONFIG. Is there a way (or utility) to clean up all these entries? Some are genuine duplicates; others appear to be invalid. On the same topic, I'm looking for a way to boot/ reboot 98 into Normal Mode (not Safe Mode) but bypassing all of the startup entries listed in MSCONFIG. I thought there was a trick with a Shift or Ctrl key to do this, but can't recall it.

    thanks

    Alan

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Clean up MSCONFIG

    Keeping the Shift key down from boot until Windows has started disables startup items.

  4. #3
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Right you are, Hans. Last time I tried this it rebooted to Safe Mode, but this time it worked. The only startup item that fired was the resident AV software. Not sure why this would be, but this one doesn't worry me for the diagnostics I'm trying to carry out.

    cheers

    Alan

  5. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Hi Alan:
    Funny, I thought it was the Ctrl key, but I don't want to reboot right now to test it. Anyhow, on removing invalid or duplicate entries:

    When you disable entries using msconfig/startup tab, the entries are placed in one of the following places:

    <UL><LI>Disabled startup items (off the start menu)
    <LI>HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurre ntVersionRun-
    <LI>HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurr entVersionRun-
    <LI>HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurr entVersionRunServices-[/list]Sometimes programs put the entries back & you take them out again. This causes duplicates. You can go directly to those keys and remove the duplicates. Note that you should not remove the duplicate entry for "LoadPowerProfile", as this is found in both HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVe rsionRun & RunServices. They load at different times.
    Hope this helps,

  6. #5
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Hi Phil

    I think the Ctrl key will bring up the bootup menu and enable a reboot to Safe Mode. The Shift key seems to be the one to disable startup items in normal mode. I wonder if it's possible to emulate this behaviour from a cold boot?

    I had a dig around and discovered some of what you're saying about registry locations for storing these settings. I have a utility which distinguishes where the various (enabled) entries live and they are in either
    Startup (user) or
    Local Machine

    on my system.

    I thought about enabling everything in MSCONFIG to discover the locations of all items, then trying to delete dupes, <big>or</big> trying to delete as much as possible to get a clean state, then re-enable the settings from within the programs that I want at startup. Any suggestions here?

    cheers

    Alan

  7. #6
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Clean up MSCONFIG

    Phil,
    New address for for "Startup List", which is http://www.pacs-portal.co.uk/startup_content.php

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  8. #7
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    <P ID="edit" class=small>(Edited by Phil Rabichow on 08-Nov-03 09:08. to update URL)</P>Hi Alan:
    Go to StartupList & it will tell you what most items in the startup list are for. Anything you delete in the Run-, etc. keys is not going to hurt you. They're just there so you can reverse your decision. I use almost the absolute minimum. For what it's worth, this is what I have in msconfig that starts:

    <table border=1><td align=center valign=top>Item</td><td align=center valign=top>Location</td><td align=center valign=top>Path</td><td valign=top>BHO Cop (optional)</td><td valign=top>Startup Group</td><td valign=top>C:UtilitiesBHOCopBHOCop.exe /q</td><td valign=top>DeleteTempFiles (optional)</td><td valign=top>Startup Group</td><td valign=top>C:WINDOWSCOMMANDDELTREE.EXE /y c:windowstemp</td><td valign=top>ScanRegistry</td><td valign=top>Registry (Machine Run)</td><td valign=top>c:windowsscanregw.exe /autorun</td><td valign=top>TaskMonitor</td><td valign=top>Registry (Machine Run)</td><td valign=top>c:windowstaskmon.exe</td><td valign=top>WheelMouse (this is my mouse software)</td><td valign=top>Registry (Machine Run)</td><td valign=top>C:Program FilesWheel Mouse3DMAIN.EXE -startup</td><td valign=top>LoadPowerProfile</td><td valign=top>Registry (Machine Run)</td><td valign=top>Rundll32.exe powrprof.dll,LoadCurrentPwrScheme</td><td valign=top>SchedulingAgent</td><td valign=top>Registry (Machine Run)</td><td valign=top>C:WINDOWSSYSTEMMSTASK.EXE</td><td valign=top>LoadPowerProfile</td><td valign=top>Registry (Machine Service)</td><td valign=top>Rundll32.exe powrprof.dll,LoadCurrentPwrScheme</td></table>
    I used to have systray, but R2 pointed out that you didn't need that. I haven't missed it. I have a batch file that I run to start other programs, including an antivirus program, before I attempt to connect to the Internet. The few Run-, etc. entries really don't hurt or add to the registry size, so I just leave them.

    Try rebooting & don't press the Ctrl key until just before the Windows GUI starts. On mine, it prevents startup items from loading.
    Hope this helps,

  9. #8
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Thanks for catching this, Dave. I've updated my post.

  10. #9
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Londonderry, Ireland, Northern
    Posts
    156
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Phil - I'm interested in your pre-internet batch file. I wanted to do that, to keep so many TSR programs off memory when not needed, but I can't get McAfee to stop re-writing itself into MSCONFIG. However, I'd like to know whether you have a batch program to unload them again, and if so, how does it work.
    All help gratefully received!

  11. #10
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Clean up MSCONFIG

    The only way to "I can't get McAfee to stop re-writing" is to uninstall it <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  12. #11
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    When I first start, the only things showing in the in the task pane is Explorer & my mouse software. Then before going online, I load my IntStart batch file.

    This is the method to have a batch file that starts all applications whose shortcuts are in a particular folder. If you drop a shortcut in the folder, it's added to the batch file. If you take the shortcut out, it's removed.

    1. Create a folder on the C: drive & give it a name. e.g. IntStart
    2. Right click the desktop & choose New/Shortcut.
    3. For the command line, use
    C:WINDOWSCOMMAND.COM /C FOR %%V IN (C:IntStart*.*) DO START %%V
    4. Click OK. The shortcut will now have an MS-DOS shorcut icon.
    5. Right click & choose Properties/Program tab.
    6. Choose "Close on exit" & Run: "Minimized".

    I load NAV, ZoneAlarm, my internet connection, resource meter, & a few other utilities before going online.

    To close programs, I use EndItAll by Neil Rubenking. It used to be free, but now zdnet has a subscription fee. I last saw it here. However, there is now an EndItAll2. I saw no need to upgrade, as the original works fine. I'm using NAV, not McAfee & it doesn't keep writing itself to startup. However, I unload it separately, as it balks if EndItAll trys to unload it. And I'm not sure about Zone Alarm. Lately, it's been giving me messages preventing me from accessing the Internet unless it's loaded (thinks I'm a hacker).

    Hope this helps,

  13. #12
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Hi Phil

    As always the MVP is 3 steps ahead <img src=/S/grin.gif border=0 alt=grin width=15 height=15>. I thought of both the StartUp Items batch file (I particularly like the way you've implemented it) as well as the CloseApps batch file.

    What would be ideal IMO is to be able to restart windows, say with a commandline switch, that would have the same effect as holding down the Shift key. The switches I can see from win /? do not seem to offer this option, which seems like a bit of an oversight if it's the case. I've never dealt with multiple users/ identities on a PC, but is it possible to load Windows with a different startup configurations in this way? One user with and one user without the "standard" startups?

    Re: closing programs - I have used the original version of EndItAll you mention in the past. I also never migrated to the newer version, because I heard reports that it was bigger, slower and offered little over the functionality of the original. What I'm thinking of is a little commandline program I have, which is part of a <img src=/S/free.gif border=0 alt=free width=30 height=15>ware program called PrcView. It allows for various ways to try to "kill" a process (both nicely and forcibly) and I've found it to be able to do the job, one way or the other, in the past. If I can incorporate these "kills" into a batch file, together with some kind of SendKeys scripting to close any confirmation dialogs etc., then this might represent a good batch file solution.

    That said, I would probably still prefer the option of rebooting to a StartUp-free configuration, with no unreclaimed resources etc... you know, the "nothing beats a reboot" solution to everything <img src=/S/grin.gif border=0 alt=grin width=15 height=15>. Any thoughts on these ideas?

    Alan

  14. #13
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Dallas, Texas, USA
    Posts
    1,680
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    Hi Phil - I notice that your boot sequence includes a line to del the temp files. I used to do that as well until I read somewhere (maybe the Lounge) that this could interfere with the the installation of some programs...

    I think the explanation stated: When you install a new program and part of the installation includes rebooting the machine, the temp folder is a placeholder for the remaining installation files. As some system files can not be replaced while there in use and this is why a reboot is necessary to update certain files. If you clean out the temp directory as the machine reboots, the installation of a new program may not complete properly.

    Does this make sense? And could it be accurate information?
    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  15. #14
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    I've heard the same thing Ricky, and I believe it is a genuine possibility. OTOH, I have seen some programs (not necessarily installers) that reboot the system "on thier own terms" and seem to be able to control what happens when they restart the show. For instance, there's a program called PowerDefrag (I think) that will reboot "clean" and allow Windows defrag to run uninterrupted by background processes. This is the kind of functionality I'd like to hook into, but I'm totally in the dark as to where to even start looking. Clearly, such a reboot is possible. But WRT your original concern, I believe your point is a valid one in the more general arena of program installs.

    Alan

  16. #15
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clean up MSCONFIG

    That is correct and accurate -- and possibly from me! <img src=/S/smile.gif border=0 alt=smile width=15 height=15> Many programs use the Temp folder to hold files that they need to install after you reboot. Therefore, I cannot condone deleting (or cleaning out) the Temp folder early in the boot sequence. Instead, you CAN do it late in the boot sequence and you are fine.

    One of the most frequently used methods to swap files that are "in use" by Windows was to store them in the Temp folder, and then use the wininit.ini file during the boot sequence to move the new files in to the proper place. While it is NOT necessary to use the Temp folder, by convention or habit it was the folder that was used most often. So, it is better to not mess with the Temp folder until after the wininit.ini file has been processed.
    ______________

    And Phil, that is pure Microsoft heresy! Everyone knows you MUST run explorer and systray ALL the time. Even the MSKB tells you that -- in multiple places. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •