PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework getprocessbyname permission on remote

Reply

getprocessbyname permission on remote

 
Thread Tools Rate Thread
Old 09-07-2008, 07:48 PM   #1
brickhouse
Guest
 
Posts: n/a
Default getprocessbyname permission on remote


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
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off