I have created a windows service and in the service in control panel -> administrative tools -> services, its status is starting.
I want to stop this service, but the stop option is grayed out.How can I start/stop the service?
Classic Our most ordinary CAD solution for 2nd patterning engineers including input of existing requirements, evolved grading and form transfer. Power A robust 2nd and 3D pattern engineering approach incorporating a full grading system advanced last pulling down procedure and the entire features observed inside Shoemaster basic and Esprite. Based on proven technological know-how developed over 4 many years, the application is used efficiently international by a portfolio of long standing buyers. Esprite The excellent answer for 2d pattern grading including 2nd kind input and automatic pattern new release.
Every time I restart, then it becomes stopped and I can delete it.
8 Answers
If you run the command:
where is the the name of the service, not the display name (spooler, not Print Spooler), at the cmd prompt it will return the PID of the process the service is running as. Take that PID and run Free animation.
to force the PID to stop. Sometimes if the process hangs while stopping the GUI won't let you do anything with the service.
You could do it in one line (useful for ci-environments):
Filter -> Services -> ServiceName equals SERVICE_NAMES -> Force
Source: https://technet.microsoft.com/en-us/library/bb491009.aspx
Disable Services Windows 10
If the stop option is greyed out then your service did not indicate that it was accepting SERVICE_ACCEPT_STOP
when it last called SetServiceStatus
. If you're using .NET, then you need to set the CanStop
property in ServiceBase
.
Of course, if you're accepting stop requests, then you'd better make sure that your service can safely handle those requests, especially if your service is still progressing through its startup code.
Use the Task manager to find the Service and kill it from there using End Task.Always does the trick for me.
If you have made the service yourself, consider removing Long running operations from the OnStart event, usually that is what causes the Service to be non responsive.
Open command prompt with admin access and type the following commands there .
a)
Windows Monitoring Service
it displays list of all available services . There you can see the service you want to stop/start/restart . Remember PID value of the service you want to force stop.
b) Now type
and press enter. On success you will get the message “SUCCESS: The process with PID has been terminated”.
DOWNLOAD LINK: Song: Desmeon - Undone (feat. Steklo) Subscribe, Like and also. Magix Music Maker 17 free full download serial: MAGIX Music. (Descargar Magix Music. Magix music maker 17 review. Part 1 part 2 http://www.mediafire.com/?0srged3dpohfdds. LINKS: MusicMaker (LINK ARREGLADO): Crack: Como Descargar.
This will forcibly kill the frozen service. You can now return to Server Manager and restart the service.
As Aaron mentioned above, some services do not accept SERVICE_ACCEPT_STOP
messages, by the time it was developed. And that is hard coded into the executable. Period. A workaroud would be not to have it started, and as you cannot change its properties, forcibly do the following:
- Boot into safe mode (Windows 10 users might need msconfig > boot > safe boot)
- Regedit into HKLM > System > ControlSet001 > Services
- Locate your service entry
- Change 'Start' key to 3 (manual startup) or 4 (disabled)
If you cannot change the entry, right-click on your service name on the left pane, select 'Permissions', check that 'Everyone' has full access and try step 4 again.
Don't forget to disable safe boot from msconfig again, and reboot !
I had the same problem. If you are not an admin on the computer, you need to run Services as an admin.
I solved the problem with the following steps:
Open 'services.msc' from command / Windows RUN.
Find the service (which is greyed out).
Double click on that service and go to the 'Recovery' tab.
Ensure that
- First Failure action is selected as 'Take No action'.
- Second Failure action is selected as 'Take No action'.
- Subsequent Failures action is selected as 'Take No action'.
and Press OK.
Now, the service will not try to restart and you can able to delete the greyed out service from services list (i.e. greyed out will be gone).
Not the answer you're looking for? Browse other questions tagged windows-services or ask your own question.
- Download the ps tools from http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
- Extract it to the local disk (I have done it under c:)
- Open the command prompt in an elevated mode (run as administrator).
- Navigate to the ps tools folder (in my case its c:psexec)
- Run the command psexec –I –d –s cmd
- Click ‘Agree’ on the license agreement.
- This will open the command prompt as ‘nt authoritysystem’ (To verify it run the command whoami on the new command prompt)
- Run the command ‘sc delete WLMS‘ to delete the Windows licensing monitoring service.
- Run the command regedit to modify the registry
- Navigate to HKLMàSystemàCurrentControlSet àServices
Note: Please don’t try this on production environment as it is not supported by Microsoft http://support.microsoft.com/kb/2021579. But it will be helpful for preparing demo and testing Machines in the lab which is required to run without restart after each hour, beyond the rearm time limit.