Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Event Viewer from a command prompt  (Read 4634 times)

0 Members and 1 Guest are viewing this topic.

FrankGC

    Topic Starter


    Beginner

    • Computer: Specs
    • Experience: Experienced
    • OS: Windows Vista
    Event Viewer from a command prompt
    « on: January 21, 2015, 03:28:32 PM »
    Hello,

     I set up a custom view to show the results of  a Microsoft Security Essentials scan.
    It works as intended from Event Viewer.
    I would like to execute it from a command prompt. When I try, the custom view is not found.
    Does someone see my error by examining the attached screen shot?

    Thanks
    Frank C


    [attachment deleted by admin to conserve space]
    FrankGC
    HP Envy  700-414
    Windows 10
    I. E. 9.0
    Office 2007
    ASUS Laptop
    Windows 10

    SuperDave

    • Malware Removal Specialist


    • Genius
    • Thanked: 1020
    • Certifications: List
    • Experience: Expert
    • OS: Windows 10
    Re: Event Viewer from a command prompt
    « Reply #1 on: January 21, 2015, 04:00:20 PM »
    Just a thought. It's not Security Essentials but MicroSoft Security Essentials.
    Windows 8 and Windows 10 dual boot with two SSD's

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Event Viewer from a command prompt
    « Reply #2 on: January 21, 2015, 04:30:05 PM »
    It's msseces.exe
    " Anyone who goes to a psychiatrist should have his head examined. "

    FrankGC

      Topic Starter


      Beginner

      • Computer: Specs
      • Experience: Experienced
      • OS: Windows Vista
      Re: Event Viewer from a command prompt
      « Reply #3 on: January 21, 2015, 07:29:09 PM »
      Thanks for the response SuperDave,
       Security_Essentials is the name that  I chose when I created the Custom view for Microsoft Security Essentials.
      You can see it in the screen shot of the execution of  Event Viewer under Custom Views - upper left. I added the undersore so that I didn't need double quotes in the command execution. It work fine when executed from the Event Viewer Custom View.

       Patio, thank you also,
       I don't understand your response of msseces.exe.
      If you look at the help for C:\>eventvwr /?
      it does define the required inputs for the command. The msseces.exe isn't mentioned.
      Frank C
      FrankGC
      HP Envy  700-414
      Windows 10
      I. E. 9.0
      Office 2007
      ASUS Laptop
      Windows 10

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: Event Viewer from a command prompt
      « Reply #4 on: January 21, 2015, 09:09:46 PM »
      Thats the wording for the .exe for MSE...
      " Anyone who goes to a psychiatrist should have his head examined. "

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Event Viewer from a command prompt
      « Reply #5 on: January 22, 2015, 07:27:15 AM »
      Event Viewer's /v argument requires an XML file. You need to export your custom view to create this XML file, then you can specify the exported file in the argument. the "Export Custom View" menu option is in the right-click menu for the Custom View.
      I was trying to dereference Null Pointers before it was cool.

      FrankGC

        Topic Starter


        Beginner

        • Computer: Specs
        • Experience: Experienced
        • OS: Windows Vista
        Re: Event Viewer from a command prompt
        « Reply #6 on: January 25, 2015, 01:57:33 PM »
        Thanks BC_Programmer,
        That worked.
        Looking at the help for Eventvwr /? it wasn't clear that I needed the entire path in the /V: argument
        That should have been obvious to me.
        Eventvwr /V:C:\Users\Owner\Desktop\Security_Essentials.xml
        Thanks
        Frank C
        FrankGC
        HP Envy  700-414
        Windows 10
        I. E. 9.0
        Office 2007
        ASUS Laptop
        Windows 10