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
arti

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
richc46

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
arti

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
Bill2

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
SledgeDG

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
arti

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
the1observant

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
Thread Forum
How to enable a login password at startup
I installed Win7 x64 on my laptop a few months ago, so I'm the admin on that system. As I'm the sole user, I never enabled any sort of login; it just boots right to the desktop. Now I'm getting ready to take a trip, and I'll be packing the laptop in my checked luggage, so I think it would be a...
General Discussion
How to enable wifi automatically at startup ?
Hi I'm new to 7 (all my desktops are XP Home). With XP, the OS just connects automatically to my home wireless network. However with this netbook, I have to do it manually everytime I reboot - it's a real pain. Not sure if this OS, hardware or both.
Network & Sharing
Startup Sound - Enable or Disable
How to Enable or Disable the Startup Sound in Windows This tutorial will show you how to either turn the startup sound on or off, or to have the startup sound to always be enabled or disabled for all users in Vista, Windows 7, and Windows 8. The Windows Startup sound is not the same as the...
Tutorials
Need way to disable/enable network card at startup??
Hi, I upgraded my wifes dell dimension 8200 from xp to win7... perhaps a mistake but its done now. One problem is that her network card loses its connection to the Internet (though it still sees the rest of the network) and to get it working I must disable and then enable it. The real fix is...
Network & Sharing
Magnifier Starts at Startup - Enable or Disable
How to Enable or Disable Magnifier Starts at Startup and Log on in Windows 7 and Windows 8 Magnifier allows you to zoom in or out of different parts of the screen. This can be useful for viewing small objects or text that are difficult to see by making them larger. This will tutorial will...
Tutorials
Cache Writing - Enable or not to enable?
Hello, Could anyone tell me the advantages and disadvantages of disabling cache writing on the priming HDD? Thanks in advance :D
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:35.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App