Pages

Tuesday, January 2, 2018

How to see when AOS service was started/stopped with PowerShell for AX with 1 line of code.

I often need to see when an AOS was stopped for various reasons, and scanning the event viewer can be a hassle. Running this simple 1-line PowerShell script will give you that information.

You can also use this script as a guide to run other PowerShell scripts to search the event log for specific text.

Get-WinEvent -ErrorAction SilentlyContinue -FilterHashtable @{logname='system'; StartTime=(((get-date).AddDays(-30).Date)); EndTime=(((get-date).AddDays(1).Date)); id=7036} -MaxEvents 10000 | ? {$_.Message -like '*Microsoft Dynamics AX Object Server*'}

5 comments:

  1. Great site you've got here.. It’s hard to find quality writing like yours nowadays 300-115 Exam Dumps Questions. I truly appreciate people like you! Take care!!

    ReplyDelete
  2. This article feels very practical and relevant. It focuses on what actually matters. You can also refer to How to Become a Data Analyst and Full stack developer course in kochi.

    ReplyDelete
  3. Very helpful technical guide—explains the steps clearly for checking AOS service start time using system logs. This kind of troubleshooting tip is really useful for Dynamics AX administrators working with service monitoring. Thanks for sharing this practical walkthrough!

    machine shop auctions

    ReplyDelete
  4. I really enjoyed the smooth flow of this post because it feels natural, simple, and very easy to read. Recently I used spacebarclicker and had fun with its quick clicking challenge and casual browser gameplay, which makes short breaks more relaxing and enjoyable online.

    ReplyDelete