PC Review


Reply
Thread Tools Rate Thread

getprocessbyname permission on remote

 
 
brickhouse
Guest
Posts: n/a
 
      9th Jul 2008
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetProcessByName throws InvalidOperation Exception : Access denied =?Utf-8?B?U2lsdmVyIE9haw==?= Microsoft Dot NET Framework 2 11th Feb 2006 10:24 PM
RE: Process.GetProcessByName throws InvalidOperationException =?Utf-8?B?U2Z0d0R1ZGU=?= Microsoft Dot NET Framework 0 10th Jun 2004 05:01 PM
GetProcessByName / GetProcessByID Exception - Access Denied Diego Quiroga Microsoft Dot NET Framework 0 3rd Jun 2004 06:43 PM
RE: Process.GetProcessByName throws InvalidOperationException Yan-Hong Huang[MSFT] Microsoft Dot NET Framework 2 27th May 2004 10:07 AM
GetProcessByName WinXP problem... Roger Meike Microsoft Dot NET 3 5th Nov 2003 08:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:03 PM.