Windows 10: Powershell automatically opens and closes immediately in less than 0.01sec

Discus and support Powershell automatically opens and closes immediately in less than 0.01sec in Windows 10 Software and Apps to solve the problem; Whenever I turn on my laptop, after some certain mins not fixed, 2-4 powershell windows blue color automatically opens and closes so fast less than... Discussion in 'Windows 10 Software and Apps' started by Md Shah Faishal Khan, May 13, 2024.

  1. Powershell automatically opens and closes immediately in less than 0.01sec


    Whenever I turn on my laptop, after some certain mins not fixed, 2-4 powershell windows blue color automatically opens and closes so fast less than 0.01 sec that I cannot able to see what's happening or what just happened.Any way to get to know what happened and what's the issue causing it?

    :)
     
    Md Shah Faishal Khan, May 13, 2024
    #1
  2. thardy Win User

    PowerShell window opens up automatically and disappears immediately

    Hi guys. From some time, I've been witnessing strange behavior of my computer. Specifically, the PowerShell window opens automatically and immediately disappears. This has been going on for a few months. Finally, I decided to take a closer look at it. I would like to check which program (or virus *Biggrin) is opening PowerShell and what script it is executing. Here's a list of things I've done so far:
    • I've checked the autostart, services, and scheduled tasks for suspicious items, but I haven't found anything suspicious.
    • I've tried to examine the PowerShell logs in Event Viewer, but my knowledge is too limited to interpret them.
    Here's a sample log from Event Viewer:
    Powershell automatically opens and closes immediately in less than 0.01sec 395611d1692317524t-powershell-window-opens-up-automatically-disappears-immediately-ev1_details.jpg

    Powershell automatically opens and closes immediately in less than 0.01sec 395612d1692317524t-powershell-window-opens-up-automatically-disappears-immediately-ev1_general.jpg
    There is plenty of logs like that. My Windows number: Windows 10 22H2(OS Build 19045.3324) Every help would be really appreciated, because my knowledge is too limited to solve it myself. Best regards, Tom.
     
    thardy, May 13, 2024
    #2
  3. SS-WQY Win User
    PowerShell closes immediately

    hi Rivgil,

    Thank you very much for your reply. I appreciate it.

    I tried to disable and reenable the PowerShell but it didn't work.

    I also opened the link you provided, but I think it's not the issue I have. On my side, PowerShell is not stopped working, it's opened but closed immediately.

    I also tried to open PowerShell on command prompt with admin mode by running the command 'powershell /', which gives me an error - A failure
    occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception.
     
    SS-WQY, May 13, 2024
    #3
  4. SS-WQY Win User

    Powershell automatically opens and closes immediately in less than 0.01sec

    PowerShell closes immediately

    I am simply trying to open PowerShell and the application closes instantly. This happens when I try opening it as an Admin.

    I tried input command 'powershell /' on command prompt in admin mode. it gives me an error: The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives'
    threw an exception.

    I also tried to search for some solutions online but there is not that much helpful information.

    OS is windows10 19H1. Powershell should be the latest version, but it fails to open, I can't check its version now.

    Please provide any helpful suggestions. Thanks in advance.
     
    SS-WQY, May 13, 2024
    #4
Thema:

Powershell automatically opens and closes immediately in less than 0.01sec

Loading...
  1. Powershell automatically opens and closes immediately in less than 0.01sec - Similar Threads - Powershell automatically opens

  2. Powershell automatically opens and closes immediately in less than 0.01sec

    in Windows 10 Gaming
    Powershell automatically opens and closes immediately in less than 0.01sec: Whenever I turn on my laptop, after some certain mins not fixed, 2-4 powershell windows blue color automatically opens and closes so fast less than 0.01 sec that I cannot able to see what's happening or what just happened.Any way to get to know what happened and what's the...
  3. Apps open then close immediately.

    in Windows 10 Drivers and Hardware
    Apps open then close immediately.: This is starting to get on my nerves. When I open an app like the Xbox app, Microsoft store, get help app, or any random app, it just closes on me. Doesn't open for a split second. This is pissing me off as I quite literally asked someone else, they said I'd get a reply with...
  4. Chrome opens but immediately closes

    in Windows 10 Gaming
    Chrome opens but immediately closes: chrome opens but it immediately closes sometimes it will stay open for 5 mins or all day without closing but it will happen constantly the next day until I reset my computersometimes that doesn't even work or clear all my cache which again sometimes doesn't work it's just...
  5. Chrome opens but immediately closes

    in Windows 10 Network and Sharing
    Chrome opens but immediately closes: chrome opens but it immediately closes sometimes it will stay open for 5 mins or all day without closing but it will happen constantly the next day until I reset my computersometimes that doesn't even work or clear all my cache which again sometimes doesn't work it's just...
  6. software opening for less than a second and closing

    in Windows 10 Ask Insider
    software opening for less than a second and closing: Hi, i'm having a problem: every half an our or so something pops up in the task bar and closes itself, it's so fast i can't see the icon or window but it goes in foreground for a fraction of a second, if i'm watching youtube fullscreen i see the task bar appear and disappear,...
  7. Outlook opens and then immediately closes

    in Windows 10 Software and Apps
    Outlook opens and then immediately closes: A computer friend has helped me some. We've disabled a McAfee Addon, but still doing the same thing. How do I repair this? https://answers.microsoft.com/en-us/windows/forum/all/outlook-opens-and-then-immediately-closes/ac5e4c73-200d-425d-ad84-6d84b917e198
  8. program opens and closes immediately

    in Windows 10 Installation and Upgrade
    program opens and closes immediately: Before the latest update to Win10, my program Jigsaw Mania was working fine. Now it opens but closes within a few seconds and is unusable now. Is there a way to fix this? I reinstalled the Jigsaw Mania program but had the same result. joe...
  9. Powershell Closing Immediately

    in Windows 10 BSOD Crashes and Debugging
    Powershell Closing Immediately: I've looked all of the the internet and I cannot find any information that applies to this situation. Powershell closes immediately upon starting. When I run it in Command Prompt I get the following: Windows PowerShell terminated with the following error: Unable to...
  10. PowerShell closes immediately

    in Windows 10 BSOD Crashes and Debugging
    PowerShell closes immediately: I am simply trying to open PowerShell and the application closes instantly. This happens when I try opening it as an Admin. I tried input command 'powershell /' on command prompt in admin mode. it gives me an error: The shell cannot be started. A failure occurred during...