Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
14 views

How to reset service permissions after messing up with `sc sdset`?

After applying this "solution" I have no way of starting the spooler service, not even as Admin. If I open services.msc as Administrator, that service has disappeared, as noted here (I wish I found ...
-1
votes
2answers
40 views

Force deletion of Windows service

I have installed a Windows service using the sc create method, then I later used the sc delete method to get rid of it, it then marked the service for deletion. I made changes to the service and ...
0
votes
0answers
322 views

windows command line start mysql with --skip-networking

Following How to start a service with certain start parameters on Windows. Any ideas why the following doesn't work? sc start MySQL --skip-networking mysql -uroot -p -e "show variables like ...
1
vote
1answer
578 views

sc command with wildcard

I have a commercial software that installed a lot of service started with the same prefix, i.e Product Service A, Product Service B ... Now I need to stop all these services, but sc doesn't seem to ...
4
votes
1answer
191 views

“SC.EXE config” and dollar sign in service name

Say I want to make Windows Service startup dependent on SQL Server. In my case service name for SQL Server is MSSQL$SQL11 (SQL11 is SQL Server instance name) However, when I issue this command: ...
2
votes
3answers
8k views

Execute Windows SC command as another user

I would like to execute the SC command against a network target as a different user. I need to be able to specify username and password on the commandline as well, as this is for scripting purposes. ...
1
vote
1answer
857 views

Using “sc” command to control services with whitespace in name

I need to stop service on remote machine. The problem is that service name contains whitespaces, and I get a message, that such service does not exist. sc \\machine stop "service name" How can I ...
2
votes
3answers
340 views

Windows Service Management from the Command Line: correct start type?

Services can be disabled using msconfig, and then enabled at a later time. I found that they can also be enabled or disabled using sc config commands, by setting the start option as disabled or one ...
2
votes
1answer
6k views

'pskill \\hostname winlogon' might budge a server “stuck rebooting”, but why?

Question: Executing remote (Sysinternals) command... pskill \\machine winlogon ...can budge a server that is stuck rebooting, but how/why does this work? How do you know which service to kill? To ...
0
votes
3answers
138 views

how do i create a 1 line command using “sc start” or “net start” on services whose names match a pattern?

I am creating a batch file to start several services, instead of enumerating each "net start" with the exact service name, how can i create the script to run "net start" on any service that begins ...
2
votes
5answers
3k views

Controlling services on another computer

I am currently writing a service for windows and I am frequently tweeking it and updating it on to my test computer. I would like to write a script that automaticly stops the service, updates the exe ...
0
votes
1answer
2k views

Remotely restarting a service for a non-administrator user

I need to give a non-administrator user the ability to restart a service on a server, but I'm getting "access denied" following these instructions: http://support.microsoft.com/kb/324802/EN-US/ I've ...