Launch a program remotely

Solved
olivier de rouen Posted messages 34 Status Member -  
 Panzercore -
Hello everyone,
I am trying to find out if it is possible to launch a program from pc1 on pc2 (the program is in a shared directory and I have all the necessary rights). The reason I am reaching out to you is that my problem is a bit more complicated. I do not want to install any software or need to download additional components beyond those present on Windows XP.
Configuration: Windows XP Internet Explorer 6.0

21 answers

  • 1
  • 2
  1. olivier de rouen Posted messages 34 Status Member 8
     
    The problem is therefore solved, I used pstools, and more specifically psexec. It is a DOS command that allows you to launch an executable remotely, available for free download on Microsoft's website. The usage is simple and the tool comes in the form of an executable (it is present on the machine sending the command but not on the PC receiving the command).
    8
  2. seb4242 Posted messages 99 Status Member 43
     
    Hello,
    I had the same problem as Olivier, and I want to say that I tried psexec.exe and it works perfectly.
    A simple example: Launch Windows Notepad on the other machine:
    psexec.exe -e -i \\computerName notepad

    Thank you
    Sébastien
    2
  3. Nantoine Posted messages 4 Status Member 16
     
    Hello,

    Normally, the answer is no (there are too many security risks involved).

    That said, there are techniques that can achieve similar outcomes.

    A first technique is to open a session directly on PC2 (either using NetMeeting/sharing the desktop, a Remote Desktop client, or via VNC, ssh, rsh, or an equivalent).

    Another technique is to have a program running continuously on PC2 (a service) that is responsible for launching the specific program when PC1 gives it any indication; in fact, this is a simplified version of the above case, but it's simple enough for a programmer to handle; however, be sure to study the protocol's security carefully.

    For programmers, there's the DCOM protocol, which allows you to execute a COM program (from Microsoft) on another machine (which means you need to significantly modify the program to comply with Microsoft’s conditions). In fact, this is a variation of the above case, as the service on PC2 is installed with Windows! And if you dig a little, you'll see that configuring all of this regarding security is not easy...
    1
  4. raphy
     
    Good evening everyone

    I have a problem with this same software; I'm trying to launch my app on a remote machine. I see it in the processes, but the graphical application does not launch. I've tried several exes, including notepad.exe. Do you have an answer for me?

    "The only thing I know is that I know nothing."
    1
  5. med
     
    I want to access the router from my PC on a local network.
    What should I do?
    1
  6. U_Gk Posted messages 464 Status Member 78
     
    Hi,
    I don't know if I'm wrong and someone could correct me, but if my memory serves me right, back on XP with two PCs on a LAN, I could launch games and other programs by just clicking on the executable. Now, if that doesn't work, there's a software on XP that allows remote control, a sort of enhanced Telnet, often used for graphical applications in router or switch configurations...
    See you and good luck, as soon as I have more info I'll let you know!

    --
    >> U_Gk << In the middle of a networking internship :p
    0
    1. olivier de rouen Posted messages 34 Status Member 8
       
      In fact, if I click on the executable from PC1, it runs on PC1, but I want it to run on PC2.
      If you have any information about an enhanced telnet available on all PCs running XP, I'm interested; I look forward to hearing from you. Thank you.
      0
    2. olivier de rouen Posted messages 34 Status Member 8
       
      If someone else has a solution (whether different or not)...
      0
    3. sans_surnom Posted messages 195 Registration date   Status Member Last intervention   36
       
      an idea like this:
      put 2 icons on your PC, the 1st for the local PC and the 2nd with the path to the executable of the 2nd PC (however, to access this 2nd PC, it would be necessary (in my opinion, in the simplest way) to connect the disk of the 2nd PC as a network drive)

      it's an idea like that, I'm not sure it will work
      otherwise, yes, the remote control with Windows and launching the executable from the 2nd PC while taking control of the 1st


      (I wasn't very clear on this one)
      0
    4. olivier de rouen Posted messages 34 Status Member 8
       
      In fact, the executable is present in a shared directory, so by using the explorer or DOS commands, or in programming, I can launch the executable. The problem is that the executable is launched on the PC that sent the command, whereas I would like it to be executed on the other PC.
      0
    5. francois
       
      Hello,
      I have the same problem as Olivier, as I need to know how to set up a local network between several PCs by integrating a server so that every task done or updated will be seen by the other PCs that have dependent tasks from this modification.
      Thank you in advance :)
      0
  7. olivier de rouen Posted messages 34 Status Member 8
     
    You may find me annoying and demanding, but I didn't want to download anything (components or software), so psexec and vnc are out of the question.
    As for rsh commands, they are no longer available with XP (Nantoine must be right, it must be for security reasons).
    Maybe I am being too demanding and there is no solution.
    But when I have a virus on my PC, it executes by itself...
    So it must be possible... (plus I have administrative rights)
    0
  8. sans_surnom Posted messages 195 Registration date   Status Member Last intervention   36
     
    Remote desktop connection (basic on Windows) for example?
    0
  9. olivier de rouen Posted messages 34 Status Member 8
     
    So this message is apparently the last one, thanks to everyone, I've decided to use the psexec command from pstools. I didn't want to download anything but miracles...
    So thank you nantoine, I'm downloading pstools from Microsoft.
    0
  10. olivier de rouen Posted messages 34 Status Member 8
     
    Well, in the end, it wasn't the last one. I would like to get some clarification about pstools. It's for use in a program. So, do I need to install it on the PC or do I place it with the files of my program? Is there a preferred location?
    And when I call psexec, do I need to specify its location? Should I execute it, or do I just type psexec in the command prompt (or in the batch file) and it takes care of itself? I would appreciate all these clarifications, thank you.
    0
  11. olivier de rouen Posted messages 34 Status Member 8
     
    If someone knows a way to get the source code of psexec or an equivalent tool to see how they did that, it would be very helpful to me. Thank you.
    0
  12. Toubip'pc
     
    Hello,
    For the router:
    type "ipconfig" in the command prompt
    take the IP address of your gateway,
    type it in your internet browser after "http://***.***.*.*"
    And you will access the graphical interface of your router
    It will likely ask you for a login and a password (even by default)
    check the manufacturer's website or the router's manual
    0
  13. Toubip'pc
     
    RE,
    I would like the same thing as Olivier,
    I can already execute shutdown to turn off the computer remotely,
    but that's because the syntax option allows it from the command itself!
    And then I have to log onto my server as an administrator first! ex: open \\nomdupc\admin$
    I enter the login and the Administrator credentials and I run the command in the DOS command prompt:
    shutdown "-m \\nomdupc" ----> remote
    "-s" -------------------> to turn it off
    etc.. (see help by typing the command "shutdown")
    It works!!!
    But I would like to do it all in one command.
    Does anyone know a syntax for a pre-command to send a command as an administrator
    like:

    shutdown "-m \\nomdupc" -s -f /user.administrator pass

    I have already tried that, it doesn't work- ;-)
    I also tried to launch it by double-clicking on the remote machine by entering the directory, but it's mine that shuts down :-) :-$
    I'm going to gather some information to see if pstools would allow me to run other applications this way remotely,
    especially how!

    I would also like to share an application, let me explain:
    - Install, for example, Nero in a shared folder that I would put as a network drive on the client PC (the installer itself on the client machine if needed) and start a burn on the server PC's burner
    - a way to install a download manager software and be able to manage the downloads, etc... that the other machine executes or will execute
    - last example, run the Windows firewall from the service pack 2 of the other workstation and be able to adjust preferences (by double-clicking the file extension %system%, it's the client machine that opens)
    If possible without alternative software like VNC, but with any network configuration.

    The last (for now) operation or procedure that I would like to know
    is how to share the CPU resources of a PC that would be idle on my network,
    even if that means setting up a whole new PC

    Don't hesitate if you have any of this information!!!!
    Thanks to all
    0
  14. jioseng
     
    Hello,

    I discovered this post that could solve my problems. I would also like to launch applications without going through VNC.
    When I run this command
    psexec.exe -e -i \\computerName notepad

    it shows a bunch of comments in the cmd and doesn't launch my notepad. I'm really having a hard time understanding how it works :s
    0
  15. Nantoine Posted messages 4 Status Member 16
     
    Rather than using Shutdown in an open session with PSExec, it is MUCH easier to use PSShutdown, which is included in the same archive.
    0
  16. xouille11
     
    Désolé, je ne peux pas vous aider avec ça.
    0
  17. Xurion
     
    Tough luck, the iPhone has Bluetooth limitations to avoid security issues and also because it's Apple's strategy to restrict certain options...
    0
  18. remybig
     
    Hello everyone.

    So, in the madness of twisted commands

    I'm looking to have on a "server" PC multiple desktops (or screens) but with only one display

    and several client PCs running Windows, Linux, Android, and iPad with a client installed listening on the server.

    On the master PC, I want to be able to launch an application (like GIMP, Photoshop, VLC) and with just a right-click, send one of the windows to one of the client PCs which will display it in full screen.

    There shouldn't be any action needed on the client side.
    0
  19. Panzercore
     
    Hi everyone
    instead of bothering you, use netcat, it's free and easy to use
    0
  • 1
  • 2