Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
21 views

Error 1053 when I try to start a service on Windows 10

The following procedure works well on Windows 7 but not with a my new installation of Windows 10. I create a service with sc: sc create test binpath=C:\path\to\my\service.exe Then, I try to start ...
1
vote
1answer
24 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
60 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
12 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 ...
0
votes
1answer
28 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 ...
19
votes
2answers
2k 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
54 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
36 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/...
1
vote
2answers
172 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
23 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
140 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 ...
0
votes
0answers
20 views

Permissions required for service account running Azure On-premise data gateway

I have an On-Premise Data Gateway connected to an Azure Data Gateway. It is being used to expose data for reporting. For the installation and our POC I used a local admin account on the on-premise ...
1
vote
1answer
25 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 ...
3
votes
1answer
166 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' ...
1
vote
1answer
99 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
1answer
193 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
110 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
39 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
24 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
71 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
55 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
256 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 ...
0
votes
1answer
440 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
177 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
154 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 ...
3
votes
2answers
3k 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
77 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 ...
0
votes
0answers
426 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
vote
1answer
529 views

Windows Error reporting stopped one service?

I have the problem with one service in win2k8 One of my service terminated unexpectedly while going through event logs i have following logs Event 7036 Source - service control manager The Windows ...
0
votes
2answers
26 views

How to make a Windows Service startup dependent on Java startup?

I have a Windows Service running that is dependent on Java booted up. When I reboot the computer, sometimes Java will take a while to boot up. The Windows Service will attempt to start, but fail since ...
0
votes
1answer
36 views

Cannot find certain Windows domain users

I see a service runnuing on my Windows Server Essentials 2016 domain controller with user name "MediaAdmin$": However, when I'm searching for this user in my AD, there are no results: I'm looking ...
1
vote
1answer
157 views

WERR_ACCESS_DENIED error despite all services running

I am trying to list all rpc commands from an Ubuntu machine on a Win 10 Pro machine: net rpc service list -I <ip> -U username Getting the following error: Failed to open Service Control ...
0
votes
1answer
491 views

Can't stop Base Filtering Engine service on Windows Server 2016 Essentials

According to Quickbooks Help, every time we restart our server (Server 2016 Essentials) we need to restart the Base Filtering Engine service. This procedure has always worked in the past for us. ...
0
votes
1answer
1k views

Access Denied when accessing Service controller from application

I have a web application written in c# mvc which is trying to check the status of windows service whether it is stopped or started. I have written the code but the issue is the code works fine on my ...
0
votes
1answer
103 views

Windows Service created & started at startup time using Powershell script not functioning correctly

I create a new AWS Windows 2016 Server instance and provide it the script to execute through User Data. The script first creates a Windows service, creates a new admin user, grants user the Logon as ...
0
votes
1answer
479 views

Windows Service vs. Task Scheduler with startup trigger

I'm running a desktop application as a service with the help of NSSM (Non Sucking Service Manager), which is a wrapper for applications which aren't made to run as a service to be run as a service. I ...
1
vote
1answer
2k views

'net view' generates error “The service has not been started”

I have a problem in Symantec Endpoint Protection Manager where by the computer browser to do a remote push install has randomly stopped working showing the error message Network Provider: Microsoft ...
2
votes
1answer
1k views

DCOM 0x80070005 Access Denied [closed]

I have very strange thing I can't beat up for couple of days. I have a self-written .NET based 32-bit service (compiled with x86 flag), that has worked on Win 10 Pro 64-bit machine, which consumes ...
0
votes
0answers
64 views

Windows Service Alternatives For Automatic Application Startup

I've written an ASP.Net MVC / SignalR web application written in C# which I'm hosting on an Azure virtual machine. It's also got a SQL-Server instance on it and three Windows Services. Despite the ...
1
vote
0answers
231 views

Windows core 2016 services permissions

Newly install Windows 2016 Core server, trying to change service startup type. It seems that default permissions for this service won't let me do it even with domain admin privileges. [servername]PS ...
2
votes
0answers
83 views

Windows 7 services not recognizing environment variable changes

I have 200+ Windows 7 machines that are part of a render farm. They're all running a service that is responsible for running render farm commands on the machine. Currently, several environment ...
1
vote
1answer
690 views

Windows: create a service for running a executable jar with out any external libraries

I have spring boot executable jar file which can run into any command prompt by calling java -jar filename.jar. I want to create a service with out downloading any external libraries for the above ...
-2
votes
2answers
4k views

Powershell - check if string is in list of strings

Context: We are making an API to get a list of all VMs and the filter it, using if loops, to return only VMs with name starting only with the values in $MachineList. The list of servers is split in 2:...
0
votes
1answer
54 views

Websphere 7 log not working from RAD ide but works when WAS start as Windows Service

i have the following strange behavior in WAS 7: When WAS Start as Windows Service, the log are write OK in the profile/log folder. When WAS is started from Rational IDE, the log don't work (the only ...
1
vote
1answer
112 views

Disable Proxy Server

We use a proxy server here but occasionally the user needs to disable it. I have the registry keys that disable it but it doesn't seem to take effect until after a reboot. Is there a service or ...
0
votes
2answers
64 views

Juicebox Job Scheduler as a Windows service?

Have been using the Juicebox Job Scheduler to run scheduled tasks on my Windows Server box for more than a year. However I need to manually start the scheduler each time I reboot as the scheduler is a ...
2
votes
0answers
89 views

Can I as a normal user run stuff under a managed service account?

Let's say I have remote access to a server which uses MSA's to run application pools and windows services. Can I as a normal (not elevated) user run program's under those MSA's? For example PsExec....
0
votes
1answer
335 views

What privileges are needed to restart jenkins successfully from the web interface?

I'm having an issue when I try to restart Jenkins using the web interface (either through http(s)://theserver/restart or http(s)://theserver/saferestart) because Jenkins gets stuck on the screen "...
0
votes
1answer
606 views

Start/stop windows service as user from command line

How can I start a service from the command line e.g. net start "sql server (sqlexpress2016)" without running with elevated privileges? The short answer is "you can't". But how come then Services ...
0
votes
1answer
575 views

Run powershell.exe as a service, or help me find an alternate solution

Summary: I need to run a Powershell script continuously in the background whether a user is logged on or not. This is on Server 2012. I ran the following command: sc.exe create "MyService" binPath="...