Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

WebViewer-Server cannot be stopped in PowerShell during the Hubshare On-Premises update

Last updated on 9 July 2025

Admin
M-Files Hubshare

Overview

When running an update manually via PowerShell (c.f. /article/M-Files-Hubshare-On-Premises-How-to-manually-upgrade-Hubshare-via-PowerShell), you might get stuck during the Viewer installation.

It will give you warnings in a loop saying that it is waiting for the WebViewer-Server service to stop.

A screenshot of a computer program     Description automatically generated

This may take a few minutes to stop by itself, this article shows you how to stop the service manually.

Solution

  1. Open the Task Manager
  2. Go to the "Details" tab
  3. Display the "command line" column if you don't have it.

    A screenshot of a computer         Description automatically generated

     
  4. Go to the java.exe lines (You should have two) and identify the one that has a command line that starts with "C:\WebViewer-Server"
  5. Right click on it, and press "End Task"



     
  6. Go back to your PowerShell window, the script should now continue.

    A screenshot of a computer screen         Description automatically generated

In some rare cases, this might not end the WebViewer-Server service, if that happens to you, please follow the next steps:

  1. Get to the Task Manager again, and go in the Details tab
  2. Look for BlackBoxWorker.exe and end the task



     
  3. Look for tomcat10.exe and end this task as well

Your PowerShell script should now continue.

Still need help?

On this page