Jump to content

Malwarebytes causing powershell to take a long time to load


Recommended Posts

For some odd reason, lately malwarebytes is causing Powershell to take a long time to load. 

 

Not quite sure where to start in terms of resolving. 

With malwarebytes enabled:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

Loading personal and system profiles took 66352ms.

 

Without:

Message doesn't come up, but looks like around 400ms when running measure-script -Path $PROFILE

mbst-grab-results.zip

Link to post
Share on other sites

  • Staff

***This is an automated reply***

Hi,

Thanks for posting in the Malwarebytes for Windows Help forum.

If you are having technical issues with our Windows product, please do the following:

Malwarebytes Support Tool - Advanced Options

This feature is designed for the following reasons:

  • For use when you are on the forums and need to provide logs for assistance
  • For use when you don't need or want to create a ticket with Malwarebytes
  • For use when you want to perform local troubleshooting on your own

How to use the Advanced Options:

Spoiler
  1. Download Malwarebytes Support Tool
  2. Double-click mb-support-X.X.X.XXXX.exe to run the program
    • You may be prompted by User Account Control (UAC) to allow changes to be made to your computer. Click Yes to consent.
  3. Place a checkmark next to Accept License Agreement and click Next
  4. Navigate to the Advanced tab
  5. The Advanced menu page contains four categories:
    • Gather Logs: Collects troubleshooting information from the computer. As part of this process, Farbar Recovery Scan Tool (FRST) is run to perform a complete diagnosis. The information is saved to a file on the Desktop named mbst-grab-results.zip and can be added as an email attachment or uploaded to a forum post to assist with troubleshooting the issue at hand.
    • Clean: Performs an automated uninstallation of all Malwarebytes products installed to the computer and prompts to install the latest version of Malwarebytes for Windows afterwards. The Premium license key is backed up and reinstated. All user configurations and other data are removed. This process requires a reboot.
    •  Repair System: Includes various system-related repairs in case a Windows service is not functioning correctly that Malwarebytes for Windows is dependent on. It is not recommended to use any Repair System options unless instructed by a Malwarebytes Support agent.
    • Anonymously help the community by providing usage and threat statistics: Unchecking this option will prevent Malwarebytes Support Tool from sending anonymous telemetry data on usage of the program.
  6. To provide logs for review click the Gather Logs button
  7. Upon completion, click OK
  8. A file named mbst-grab-results.zip will be saved to your Desktop
  9. Please attach the file in your next reply.
  10. To uninstall all Malwarebytes Products, click the Clean button.
  11. Click the Yes button to proceed. 
  12. Save all your work and click OK when you are ready to reboot.
  13. After the reboot, you will have the option to re-install the latest version of Malwarebytes for Windows.
  14. Select Yes to install Malwarebytes.
  15. Malwarebytes for Windows will open once the installation completes successfully.

Screenshots:

Spoiler
 
 
 
 
Spoiler

 

 

01.png

02.png

03.png

04.png

05.png

06.png

 

 

If you are having licensing issues, please do the following: 

Spoiler

For any of these issues:

  • Renewals
  • Refunds (including double billing)
  • Cancellations
  • Update Billing Info
  • Multiple Transactions
  • Consumer Purchases
  • Transaction Receipt

Please contact our support team at https://support.malwarebytes.com/hc/en-us/requests/new to get help

If you need help looking up your license details, please head here: Find my premium license key

 

 

Thanks in advance for your patience.

-The Malwarebytes Forum Team

Link to post
Share on other sites

1 minute ago, Ried said:

Hello modem7.  We did have another person report this and Engineering is looking into this. 

By any chance if you turn off Malware & PUP protection, does powershell load right away?

Heya,

 

Yes, that's exactly it. Once I disable the malware/pup, the powershell issue instantly gets resolved and the profile loads under 1 second.

Link to post
Share on other sites

  • Staff

Great, thanks!  This is what they are working on right now, I'll post in here when they believe they have it fixed.

I know the delay in powershell can be frustrating, but I encourage you to keep Malware & PUP protection on anyway.

Link to post
Share on other sites

18 minutes ago, AdvancedSetup said:

Can you please let us know exactly how you're loading PowerShell

Do you run a batch file, a shortcut?

Is your profile on another drive?

Can you share the exact code you're using to measure timing?

Thank you @modem7

 

Heya, 

 

Thankfully quite a simple setup (I only really use powershell to SSH into machines I don't normally SSH into).

Opening via Windows terminal which is pointing to: %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe

Profile is on an NVME drive in my user directory:

PS C:\Users\Alex> $PROFILE
C:\Users\Alex\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

I'm measuring speed via the command:

measure-script -Path $PROFILE

Which is available by installing PSProfiler (obvious how to do this, but gonna run through all the steps regardless):

Install-Module -Name PSProfiler

---

With PUP disabled:

PS C:\Users\Alex> measure-script -Path $PROFILE


    C:\Users\Alex\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1


      Count  Line       Time Taken Statement
      -----  ----       ---------- ---------
          1     1    00:00.0360372 ssh-manager completion powershell | out-string | invoke-expression
          0     2    00:00.0000000 # chocolatey profile
          1     3    00:00.0000624 $chocolateyprofile = "$env:chocolateyinstall\helpers\chocolateyprofile.psm1"
          0     4    00:00.0000000 if (test-path($chocolateyprofile)) {
          1     5    00:00.0001841   import-module "$chocolateyprofile"
          0     6    00:00.0000000 }
          0     7    00:00.0000000

 

  • Thanks 1
Link to post
Share on other sites

1 hour ago, Ried said:

This issue has been fixed.  Open Malwarebytes and 'Check for Updates'

Please let me know if you still see an issue launching powershell

That seems to be working as expected for me!

 

Thank you guys for your quick efforts!

  • Thanks 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.