How to enable memdiag on every startup?

arti

New member
Local time
10:31 AM
Messages
3
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 Computer My Computer

At a glance

Windows 7 Home Premium 64bit
OS
Windows 7 Home Premium 64bit

My Computer My Computer

At a glance

Windows 10, Home Clean InstallIntel Core2 processsor Q8200(2.33Ghz 1333FSB)...6 gbATI Radeon 256MB HD3650
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
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 Computer My Computer

At a glance

Windows 7 Home Premium 64bit
OS
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?
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 Computer My Computer

At a glance

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
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 Computer My Computer

At a glance

Windows 7 Ultimate x86DualCore AMD Athlon 64 X2, 2600 MHz 5200+Samsung 2GB DDR2Onboard NVIDIA GeForce 6150SE nForce 430
Computer Manufacturer/Model Number
HP m8000n
OS
Windows 7 Ultimate x86
CPU
DualCore AMD Athlon 64 X2, 2600 MHz 5200+
Motherboard
Asus M2N68-LA (Narra)
Memory
Samsung 2GB DDR2
Graphics Card(s)
Onboard NVIDIA GeForce 6150SE nForce 430
Sound Card
Onboard nVIDIA nForce 6100-430 (MCP61P)
Monitor(s) Displays
Westinghouse 19" LED
Screen Resolution
1280x1024
Hard Drives
SATA II Seagate Barracuda 500GB
USB II WD Elements 500GB
USB II WD My Book 1TB
USB II WD My Book 2TB
PSU
Stock (HP)
Case
Stock (HP)
Cooling
Stock
Keyboard
Logitech Classic KB 200
Mouse
Standard HP opticle USB mouse
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 Computer My Computer

At a glance

Windows 7 Home Premium 64bit
OS
Windows 7 Home Premium 64bit
Late Solution, but I figured it out

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 Computer My Computer

At a glance

Windows 7 Pro 32-bitAMD Sempron 3600+, 2.01 GHzCrucial Ballistix DDR2 PC2-6400 CL5, 4GB (3.3...Integrated Nvidia GeForce 6150SE 512MB (OS ex...
Computer Manufacturer/Model Number
Compaq Presario SR5223WM (not bad for a Wally World Special)
OS
Windows 7 Pro 32-bit
CPU
AMD Sempron 3600+, 2.01 GHz
Motherboard
ASUS Micro-ATX M2N68-LA (Ivy8) (nForce 430 chipset)
Memory
Crucial Ballistix DDR2 PC2-6400 CL5, 4GB (3.37GB addressable
Graphics Card(s)
Integrated Nvidia GeForce 6150SE 512MB (OS expandable)
Sound Card
Integrated Realtek ALC888 Audio - 6 channel Hi-Def
Monitor(s) Displays
DELL E176FP (temp replacement)
Hard Drives
ST312021 5AS SATA SCSI Disk 120GB (partitioned)
PSU
250W
Case
Mid-size Compaq Tower
Cooling
Air-cooled, Standard CPU and Case fans
Back
Top