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 enable memdiag on every startup?

31 Oct 2010   #1

Windows 7 Home Premium 64bit
 
 
How to enable memdiag on every startup?

Hi, I have an odd memory problem (it started 6 months after the last hardware change):
The memory gets faulty, if my PC stays offline for more than 8-14 hours. This is fixed by running memdiag on startup, seeing the error msg after only 1 sec, turning PC off and slightly nudging both memory modules.

I dont have other modules or MBs for testing, so my only option is to run memdiag for 5 seconds on every startup, to see if there is an error.

Can somebody tell me, how to enable memdiag on every startup?
I only know this command: bcdedit /bootsequence {memdiag} /addlast
But this activates memdiag only on the next startup, not all. How do I make it permanent?

(If somebody has an idea for the memory problem (I tried cleaning and changing slots), you are welcome to post your idea.)

My System SpecsSystem Spec
.

31 Oct 2010   #2

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, clean install, upgrade disc
 
 

I have created a new task only once. It looks difficult but it really is easy.
Task Scheduler - Create New Task
My System SpecsSystem Spec
31 Oct 2010   #3

Windows 7 Home Premium 64bit
 
 

Hi richc46,

Thank you for your good idea. I created a .BAT with "bcdedit /bootsequence {memdiag} /addlast", but the task manager responds with the error code 0x8007051F. Googling it revealed very little. I may have to login as an admin to make it work, but working as an admin is of course not a solution.

Any ideas how to fix the error or how to use bcdedit (or any other way) to run memdiag?
My System SpecsSystem Spec
.


31 Oct 2010   #4

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Quote   Quote: Originally Posted by arti View Post
Hi richc46,

Thank you for your good idea. I created a .BAT with "bcdedit /bootsequence {memdiag} /addlast", but the task manager responds with the error code 0x8007051F. Googling it revealed very little. I may have to login as an admin to make it work, but working as an admin is of course not a solution.

Any ideas how to fix the error or how to use bcdedit (or any other way) to run memdiag?
Try creating a scheduled task with trigger as "When the computer starts". For the program/script, browse to C:\windows\system32, then select MdSched.exe.
My System SpecsSystem Spec
31 Oct 2010   #5

Windows 7 Ultimate x86
 
 

Quote:
I may have to login as an admin to make it work, but working as an admin is of course not a solution.
If that's only used to boot into, you could always log of admin and log into your standard user account.
Adds just another minute or so.

-DG
My System SpecsSystem Spec
31 Oct 2010   #6

Windows 7 Home Premium 64bit
 
 

Thanks a lot for all your help! I found the solution with trial and error:

Here for others who google it:

- select "if user is logged in" on the first page
- trigger: "When the computer starts" & delay by one minute

If it is not delayed, it does not work for me. Maybe the script is executed before other required services are.
I hope this helps others.

Unless someone has an idea for my memory problem, this issue is solved.
My System SpecsSystem Spec
18 Sep 2011   #7

Windows 7 Pro 32-bit
 
 
Late Solution, but I figured it out

Quote   Quote: Originally Posted by arti View Post
Hi, I have an odd memory problem (it started 6 months after the last hardware change):
The memory gets faulty, if my PC stays offline for more than 8-14 hours. This is fixed by running memdiag on startup, seeing the error msg after only 1 sec, turning PC off and slightly nudging both memory modules.

I dont have other modules or MBs for testing, so my only option is to run memdiag for 5 seconds on every startup, to see if there is an error.

Can somebody tell me, how to enable memdiag on every startup?
I only know this command: bcdedit /bootsequence {memdiag} /addlast
But this activates memdiag only on the next startup, not all. How do I make it permanent?

(If somebody has an idea for the memory problem (I tried cleaning and changing slots), you are welcome to post your idea.)
The Answer Is...
Start command prompt in elevated administrator mode "run as administrator".
Enter following commands...
bcdedit /displayorder {memdiag} /addlast
exit
... then reboot.

I'm surprised this was never posted on this thread by now. So, I'm sorry for being late in the game here.

Anytime an application is already available (listed in the enumerator [enum all]), you just tell the boot manager where to stick it. Provided the parameters already meet your specifications, which they should in this case.

To disable, change "/addlast" to "/remove".

Note: This is also useful for delaying the boot so you know exactly where to press F8 for other options. I hate tapping blindly... don't you?
My System SpecsSystem Spec
Reply

 How to enable memdiag on every startup?





Thread Tools



Similar help and support threads for2: How to enable memdiag on every startup?
Thread Forum
BSOD on startup , error 0x000000f4 . startup takes half an hour BSOD Help and Support
How to enable a login password at startup General Discussion
How to enable wifi automatically at startup ? Network & Sharing
Startup Sound - Enable or Disable Tutorials
Need way to disable/enable network card at startup?? Network & Sharing
Magnifier Starts at Startup - Enable or Disable Tutorials
Cache Writing - Enable or not to enable? Hardware & Devices

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 08:15 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