Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on Windows xp, sp2. No hack for concurrent sessions installed. I want to simply execute a single command on remote desktop, and nothing else, no gui etc required, as either the user who's already logged in, or as a different user. I already have admin permission. The command will not be gui-based, and I don't want to install a software on either host or client. Can someone tell me how to do that, if its possible.

The machine to which I will remote desktop is: Windows xp sp2. I will remote desktop from linux.

EDIT: I can remote desktop from Windows xp+ too, however, I prefer a solution for Linux.

EDIT: My major concern is that the user currently logged in should not be logged off.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Running a command on a remote machine can be done in multiple ways: PowerShell remoting, pssexec, remote desktop (psexec is probably the easiest for a one shot use), but these will all either create a new session or run as system.

I.e. they won't run as the logged in user on that remote machine.

If you don't really need to run as the logged in user see above. Otherwise group policy to set a login script might be the simplest approach.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.