How to create(restore) SysMain service in Windows 7 SP1


  1. Posts : 4
    Windows 7 Ultimate x64 SP1
       #1

    How to create(restore) SysMain service in Windows 7 SP1


    Hi all, is there a way to recreate the SysMain service in windows 7 SP1 because i've stupidly deleted it a while ago using the "sc delete" command in cmd?? I know there is a "sc create" command but i don't know how and if i can use it to restore the SysMain service, and i need it for ReadyBoost...not to say i don't have Superfetch and ReadyBoot, so i would really appreciate your help.

    P.S. I would like to avoid any kind of windows reinstalling.
      My Computer


  2. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Samy, and welcome to Seven Forums.

    If available, you could do a system restore using a restore point dated before you deleted the service to restore it.

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 4
    Windows 7 Ultimate x64 SP1
    Thread Starter
       #3

    Hmm, never thinked to do this...and unfortunately i can't because i don't have a restore point before this happend. Damn

    Anyway thank you very much.
      My Computer


  4. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
       #4

    Well, other than a complete reinstall, you might see if a repair install may be able to restore it. Be sure to backup anything that you do not want to lose first to be on the safe side though.
      My Computer


  5. Posts : 16,161
    7 X64
       #5

    To save you fiddling with sc create - I have it for you - just merge this regfile:

    sysmain.reg
      My Computers


  6. Posts : 4
    Windows 7 Ultimate x64 SP1
    Thread Starter
       #6

    Ok thanks a lot i'll see if it works.
      My Computer


  7. Posts : 2,528
    Windows 10 Pro x64
       #7

    You can, but you'd have to know all of the options to add (just run sc create /? to see what I mean). Or, you can import from a working machine into the registry and reboot that will have those options already configured properly.
      My Computer


  8. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
       #8

    SIW2 said:
    To save you fiddling with sc create - I have it for you - just merge this regfile:

    sysmain.reg
    Even better Simon. I forgot about the registry values.

      My Computer


  9. Posts : 4
    Windows 7 Ultimate x64 SP1
    Thread Starter
       #9

    Sorry to reply so late...I've merged the .reg file and after the first restart everything worked fine, the service started automatically BUT after the second restart the service doesen't start automatically and i if i try to start it manually i can start it for 2-3 times after startup for about 3 to 5 minutes then after the 2nd or 3rd time i can't start it again and i get "Error 2: The system cannot find the file specified." Actually this is the reason i've deleted it the first time. And yet again the same ploblem.

    P.S. I've ran sfc /scannow there were no files missing; sysmain.dll is there in system32 folder.

    Do you have any ideea about how could i fix this?
    Attached Thumbnails Attached Thumbnails How to create(restore) SysMain service in Windows 7 SP1-error-2.jpg  
    Last edited by Samy0806; 11 Dec 2011 at 09:06.
      My Computer


  10. Posts : 3
    Windows 10 64-bit
       #10

    Problem solved


    I had the same problem.

    The issue was not only had I disable SuperFetch in services but I had edited the registry to completely disable prefetch and superfetch as well, as per the instructions on this site:
    SuperFetch - Change Prefetch Data to be Cached

    To fix you need to undo these registry changes

    Go to this registry location:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters

    Edit both EnablePrefetcher and SuperFetcher and set them both to 3.

    Now try to start superfetch in services and it will work.

    Cheers
    Last edited by Brink; 16 Oct 2012 at 12:55. Reason: updated link for the same here
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:21.
Find Us