9

Is there a way to start services.msc already attached to a remote system (e.g. from command line)? I want to avoid clicking Action -> Connect to remote computer, because I have to do it so often...

3 Answers 3

2

Start mmc.exe and create a new, custom console that contains the objects you want to use.

You can store these and run them from anywhere as long as they contain remote machine names.

9

services.msc /computer=Gregg1

I thought this wasn't possible, but after I found this other question & answer it worked wonders for me! They listed the better tool (Computer Management) which shows Event Viewer, Services, Disk Management, Device Manager: compmgmt.msc -a /computer=Gregg1

The -a doesn't appear to be necessary, I am honestly confused what it does even after reading the mmc documentation on it

1
  • I've love to start RSOP.msc attached to remote PC (to trigger in a script) & haven't found a way to do it from the command-line. If anyone knows how to do it I think it'd be a helpful to put in a comment
    – gregg
    Jun 2, 2022 at 20:55
1

Sorry for reviving a dead post but for anyone searching for this answer, another option is to use the sc.exe command line tool. It will allow you to manipulate services at the command line.

http://technet.microsoft.com/en-us/library/bb490995.aspx

Another possible alternative (that I'm currently using but trying to get rid of(hence how I found this post lol)) is using a custom built Auto-It macro that opens the plugin and goes through the step-by-step that you're trying to avoid. I do the same with the printmanagement.msc, msinfo32, and regedit tools as well.

1
  • On the command line, of course, you can also use PowerShell or WMI or sc.exe for performing any service related tasks. Dec 7, 2015 at 23:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .