Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
13 views

Visualize output messages of custom windows server service

I have set up a new service on my windows server. This service is a python script that, when run in a terminal, prints to it some interesting (especially when things fail) information. Is there any ...
user avatar
  • 101
0 votes
0 answers
5 views

Service in manual startup. What is starting it?

I have Postgresql installed on a windows PC. On Windows 10. Nothing depends from it: It is in manual startup. But often I find it started. How can I find what is starting it?
user avatar
  • 151
0 votes
1 answer
29 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 ...
user avatar
0 votes
1 answer
105 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-...
user avatar
  • 703
-1 votes
1 answer
84 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.) ...
user avatar
0 votes
0 answers
56 views

Creation of a windows service with credentials powershell

I am trying to create a powershell script that can set up and configure a windows service on application server [string]$serviceAct = "myadminact" New-Item C:\Temp\pas.txt Set-Content C:\...
user avatar
  • 1
1 vote
1 answer
1k 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). - ...
user avatar
1 vote
1 answer
327 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 ...
user avatar
  • 115
2 votes
1 answer
47 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?
user avatar
  • 4,767
2 votes
0 answers
687 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 ...
user avatar
  • 121
1 vote
0 answers
132 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 ...
user avatar
1 vote
1 answer
342 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 ...
user avatar
0 votes
1 answer
444 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 ...
user avatar
  • 113
-1 votes
1 answer
413 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 ...
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 ...
user avatar
  • 171
1 vote
2 answers
633 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 ...
user avatar
  • 223
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 ...
user avatar
1 vote
1 answer
934 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 ...
user avatar
  • 725
1 vote
0 answers
320 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, ...
user avatar
1 vote
0 answers
54 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 ...
user avatar
0 votes
0 answers
51 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 “...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
365 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: ...
user avatar
  • 491
1 vote
1 answer
469 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:\...
user avatar
  • 3,317
0 votes
1 answer
1k 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 ...
user avatar
  • 11
0 votes
1 answer
1k 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:...
user avatar
  • 101
0 votes
1 answer
247 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 ...
user avatar
3 votes
0 answers
822 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 ...
user avatar
1 vote
1 answer
8k 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 ...
user avatar
0 votes
0 answers
2k 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 ...
user avatar
2 votes
0 answers
3k 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 ...
user avatar
  • 462
1 vote
1 answer
164 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 ...
user avatar
  • 113
2 votes
1 answer
3k 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 ...
user avatar
  • 135
1 vote
1 answer
46 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, ...
user avatar
-1 votes
1 answer
439 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 ...
user avatar
  • 179
0 votes
0 answers
125 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 ...
user avatar
1 vote
1 answer
4k 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 ...
user avatar
25 votes
2 answers
9k 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 "...
user avatar
  • 1,223
1 vote
1 answer
314 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 ...
user avatar
0 votes
1 answer
89 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/...
user avatar
  • 101
7 votes
2 answers
20k views

How to kill Windows service process stuck at starting?

Steps like Copy service name from service properties In administrator's command line run: sc queryex {here paste service name}, mark PID Run taskkill /f /pid {here paste PID} do not work, because ...
user avatar
  • 173
0 votes
1 answer
428 views

Restarting the windows service leads to multiple process instance

I have one background monitoring windows service which runs 24x7. I observed sometime when i do restart of service using windows service controller then it shows two instances of processes running. ...
user avatar
0 votes
0 answers
1k views

Windows services (Services.msc) not accepting logon user account password but using some default password

I've installed a Record Manager software over my Windows Server and after installation I am able to see a service generated by the installer in Service Control Manager Services.msc which at first ...
user avatar
1 vote
1 answer
620 views

Windows Service: specifying a custom stop command

We have a custom application that messes with a LOT of 3rd party resources. When terminating, we need to gracefully "give up the lease" so to speak. The app itself is written in .NET Core (and ...
user avatar
  • 13
4 votes
1 answer
689 views

Do group policy shutdown scripts run before Windows Services shut down?

You can have a [shutdown] section in group policy which specifies some scripts to run during system shutdown. Do all these scripts run before Windows services start receiving 'Preshutdown' ...
user avatar
2 votes
1 answer
1k views

Is a windows service installed globally?

I have coded a simple c# windows service.If its installed using installutil ,will the service be available for all users of the system? In case of server operating system,under what account the ...
user avatar
  • 181
1 vote
2 answers
2k views

Installation loop: "The specified service already exists" and "The specified service does not exist as an installed service"

When installing an in-house developed service on a Windows Server 2012 R2, the system has somehow come into a state where InstallUtil.exe thinks a service both exists and does not exist. Upon ...
user avatar
0 votes
0 answers
269 views

Initialize service on remote computer without LocalAccountTokenFilterPolicy

I'm trying to use PsTools to configure remote computers. When I tried to initialize a Ps service at the remote computer for the first time, I got an Access is denied. error, even when authenticated as ...
user avatar
  • 101
1 vote
0 answers
375 views

Some Windows services not visible remotely

I'm struggling to figure out what is going on, but it has a pretty widespread effect on a system I'm working with. I originally asked this on stack overflow and It was recommended I check here. OP ...
user avatar
  • 111
0 votes
0 answers
112 views

Which user samba4-AD account for service on windows server

I am a linux sysadmin by trade - please forgive this 'basic' question. In an ad-controlled environment (using samba 4), I want to setup a server with windows on it, to run two windows specific ...
user avatar
  • 3,989

1
2 3 4 5
9