How to enable memdiag on every startup?


  1. Posts : 3
    Windows 7 Home Premium 64bit
       #1

    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 Computer


  2. Posts : 17,796
    Windows 10, Home Clean Install
       #2

    I have created a new task only once. It looks difficult but it really is easy.
    Task Scheduler - Create New Task
      My Computer


  3. Posts : 3
    Windows 7 Home Premium 64bit
    Thread Starter
       #3

    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


  4. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #4

    arti said:
    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


  5. Posts : 2,009
    Windows 7 Ultimate x86
       #5

    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


  6. Posts : 3
    Windows 7 Home Premium 64bit
    Thread Starter
       #6

    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


  7. Posts : 1
    Windows 7 Pro 32-bit
       #7

    Late Solution, but I figured it out


    arti said:
    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


 

  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 20:55.
Find Us