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
-1
votes
0answers
15 views

Windows Service running on Windows 10 to persistently connect to network share from comp running windows 7 - no domain

I'm trying to write a Windows service that will persistently connect and pull files from a network share on a windows 7 computer. Both computers are on a private network and the network share has read ...
2
votes
0answers
25 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 ...
1
vote
0answers
21 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 ...
0
votes
0answers
19 views

Ansible Windows install a service only if does not exist

I need to configure a service with ansible on Windows OS, but there are servers that has the service installed and others don't have. How can I specify in ansible playbook to install the service only ...
0
votes
0answers
44 views

Running powershell commands as other users from a Windows service

I have a java service running under NT Authority/LOCAL SYSTEM Account. I am trying to run a powershell command using java.lang.Runtime.exec() from the java service. I want the powershell command to ...
0
votes
0answers
27 views

Can I force the BITS service to Automatic (and not turning off) on Windows 10 Pro?

My problem is that I provide support for a Win10 computer where the BITS service works perfectly (no problems with Windows Update) but which runs a third party program with a (flawed) update mechanism ...
0
votes
0answers
12 views

Windows ServiceManager failed to detect service crash

We developed a Windows service in C#, it is deployed on a Windows 10 64bit machine. It is configured to be restarted by Windows ServiceManager in case of failures (any number of failures). Normally, ...
0
votes
0answers
21 views

Error While Trying to Run Local Service with a specific user: The remote server has been paused or is in the process of being started

I want to run a custom process running as local windows service with a specific user I have created instead of Local System account. I have successfully applied Service Logon permissions and Service ...
1
vote
1answer
156 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 ...
0
votes
1answer
159 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 ...
-1
votes
1answer
120 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 ...
0
votes
3answers
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 ...
1
vote
1answer
371 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 ...
0
votes
2answers
875 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 ...
1
vote
1answer
249 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 ...
1
vote
0answers
216 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, ...
1
vote
0answers
32 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 ...
0
votes
0answers
46 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 “...
0
votes
1answer
404 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 ...
0
votes
0answers
289 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: ...
1
vote
1answer
91 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:\...
0
votes
1answer
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 ...
0
votes
1answer
778 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:...
0
votes
1answer
201 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 ...
3
votes
0answers
640 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 ...
1
vote
1answer
5k 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 ...
0
votes
0answers
1k 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 ...
2
votes
0answers
2k 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 ...
1
vote
1answer
127 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 ...
2
votes
1answer
2k 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 ...
1
vote
1answer
40 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, ...
-1
votes
1answer
304 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 ...
0
votes
0answers
92 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 ...
1
vote
1answer
3k 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 ...
22
votes
2answers
6k 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 "...
1
vote
1answer
155 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 ...
0
votes
1answer
56 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/...
6
votes
2answers
10k 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 ...
0
votes
1answer
293 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. ...
0
votes
0answers
958 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 ...
1
vote
1answer
437 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 ...
4
votes
1answer
527 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' ...
2
votes
1answer
752 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 ...
1
vote
2answers
1k 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 ...
0
votes
0answers
256 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 ...
1
vote
0answers
216 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 ...
0
votes
0answers
81 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 ...
2
votes
0answers
76 views

Stopping a windows service via command line, where the service has symbols in it

For whatever reason the company who installed this service used the same name for the display and the service name. Which is this format (not exact wording to protect them) "Blah® Blah™ Agent ...
0
votes
0answers
92 views

Configure Windows Service user account based on Domain Controller check

We have a patching service which is a windows service that patches the non domain controller and domain controllers. Currently we were using same service account(account_abc) which has a Domain ...
0
votes
1answer
426 views

Exchange 2010 “Microsoft Exchange Transport” hangs every time

Our small network (1 server, ~10 workstations) runs Exchange Server 2010 on Windows 2008 R2 Standard; it has worked fine for years, but recently we cannot send or receive mail, though no error is ...

1
2 3 4 5
9