Questions tagged [service-control-manager]
20 questions
20
votes
5 answers
remote sc OpenSCManager query failed 5 access denied
I'm writing a script that periodically checks that certain services are running on remote workstations. I'm having a devil of a time getting an "SC \workst1 query" command working from one test machine to another. Both machines are running XP pro…

Ralph Garou
- 201
- 1
- 2
- 3
10
votes
1 answer
create dummy windows server with started status
I have created a dummy windows service using the following command:
sc create TestService binPath= C:\Temp\TestService.exe DisplayName= "TestService " start= auto
It successfully created a dummy service in services.msc but I would also need it to…

lulala
- 637
- 4
- 12
- 21
8
votes
1 answer
Reinitialize Windows Event Log service without reboot
I am working on application which logs to a custom event log. Application was recently rebranded, and the name of event log has changed (from "CompanyA Events" to "CompanyB Events"). The name(s) of event log sources ("Subsystem1", "Subsystem2", etc)…

galets
- 17,802
- 19
- 72
- 101
5
votes
0 answers
RequestAdditionalTime has no effect
I have a Windows Service that Imports files into DB. When the Service receives to stop notification, It should complete the current Import if possible. It can take several minutes to complete.
Therefore I use the ServiceBase.RequestAdditionalTime…

Thomas Zweifel
- 627
- 1
- 6
- 19
5
votes
2 answers
Do Windows services need to ensure that commands can be processed on different threads?
When run via the Service Control Manager do Windows services need to assume that command processing methods (OnStart, OnStop, etc.) can be called on different threads with nothing ensuring that, e.g., assignments to members will be visible between…

Redwood
- 66,744
- 41
- 126
- 187
3
votes
1 answer
Provide IIS/PHP privileges to Windows Service Control Manager (SCM)
So I'm calling a PHP function to access the status of a Windows 7 service as follows:
win32_query_service_status($service_name);
When running under a locally-installed WAMP instance, the function returns an array of information, as expected.
When…

cartbeforehorse
- 3,045
- 1
- 34
- 49
1
vote
0 answers
Didn't receive SERVICE_CONTROL_SHUTDOWN
Is there any scenario that SCM won't deliver SERVICE_CONTROL_SHUTDOWN to all services or service is not able to receive SERVICE_CONTROL_SHUTDOWN?
I tried to search this on internet but I didn't find any related articles or discussion.
The issue of…

Calvin Wu
- 142
- 10
1
vote
1 answer
Upload batch Job XML in Control-M enterprise manager automatically through linux script
Please suggest how to Upload batch Job XML in Control-M enterprise manager automatically through Linux script.
Everyday I have to upload this XML through Control-M Desktop and then it gets reflected in Control-M enterprise manager for the jobs to…

anirban
- 11
- 4
1
vote
1 answer
Impersonation alternating between success and failure each run
Good day,
I wrote a Windows Service Program to let myself check if certain services are running on a remote machine.
The program triggers every minute and then it prompts me when the service status has changed.
I used this code to do the…

D. Jonker
- 103
- 1
- 7
0
votes
1 answer
Time in 12-hour format in Control M
How to send email Notification with below date and Time format in header of email
2020-12-31 01-30-25 PM
I am able to derive time by creating 3 local variables then concatenating them but time is displaying in 24-hr format
%%HOURS …

NorthPole
- 27
- 7
0
votes
2 answers
stop multiple service controller queries inside NodeJs promise while loop
I'm trying to start a windows service from a node script. This service has a bad habit of hanging and sometimes requires a retry to start successfully. I have a promise while loop setup (Please feel free to suggest a better way). The problem I'm…

Jmh2013
- 2,625
- 2
- 26
- 42
0
votes
1 answer
How to force start Control M jobs using Unix Script
I am able to Force Start jobs in Autosys using shell script but for Control M I am not finding any shell script command to Force start jobs.
Any Command we have to force start Control Job?

Rahul Kumar Singh
- 117
- 1
- 14
0
votes
1 answer
Control M specific job status to a excel
I have configured control-m batches to execute complex job/workflows.
Is there a way to get the specific job/workflow status to a excel or csv ?
user4017080
0
votes
1 answer
Running tomcat7 (or just java) as NT AUTHORITY\LocalService
We need to start running our Tomcat7 and Java services under the NT_AUTHORITY\LocalService account. Our C services run fine, but the Java and Tomcat services just silently fail.
We install the services under the Local System user, then use SCM to…

wdtj
- 4,554
- 3
- 17
- 20
0
votes
1 answer
c++ Garbage Collection crashs application
I actually don't even know what is going on here, but I hope someone can help me.
A while ago, I created a class to control windows services, using the Windows API SC. For a long time it works fine, without serious error. But today I used this class…

Eric
- 75
- 2
- 14