Windows 10: Loging start/quit event

Discus and support Loging start/quit event in Windows 10 Support to solve the problem; Hi, By the past, I was using gpedit to launch a wsh script to log loggin, logout time in a text file. My problem is that there's no more gpedit in... Discussion in 'Windows 10 Support' started by Nilz, Feb 15, 2020.

  1. Nilz Win User

    Loging start/quit event

    By the past, I was using gpedit to launch a wsh script to log loggin, logout time in a text file.
    My problem is that there's no more gpedit in win10.
    Is there a way to catch those events ?

  2. BulldogXX Win User

    How is Event Online Help supposed to work?

    " Is there not a listing somewhere of the Event IDs and suggested resolutions?"

    I wouldn't be surprised if searching the web would help. Try using the Event ID as a search term to start.
    BulldogXX, Feb 15, 2020
  3. ddelo Win User
    Export All Administrative Events to Excel

    To analyze events, from the Windows Event Viewer, there is a simple way to export all Administrative Events to Excel, with PowerShell.

    Exporting all Administrative Events to Excel is a simple two Step process, as described here:

    Step 1 - Create the Administrative Events View .xml file
    1. Open Eventviewer (%windir%\system32\eventvwr.msc)
    2. Navigate to: Event Viewer (Local) > Custom Views > Administrative Events
    3. In the “Actions” pane select “Filter Current Custom View”.
    4. Select the the XML tab.
    5. Press Ctrl+A to select all the XML code of the Custom View.
    6. Open a notepad, paste the selected code and save the file to your Desktop as AdmEvtView.xml

    Step 2 - Create the csv file with the events
    1. Download the file, which contains the script ExportEvtCSV.ps1 and unzip it, on your Desktop.
      It's not a fancy script, just basic PowerShell commands to create a csv file on the Desktop.
    2. In Windows Search, type “ISE” (without the quotes) to open “Windows PowerShell ISE” and Run as administrator
    3. To allow running the script, change the ExecutionPolicy, for this session. To do that, in the Console pane type:
      Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -force
    4. In the Windows PowerShell ISE, open and run the script: ExportEvtCSV.ps1
      The script will create a csv file with a name YYYYMMDD.HHMM.csv on the Desktop
    5. When done, open the newly created .csv file, format the columns as needed and optionally save it as .xlsx, if you wish.
    That’s it! You now have all the Administrative Events in Excel for filtering and further analysis. Loging start/quit event :)

    Now to the more technical hard stuff... *Confused

    There is a reason for running the script from within PowerShell ISE!

    It would be great if everything was also working perfectly, when running the script from an elevated PowerShell too.

    We can run it from an elevated PowerShell, which means that you just follow the Step 1, as above but for the Step 2 instead of the ISE you run the script from an elevated PowerShell.

    The problem is that it will work only for anybody who has en-US format for the dates. Everyone else, who has another format (i.e. en-GB, fr-FR, el-GR etc.), the dates are not translated properly by Excel (although the script uses the –UseCulture switch) and remain as text in the en-US format.

    I'm not sure if this a bug of the "export-csv" cmdlet, but although it runs the way it supposed to from within the ISE, from PowerShell there is a problem with the dates format.
    As I haven’t found a way to overcome this obstacle, any suggestion from the PowerShell gurus of the forum (like my good friend Shawn @Brink, for instance), is welcome.
    ddelo, Feb 15, 2020
  4. Loging start/quit event

    Calender events disappeared


    Thank you for posting your query on Microsoft Community.

    In order to assist you further with the issue could you please confirm a couple of things:

    • How do you access Calendar? Is it through a Web Browser or an Email Client?
    • Are you referring to the default Calendar app?
    • Did you make any changes to your account before you encountered the issue?
    Nevertheless, I suggest you to follow the steps below and check whether you're able to see the events in your Account:

    Please get back to us with the updated status of the issue so that we can work on it to help you better.
    Andria Maria Mendez, Feb 15, 2020

Loging start/quit event

  1. Loging start/quit event - Similar Threads - Loging start quit

  2. Need help loging into my pc

    in Windows 10 Ask Insider
    Need help loging into my pc: I havent used my pc in about a month and a half and I just turned it on today. Everything turns on but when I get to the lock screen and swipe up with the mouse, the screen gets a shade darker and no bar to type my password/pin shows up. Then after a couple seconds the screen...
  3. Event viewer shows 0 events for Start / Stop?

    in Windows 10 Support
    Event viewer shows 0 events for Start / Stop?: Hi. I'm running 1903. For some years I have used a simple program called PC On/Off Time to monitor when my computer has been booted up, put to sleep and shut down. It isn't working correctly anymore after recently recovering my computer which installed 1903. I contacted...
  4. Audit Success event id 4798 loging every minute

    in Windows 10 Support
    Audit Success event id 4798 loging every minute: Hello, what could be cause of this ? [img] Every minute I see this event and every minute my desktop icons blinks YouTube YouTube YouTube How can I fix this problem? 137657
  5. Trusted Microsoft Apps quitting on start

    in Windows 10 Software and Apps
    Trusted Microsoft Apps quitting on start: All Trusted Microsoft Apps except for Netflix suddenly began crashing a few seconds after launch. These are apps like mail, calendar, photos, Minecraft win10 and others. I have tried many things. sfc /scannow resulted in corrupt files that were unable to fix. dism...
  6. Not quite booting

    in Windows 10 Drivers and Hardware
    Not quite booting: Hi I moved my (switched on) laptop to another room today. When I arrived at the other end, the screen was blank (no problem so far, sometimse I squeeze the power button by mistake and put it into 'hibernate'.) Tried to turn it back on but the power button had...
  7. Start menu has quit searching

    in Windows 10 Support
    Start menu has quit searching: I don't use Cortina, I have a search icon on the task bar, I used to hit the Windows key and start typing to search for a program, now nothing happens, clicking the search icon does nothing, is this new to windows or do I have a problem? 105395
  8. Windows 10 starts, then quits running. Help?

    in Windows 10 Installation and Upgrade
    Windows 10 starts, then quits running. Help?: So, I upgraded from Windows 7 to Windows 10, and the installation went smoothly. Everything worked, it installed fine, and then it restarted for the, or at least what I assumed to be, the last time. When my PC turned back on, it ran just fine, went to the boot screen [Windows...
  9. Start button quit working - oh the agony!

    in Windows 10 Support
    Start button quit working - oh the agony!: Driver update gone bad caused my start button to stop working. I have tried sfc /scannow but it didn't find any issues. I don't want to do a system restore because the last time I did, that caused more problems! (edge vanished) Any clever ways to fix this without creating...
  10. Quite excited

    in Windows 10 Support
    Quite excited: at the prospect of having Windows 10. This will be one of the very few times I have actually had the 'current' O/S in use on my PC's. I'm being patient at the moment - looking in the update history, I note 6 messages listed as follows - .... Upgrade to Windows 10 Home,...