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

IIS - Limit usage of each web application

I have two web applications hosted locally on my IIS. One is responsible for the core functionality of my website, and the other is responsible for executing background tasks (database tasks, API ...
0
votes
3answers
977 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 ...
0
votes
0answers
35 views

Does WinHTTP know it's running as a service?

My application uses a closed-source library that in turn uses WinHTTP to download files. According to Wireshark, my (IIS) web server returns a normal cache header with these files. Eg: HTTP/1.1 200 ...
1
vote
1answer
137 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
271 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
71 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 ...
0
votes
0answers
32 views

PostgreSQL service is constantly shutting down

I have a postgresql 11 database. I use Windows 10 OS. After my computer falls asleep I often have to manually turn on the service.Tell me maybe someone met such a problem.I'll be greateful for any ...
1
vote
0answers
73 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
27 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
44 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
139 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
223 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
50 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
650 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
0answers
29 views

Tomcat installation parameter for 'JvmOptions' are not reflecting

I am installing Tomcat8.5 on Windows Server 2012R2 as a services. The following custom batch files is executed for optimization. It installs tomcat as a services, but JvmOptions are note reflected in ...
0
votes
0answers
14 views

Cpassword Attribue Gone, Howto use with Server 2016 Service Users

I am an Administrator of multiple premise. For today i got an request to set on a 2016 Promise a serivce user on a Service the Ususually Way would be, create the GPO on computerconfig, ...
0
votes
1answer
339 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
115 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
308 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
3k 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
645 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 ...
0
votes
0answers
1k 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
94 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
891 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
170 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
35 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
1k 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 ...
20
votes
2answers
3k 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
93 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
50 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/...
4
votes
2answers
5k 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
142 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
681 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
249 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
410 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
432 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
747 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
224 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
79 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
64 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
74 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
75 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
377 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
vote
1answer
655 views

Windows Server 2012R2: Why does process survive “successful” taskkill?

I have a problem where IIS fails to shut down properly. IOW, when we do the standard NET STOP / NET START sequence, we end up with a service that is shutting down...forever. This causes my application ...
0
votes
1answer
288 views

Printing from Windows Service instance - can't see printers

I'm banging my head against a wall with this. I'm trying to call an external app (Foxit Reader) in order to print a PDF to a network or locally installed printer (I've tried both) from a windows ...
1
vote
3answers
321 views

How to investigate intermittent Windows Server “logon failure” problems?

I am currently working on a project for which the Apache web server is preferred, but Windows is mandatory. I have not used WAMP for some years, but I believe these days that it works well and is ...
11
votes
3answers
15k views

Set service StartType to Automatic - Delayed

Using Set-Service, I'm able to change the StartType of my services between the accepted values of Boot, System, Automatic, Manual, Disabled. Using services.msc, I'm able to set some services to ...
0
votes
1answer
81 views

How to verify who a service belongs to?

I am looking into the services installed in different versions of windows. Mainly Windows 7 and 10. Is there a way to find out if the service installed belongs to Windows or another program? And if ...
1
vote
0answers
1k views

Background Tasks Infrastructure Service event id 7046

I have a server running W2K12 R2. The server experiences a string of Event ID 7011 entries in the System Event log followed by Event ID 7046. 7011 error text states "A timeout (30000 milliseconds) ...

1
2 3 4 5
9