Stop Service from running on multiple pc's

EM 271 Reputation points
2023-01-30T15:27:27.9866667+00:00

We have a .net application that is pushed out to multiple pc's around the Unites States. When the user installs this application initially, a service is started. That service is no longer needed. So we'd like to stop it programmatically with the next release of the application. We've tried some suggestions found by way of Google but run into the issue of admin rights. Is it possible to programmatically stop a service without admin rights? Powershell was suggested but from what we're reading, it too requires admin rights.

Thanks for your time.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,669 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,332 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Philippe Levesque 5,711 Reputation points
    2023-01-30T15:32:05.73+00:00

    Hi

    No, to stop an service you need admin right. There is no way around.

    If it's a service done and installed by you. can you just uninstall it from your next release ? As it will clean the computer at the same time.

    If you can't uninstall it, I suggest to disable it in your next install's package.

    0 comments No comments

  2. Rich Matheisen 45,906 Reputation points
    2023-01-30T15:42:54.2966667+00:00

    If you haven't disabled PowerShell remoting, try using Invoke-Command: https://stackoverflow.com/questions/43417672/stop-or-start-a-service-on-remote-machine

    0 comments No comments