brickhouse
7/9/2008 5:48:00 PM
Can anyone tell what permissions I would need set in order to use the
getprocessbyname to access a remote server. I have a VB application
that works good accessing a XP server from my PC but there are two
other servers that give me access denied. The fact that I can access
one server but not the others tells me that the code works fine and
that there must be something on the other servers for permissions or
possibily something else not set correctly.
Imports System.Diagnostics
Imports System.ComponentModel
Public Class Form1
' ProcessMonitor()
Sub ProcessMonitor()
' GetProcessesByName(), our victim is Notepad...
Dim processes() As Process =
Process.GetProcessesByName("notepad", "10.10.30.30")
' Found something?
If processes.Length > 0 Then
Dim cnt As Integer
TextBox1.Text = Format(processes(cnt).WorkingSet64 / 1024,
"0,0")
End If ' If processes.Length > 0 Then
End Sub