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. General Programming
  3. C#
  4. Using C# like remote desktop?

Using C# like remote desktop?

Scheduled Pinned Locked Moved C#
csharpsysadminperformancequestion
3 Posts 2 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.
  • I Offline
    I Offline
    InvalidTypecast
    wrote on last edited by
    #1

    I have network access to machines on the domain via remote desktop connection. I am trying to see if there is a way using C# to write an application that allows me to logon to the machine in such a way that it would allow me to check if a process is in memory. Essentially I am trying to automate the process of checking to see if an executable that is supposed to be running is in fact running on 20 or so different machines without having to use Remote Desktop to login and physically inspect them. Can someone point me in the right direction if it is possible?

    T 1 Reply Last reply
    0
    • I InvalidTypecast

      I have network access to machines on the domain via remote desktop connection. I am trying to see if there is a way using C# to write an application that allows me to logon to the machine in such a way that it would allow me to check if a process is in memory. Essentially I am trying to automate the process of checking to see if an executable that is supposed to be running is in fact running on 20 or so different machines without having to use Remote Desktop to login and physically inspect them. Can someone point me in the right direction if it is possible?

      T Offline
      T Offline
      TJoe
      wrote on last edited by
      #2

      You can use the Process.GetProcesses()[^] method. This method will use the same credentials as the user than runs your C# application. This user would need to have permissions to list processes on the remote box. In addition, there's a problem[^] with listing processes on certian windows boxes. You can impersonate another user in C# as described here[^].

      Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

      I 1 Reply Last reply
      0
      • T TJoe

        You can use the Process.GetProcesses()[^] method. This method will use the same credentials as the user than runs your C# application. This user would need to have permissions to list processes on the remote box. In addition, there's a problem[^] with listing processes on certian windows boxes. You can impersonate another user in C# as described here[^].

        Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

        I Offline
        I Offline
        InvalidTypecast
        wrote on last edited by
        #3

        That's cool. I didn't know Process.GetProcesses could get the processes of a remote machine. I thought it was limited to where the exe was run from. "The More You Know..."

        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