Questions tagged [windows-service]

Windows services, also referred to as NT services, are background service processes run by the Service Control Manager based on the service settings and optionally restarted as needed. Windows services are also capable of being launched on demand, based on other service dependencies.

Filter by
Sorted by
Tagged with
0 votes
1 answer
258 views

How to create a GPO to audit start/stop of a service not running on the DC?

I'm trying to enable auditing of service start/stop events for a few specific services on a group of domain computers, and to make this change using Group Policy. I've seen this answer, however when I ...
zedworks's user avatar
1 vote
1 answer
188 views

How to install ActiveMQ Artemis as a Windows service?

The title is a bit missleading since I know how to install artemis as a windows service, according to the documentation one just has to run artemis-service.exe install This does not work for me. I ...
T_01's user avatar
  • 121
0 votes
1 answer
212 views

Do Windows Services continue running when their Active Directory account gets disabled?

There was an incident this week where one of our SQL Server instances was unexpectedly offline. I found the Windows Services that run the instance stopped and was unable to start them again due to the ...
Logarr's user avatar
  • 101
0 votes
1 answer
102 views

Limit Managed Service Account to only run certain service

I've started learning about Managed Service Accounts in Windows. As I understand it, such accounts make password management easier and the accounts can be limited to be used on certain machines. You ...
Frederik Vanderhaegen's user avatar
0 votes
1 answer
342 views

How do I prevent a Windows service from setting its own startup type to automatic?

I have a self-starting service, but I want to start it manually instead. However, as long as the service is running, it continues to monitor its startup type status, and as soon as I change it to ...
埃博拉酱's user avatar
0 votes
0 answers
421 views

Multiple per-user services on Windows Server 2022?

We just upgraded a couple of servers to Windows Server 2022. I am noticing in the Services Control Panel, a number of services which present multiple instances, presumably one instance for every user ...
Yossi Geretz's user avatar
0 votes
1 answer
1k views

Windows Network Setup Service (NetSetupSvc) starts and stops every few minutes, flooding System log

NetSetupSvc is a helper service for installing network drivers and managing low-level network settings. It is trigger-started via RPC and automatically stops after 3 seconds. During normal operation ...
theultramage's user avatar
0 votes
0 answers
47 views

Any possible way to receive an alert of Windows Server being "unresponsive"?

We currently use ServiceNow to have many alerts like ping, 100% CPU/RAM utilization, disk space being almost full, etc. but we are investigating if we can receive an alert when the OS is "...
Tirux's user avatar
  • 3
0 votes
1 answer
630 views

Can not modify Remore Procedure Call (RPC) service

I have an admin account on my windows, and I used to disable the RPC service before, but recently I can't even modify that. It is permanently disabled, and I can't change its properties. Does anyone ...
Mah_Bar's user avatar
1 vote
1 answer
175 views

Why is Windows Restarting my Service which I've Manually Stopped?

We have three servers - Windows 2012 R2 - in Azure, running a variety of our own custom developed services. These services are configured to start automatically, so naturally, on startup or after a ...
Yossi Geretz's user avatar
2 votes
1 answer
3k views

How to enable logging of Event ID 7042 (service stop reason)?

Event with ID 7042 gets logged in the Event Log when two particular services (custom apps) stop on Windows Server 2022. The problem: one Windows Server is not logging those events. Is there an option ...
Maris B.'s user avatar
  • 182
1 vote
0 answers
360 views

Implement /usr/sbin/apachectl start|stop|restart as a Windows Service

We are running Apache Web Server 2.4 installed as a Cygwin package, on Windows Server 2018. The Apache service manually started after each reboot by running: /usr/sbin/apachectl start From the Cygwin ...
TenG's user avatar
  • 153
0 votes
0 answers
216 views

Java Generic Service in Windows Failover Cluster

I created a JAVA-backend in spring boot and configured it as Windows Service. The purpose of the service is to serve REST API. For instance, to list users, we need to call: localhost:8090/users I want ...
Guan's user avatar
  • 1
0 votes
1 answer
99 views

How to start a service without the need to change password

We have developed a backup software for a SQL Server(2019) that runs on a Windows Server 2019 for a customer. The app (.net Windows Forms) has an interface to configure the backups (e.g. select day's ...
FredyWenger's user avatar
0 votes
1 answer
1k views

Error trying to reset service account password

Some background: I installed Windows Server Essentials and ran the Essentials Configuration Wizard, which created a new AD forest with a single domain. However, I needed the AD from a previously-...
InteXX's user avatar
  • 765
-1 votes
1 answer
234 views

Which service is responsible for GPO?

Can someone please tell me what service should I start to apply GPO on my DC. I have a GPO on my DC but it does not apply on it. (I was asked specifically about services so it must be the problem.) ...
שירה אברהם's user avatar
1 vote
1 answer
4k views

Ansible - I need to check given services are running in target windows host and if not running need to start the service

First, I check the list of windows process are running and collect the output into a register variable. next I need to start the service which are not running based on the above output(register). - ...
alphablack's user avatar
1 vote
1 answer
2k views

How to kill a process running under SYSTEM account in the Windows Server?

I have a server with Windows Server 2008 R2 and a service process (our custom service) running on it under SYSTEM account. A service has presumably hanged and I wanted to stop it. I tried stopping via ...
ivan.ukr's user avatar
  • 117
2 votes
1 answer
146 views

What Event IDs are generated in Windows server when changes are made to the login service dialog?

Is there a way to turn on logs for when changes are made to a credentials for a service like the one below?
leeand00's user avatar
  • 4,919
2 votes
0 answers
2k views

Allow user/group to start/stop/restart windows service

I have 4 services. All of them are run by an individual user. All 4 users are part of a group I created (ServiceWorkers) which has the Log on as a service user rights assigned. Each service needs to ...
Alex's user avatar
  • 121
1 vote
0 answers
574 views

Installing gMSA on client remotely

I succesfully created a gMSA in our AD production, I now want to link it to a host server/computer for testing (ex: launching schedule task). To link the gMSA to the server, we need to install some ...
Reda Feknous's user avatar
1 vote
1 answer
657 views

How should I initialize a new local account for a Windows service?

I'm using Terraform with Google Cloud to create Windows Server Core 2019 hosts for use with Jenkins. I want to install some software like Git, OpenJDK, and others using Scoop, and start the Jenkins ...
Jakub Sokołowski's user avatar
0 votes
1 answer
2k views

Installing certificate installed through MMC for a service account

(Disclaimer: I have posted this question on StackOverflow, but from a developer point of view. I tried to rewrite the question to fit ServerFault conditions) A custom service has to log on a remote ...
Amessihel's user avatar
  • 113
-1 votes
1 answer
2k views

Nginx config files

This question is not for business use - this is for personal use. Here is my situation. I run a Windows Server 2012 R2 with a domain. I am now adding Home Assistant running on a Raspberry Pi (and ...
Mike's user avatar
  • 1
1 vote
3 answers
1k views

From the context of a Windows service how can I determine whether windows updates are currently running?

I have a service that does some system configuration on startup and just ran into an issue where Windows Updates was running at the same time and initiated a reboot which interrupted what my service ...
Skrymsli's user avatar
  • 171
1 vote
2 answers
1k views

how to stop, start and delete a windows service in cmd with a reference to the service name

how to stop/start a windows service in cmd with just a fragment of the service name. Example: NET STOP *part_of_name_of_service* NET START *part_of_name_of_service* For example. mysql has many ...
acgbox's user avatar
  • 398
0 votes
2 answers
1k views

Install windows ssh server

I need some help here. I am kind of new to server side stuff. I am trying to install SSH on my windows server (Windows Server 2016, 64-bit Operating System). This is the steps i tried: 1.copied this ...
Sujesh Surya's user avatar
2 votes
1 answer
3k views

Windows Service Options change logged?

Are changes to a Windows service logged? Specifically, I suspect that the Recovery options were changed for a service and I'm trying to see if that was indeed the situation. I've tweaked various ...
John Dyer's user avatar
  • 735
1 vote
0 answers
492 views

Communication between Windows services on Windows Server 2019

I have some custom made Windows services, that communicate over Named Pipes on local network with other application on another server. This setup worked perfectly on WS 2008 R2 and WS 2016 servers, ...
Tomáš Batysta's user avatar
1 vote
0 answers
87 views

Can i pass parameters to a windows service through GPO

We have a custom windows service written in C++. This windows service runs in all the VMs in a particular domain. I have a requirement to pass certain parameters to that windows service which the ...
user496934's user avatar
0 votes
0 answers
80 views

Why does the Windows Service Host exist?

I’m currently trying to debug a problem with Windows Deployment Services, where when it is set to ask the DHCP server for a multicast address range, the WDS service will not start because it gets an “...
Dale Mahalko's user avatar
0 votes
1 answer
3k views

Create Widows Service from batch or exe file

I need to distribute some app to all our stations without users having the ability to close the app. The app jumps on users' screen and notifies them to restart the computer, and I don't want users ...
Haim Ben's user avatar
0 votes
0 answers
451 views

How to run docker services with an application account?

How do I change the windows services account for docker? The Windows services are Docker Desktop Service and docker. When I set then to use an application account, it returns the following error: ...
Miguel's user avatar
  • 571
1 vote
1 answer
3k views

How to add a service which executable file has a space and requires parameters?

I would like a python script as a Windows service, using sc. The problem is that the path to the executable has a space and requires parameters. Therefore sc create DNSResolver127 binPath= '"C:\...
WoJ's user avatar
  • 3,657
0 votes
1 answer
2k views

Azure Monitor Alert for Windows Services

Is it possible to add an Azure Monitor Alert for Windows Services running on Cloud Services? We have a web app running on Cloud Services depending on a service we installed on the instance VM, we ...
neualex's user avatar
  • 11
0 votes
1 answer
2k views

MariaDB won't start as a service on Windows Server 2016 - works fine from cmd prompt

Fresh server running Windows Server 2016 Standard along with a fresh copy of MariaDB 10.3.14. MariaDB starts and runs perfectly when started from the command line using: mysqld.exe "--defaults-file=D:...
Dave's user avatar
  • 101
0 votes
1 answer
438 views

Set security descriptor for windows server process

I would like to add a new DACL entry to the security-descriptor of windows service process. sc sdset allows to set permissions on the service for actions like start/stop/pause, but I want to set ...
Gyorgy Szekely's user avatar
3 votes
0 answers
1k views

Unable to start golang executable as windows service

I want to start a windows service written in golang on my Windows server build 1803. The golang script uses the service wrapper found here: https://github.com/kardianos/service The service is located ...
semaph0r's user avatar
  • 131
1 vote
1 answer
11k views

How to deploy a WSGI/Python app behind Nginx on Windows?

Coming from the Linux environment, I'll try to be as accurate as possible with Windows concepts I clearly don't master. Here's my current situation: I have a functional Windows (10 pro x64) Nginx ...
Glandalf313's user avatar
0 votes
0 answers
3k views

PowerShell automated service failure "Run a Program" recovery, "nt authority\local service" permission issue

I have written a simple powershell script to trigger an email notification and restart a service when a service failure occurs, and have been testing it on my desktop by crashing the Windows Audio ...
jellygatorade's user avatar
3 votes
0 answers
4k views

How to fix alerts in server manager for Tile Data model server service?

I manage a small collection of Windows Server 2016 Standard instances, virtualized on VMware and joined to an Active Directory domain. In Server Manager, I commonly see alerts on these servers for the ...
NReilingh's user avatar
  • 484
1 vote
1 answer
393 views

Server / service reboot order

I have a couple of servers that run several services. These services are depending on the availability of services on other servers. Example ServerA/webservice is depending on ServerB/sqlservice ...
Birger's user avatar
  • 113
2 votes
1 answer
5k views

Windows service accounts without password set

In Unix and Linux based system you usually run services in context of service accounts that have no password set and cannot be logged on. As far as I have understood, the processes are spawned from a ...
invictus's user avatar
  • 135
1 vote
1 answer
94 views

Always have enough resources for IIS asp.net site

I have an internet facing IIS asp.net site which is an ERP medical site built where users login, search for patients, download/upload documents, review bills, etc.... On the same VM (2012 r2, ...
Danny Rackow's user avatar
-1 votes
1 answer
738 views

How to block Windows Service from spawning new process

In continue to my SO question, I would like to know how it is possible, by GPO, or a security setting, to prevent from a Windows Service to spawn new process. I have a machine with Windows Service ...
ilansch's user avatar
  • 179
0 votes
0 answers
223 views

Include an external file in a Windows Service Deployment using sc.exe

I'm trying to deploy a windows service using a command like this: sc create MyApp binpath="C:\Path\service.exe" However, my service uses an external config file for some settings. Is there a way to ...
Paul Michaels's user avatar
1 vote
1 answer
6k views

How can I add a certificate to a Windows service's certificate store from the command line?

I want to add a certificate to the certificate store belonging to a Windows service, from the command line. So far, the only thing I've found is: certutil -service -store ADAM_Instance-Name\My When ...
user2871239's user avatar
27 votes
3 answers
15k views

How can I programmatically cause a new Windows user's profile to be created?

I'm creating a (local) user for a Windows service to run as. I've got good reasons for not wanting to use NETWORK SERVICE, LOCAL SERVICE, or LOCAL SYSTEM. I create the user via net user foobar "...
Peter Mounce's user avatar
  • 1,263
2 votes
1 answer
978 views

What is required for logging start/stop of the service?

I would like to log entry when some service was started/stopped. For example this post (Last restart/start time of a windows service) explains how to view logs. The problem is, when I start/stop ...
greenoldman's user avatar
0 votes
1 answer
129 views

Open multiple remote services in my windows

I want to manage on remote services of multiple servers. I find the way to remote control services, but every time i want to switch servers i must re-enter the machine name. Is possible to find a way/...
Zartch's user avatar
  • 101

1
2 3 4 5
9