Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Invoking Process on Remote Machine

Invoking Process on Remote Machine

Scheduled Pinned Locked Moved System Admin
csharpasp-nettutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    specialdreamsin
    wrote on last edited by
    #1

    Hi, I have written code in asp.net to start a application on remote machine. It is working fine. But on remote machine the process is executing in background. How to bring it to foreground ? Ramesh Sambari

    D 1 Reply Last reply
    0
    • S specialdreamsin

      Hi, I have written code in asp.net to start a application on remote machine. It is working fine. But on remote machine the process is executing in background. How to bring it to foreground ? Ramesh Sambari

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can't. You cannot start a user-interactive process on a remote machine, for what I think are obvious reasons.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You can't. You cannot start a user-interactive process on a remote machine, for what I think are obvious reasons.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        G Offline
        G Offline
        Gary R Wheeler
        wrote on last edited by
        #3

        *cough* Not entirely true *cough*. It requires some really arcane logic with the service control manager, and a certain measure of permissions on the target machine, but it can be done. I have a 'remote installer' for a headless machine on one of our products. It copies the install package to the destination machine and then executes it remotely by installing a service that creates an interactive session and runs the install package.

        Software Zen: delete this;
        Fold With Us![^]

        D 1 Reply Last reply
        0
        • G Gary R Wheeler

          *cough* Not entirely true *cough*. It requires some really arcane logic with the service control manager, and a certain measure of permissions on the target machine, but it can be done. I have a 'remote installer' for a headless machine on one of our products. It copies the install package to the destination machine and then executes it remotely by installing a service that creates an interactive session and runs the install package.

          Software Zen: delete this;
          Fold With Us![^]

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          * cough * it can also be done with PSEXEC, but in either case, 9 out of 10 reaons people come up with to justify doing something like this are crap. It's just too easily abused and I don't/won't support it.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          G 1 Reply Last reply
          0
          • D Dave Kreskowiak

            * cough * it can also be done with PSEXEC, but in either case, 9 out of 10 reaons people come up with to justify doing something like this are crap. It's just too easily abused and I don't/won't support it.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            9 out of 10 reaons people come up with to justify doing something like this are crap. It's just too easily abused

            Agreed.

            Dave Kreskowiak wrote:

            I don't/won't support it

            I wish I had the freedom to make that choice :(.

            Software Zen: delete this;
            Fold With Us![^]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups