6

I have remote machine that I would like to manage using services.msc. The machine is not connected to the domain so I can't run the management tools as a user that the remote machine knows about.

When I use eventvwr, I'm able to specify a user that exists on the remote machine: Event Viewer has "Connect as another user" option

However, neither services nor 'compmgmt.msc' have this option: missing option for services/compmgmt

(I don't have enough reputation yet to inline the images, sorry!)

Is there a way to get this functionality for services.msc?

Thanks in advance!

Joe Taylor
  • 161
  • 1
  • 1
  • 6

2 Answers2

4

You can use a command line prompt along with RunAs to handle this:

runas /user:<COMPUTER\username> Compmgmt.msc –a /computer=COMPUTER

That should work for you....

TheCleaner
  • 32,352
  • 26
  • 126
  • 188
  • this does not work. it does not prompt for credentials, exactly how the OP described. I tried the "net use", which works perfect for file explorer, but does not apply to compmgmt.msc – rocketsarefast Nov 10 '14 at 17:13
  • I think you will never see the problem if your workstation uses the same domain user as the server. – rocketsarefast Nov 10 '14 at 17:16
  • @rocketsarefast - you are correct..I edited my answer – TheCleaner Nov 10 '14 at 20:41
  • 4
    Personally, I used `runas /netonly /user:Administrator "mmc compmgmt.msc /computer=10.0.2.15"`. I needed `/netonly` because the account I wanted to use did not also exist on my client machine (I think that’s what that flag is for…?). When I left out `mmc`, the command complained `193: compmgmt.msc /computer=10.0.2.15 is not a valid Win32 application.`. – binki Nov 13 '14 at 01:06
0

If the machine you are connecting to does not allow access with your credentials, is not a member of your forest, or is not joined to a domain; then there is one easy way to get all of your tools working. If you use the command line tool for drive mapping, you can also create an authenticated RPC session between your machines which will be used in any access attempt you make after this.

(MAP A DRIVE USING ALTERNATE CREDENTIALS)!!

then you can connect to remote computer via local services or component management tools

S

ExShire

ExShire
  • 11
  • 2