Windows 10: Weird powershell events

Discus and support Weird powershell events in Windows 10 Gaming to solve the problem; Hello! I recently roughly a month ago ran an info stealer on accident, i ran FRST, KVRT, RKill and Malwarebytes and got rid of it however i have been... Discussion in 'Windows 10 Gaming' started by xin2025, Mar 10, 2025.

  1. xin2025 Win User

    Weird powershell events


    Hello! I recently roughly a month ago ran an info stealer on accident, i ran FRST, KVRT, RKill and Malwarebytes and got rid of it however i have been noticing some strange Powershell events. Maybe i'm just paranoid and i don't usually check event viewer but you never know.Provider "Registry" is Started. Details: ProviderName=Registry NewProviderState=Started SequenceNumber=1 HostName=ConsoleHost HostVersion=5.1.22621.4391 HostId=c23e0db0-fe15-4aef-91f7-02433d5450d7 HostApplication=powershell Get-CimInstance Win32_Processor Format-List -Pro

    :)
     
    xin2025, Mar 10, 2025
    #1
  2. 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 ExportEvtCSV.zip 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:
      Code:
    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. Weird powershell events :)

    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, Mar 10, 2025
    #2
  3. Drone Win User
    PowerShell is open sourced and is available on Linux/macOS

    Little bit late .. PowerShell's 10th anniversary (Nov. 14)
     
    Drone, Mar 10, 2025
    #3
  4. angstar Win User

    Weird powershell events

    angstar, Mar 10, 2025
    #4
Thema:

Weird powershell events

Loading...
  1. Weird powershell events - Similar Threads - Weird powershell events

  2. Weird powershell events

    in Windows 10 Software and Apps
    Weird powershell events: Hello! I recently roughly a month ago ran an info stealer on accident, i ran FRST, KVRT, RKill and Malwarebytes and got rid of it however i have been noticing some strange Powershell events. Maybe i'm just paranoid and i don't usually check event viewer but you never...
  3. Weird Error in Event Log

    in Windows 10 Gaming
    Weird Error in Event Log: Log Name: Application Source: Microsoft-Windows-Perflib Date: 7/19/2024 6:31:02 PM Event ID: 1023 Task Category: None Level: Error Keywords: User: SYSTEM Computer: DESKTOP-TCVJPBL Description: Windows cannot load the extensible counter DLL "C:\Windows\system32\sysmain.dll"...
  4. Weird PowerShell behavior

    in Windows 10 Gaming
    Weird PowerShell behavior: So, every once in a while I see powershell flashing on the screen. It just opens real quick and closes right after. It's so fast I can't even react to it. Now that I was playing a game I was thrown to desktop game went paused and I guess the powershell soft-crashed since it...
  5. Weird PowerShell behavior

    in Windows 10 Software and Apps
    Weird PowerShell behavior: So, every once in a while I see powershell flashing on the screen. It just opens real quick and closes right after. It's so fast I can't even react to it. Now that I was playing a game I was thrown to desktop game went paused and I guess the powershell soft-crashed since it...
  6. Weird PowerShell behavior

    in AntiVirus, Firewalls and System Security
    Weird PowerShell behavior: So, every once in a while I see powershell flashing on the screen. It just opens real quick and closes right after. It's so fast I can't even react to it. Now that I was playing a game I was thrown to desktop game went paused and I guess the powershell soft-crashed since it...
  7. Powershell event log

    in AntiVirus, Firewalls and System Security
    Powershell event log: I have many of these in my event logs : POWERSHELL...task category execute a remote command :Creating Scriptblock text 1 of 1:# Copyright © 2008, Microsoft Corporation. All rights reserved.#Common utility functionsImport-LocalizedData -BindingVariable localizationString...
  8. UIAutomation Events on Powershell

    in Windows 10 BSOD Crashes and Debugging
    UIAutomation Events on Powershell: I'm trying to listen UIAutomation events using Powershell, and wrote somethings like this. $propChangeHandler= [System.Windows.Automation.AutomationPropertyChangedEventHandler]# <summary># Adds a handler for property-changed event in particular, a change in the enabled...
  9. Weird event

    in Windows 10 Drivers and Hardware
    Weird event: I've reinstalled Windows 10 on my new SSD (clean install) and today I got 6291 events, all received at once (in one minute) which say the following: Event ID 7 WudfUsbccidDrv Device responded with an error status. Status: ReaderCompletionUnknownMsgType I didn't got so...
  10. Windows PowerShell acting weird?

    in Windows 10 Support
    Windows PowerShell acting weird?: Hello, After updating from insider to 15063 and 15063.11 RTM powershell seems to be showing random symbols, but when I try to copy paste these symbols somewhere else they show up as normal text. In powershell I see this: [img] After copy paste I get this:...