Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

10 Dec 2011   #1

Windows 7 Ultimate x64 SP1
 
 
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 System SpecsSystem Spec
.

10 Dec 2011   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
10 Dec 2011   #3

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
.


10 Dec 2011   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
10 Dec 2011   #5

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

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

sysmain.reg


My System SpecsSystem Spec
10 Dec 2011   #6

Windows 7 Ultimate x64 SP1
 
 

Ok thanks a lot i'll see if it works.
My System SpecsSystem Spec
10 Dec 2011   #7

Windows Server 2008 R2
 
 

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 System SpecsSystem Spec
10 Dec 2011   #8
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Quote   Quote: Originally Posted by SIW2 View Post
To save you fiddling with sc create - I have it for you - just merge this regfile:

Attachment 187708
Even better Simon. I forgot about the registry values.

My System SpecsSystem Spec
11 Dec 2011   #9

Windows 7 Ultimate x64 SP1
 
 

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 Images
 
My System SpecsSystem Spec
16 Oct 2012   #10

Windows 7 Home Premium 64bit
 
 
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
My System SpecsSystem Spec
Reply

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




Thread Tools




Our Sites

Site Links

About Us

Find 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 11:29 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33