The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
248 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
380 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
173 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
4answers
6k 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
581 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
307 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
5k 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
132 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
2k 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 ...