1

I have a remote machine running windows 7. It has two users. It has the default user with no password which is used for home theater purposes. I have a separate login I use for remote desktop. I would like to be able to be able to remote into my account and use a console command to start an application on the local login account.

Any ideas?

Kamil Kisiel
  • 12,184
  • 7
  • 48
  • 69
Paul
  • 53
  • 1
  • 3

3 Answers3

2

PsExec sounds like the app you are looking for.

psexec \\computer -u user -p psswd  cmd [arguments]

There are a lot of options such as which session to use as well.

Sim
  • 1,858
  • 2
  • 17
  • 17
  • 1
    Do you need to specify "-i 1" (or some other Session ID) for Windows 7? Just curious, I haven't tried psexec on RTM Windows 7, this used to be an issue with the pre-release versions. – Helvick Nov 10 '09 at 21:07
  • Is there a way to start a remote app without using third party software? Aside from logging into that user of course. -Helvick, I don't know anything about session IDs. – Paul Nov 10 '09 at 21:11
  • @Helvick - not sure about the session number. I am trying to test it myself. – Sim Nov 10 '09 at 22:38
2

You can use powershell. Windows 7 shipped with powershell 2.0, which has a lot of great remote utilities.

You can either open a new tab to a remote shell, or use winrm. These are both "native".

Joseph Kern
  • 9,899
  • 4
  • 32
  • 56
-1

I may have an answer, but I don't want to give you something that won't let you achieve the desired result.

Can you tell us why you need to launch an application as the other user?

Valvaris
  • 174
  • 1
  • 3
  • The remote machine hosts all of my torrent downloading as it is usually on. I would like to be able to remote start bittorrent so I may log in via uTorrent. Normally I would use remote desktop however that would log off whoever is watching TV. – Paul Nov 11 '09 at 01:57