|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GetProcessByName throws InvalidOperation Exception : Access deniedI'm running a VB.NETcode that uses GetProcessByName to verify if a certain process is currently running on remote computers. The computers are in the same network domain as my computer. The code works just fine if I'm looking at my own computer, but it throws InvalidOperation exception : Access denied when I tried to verify the running process on remote computers. I have verified the following on the remote computers: 1. Process performance counter is NOT disabled. I don't see "Disable Performance Counters" REG_DWORD registry value in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\PerfOS\Performance 2. Counter and Help registry values are INTACT in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009 Can anyone tell me why GetProcessByName throws InvalidOperation access denied when I use it to see running processes on remote computer? Is there a minimum permission level to access remote computer? Thanks. Michael Hello,
You have to have administrative permissions (or at least really elevated ones) on the remote machines to query for the process list. This is not ..NET-specific, it's how Windows works. Show quote "Silver Oak" <Silver***@discussions.microsoft.com> wrote in message news:5C9196D2-9409-48CB-A8A5-D327282B9EEE@microsoft.com... > Hello, > > I'm running a VB.NETcode that uses GetProcessByName to verify if a certain > process is currently running on remote computers. The computers are in > the > same network domain as my computer. The code works just fine if I'm > looking > at my own computer, but it throws InvalidOperation exception : Access > denied > when I tried to verify the running process on remote computers. I have > verified the following on the remote computers: > > 1. Process performance counter is NOT disabled. I don't see "Disable > Performance Counters" REG_DWORD registry value in the > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\PerfOS\Performance > > 2. Counter and Help registry values are INTACT in the registry key > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows > NT\CurrentVersion\Perflib\009 > > Can anyone tell me why GetProcessByName throws InvalidOperation access > denied when I use it to see running processes on remote computer? Is > there a > minimum permission level to access remote computer? Thanks. > > Michael Thank you Dmytro. I will give it a try.
Michael Show quote "Dmytro Lapshyn [MVP]" wrote: > Hello, > > You have to have administrative permissions (or at least really elevated > ones) on the remote machines to query for the process list. This is not > ..NET-specific, it's how Windows works. > > "Silver Oak" <Silver***@discussions.microsoft.com> wrote in message > news:5C9196D2-9409-48CB-A8A5-D327282B9EEE@microsoft.com... > > Hello, > > > > I'm running a VB.NETcode that uses GetProcessByName to verify if a certain > > process is currently running on remote computers. The computers are in > > the > > same network domain as my computer. The code works just fine if I'm > > looking > > at my own computer, but it throws InvalidOperation exception : Access > > denied > > when I tried to verify the running process on remote computers. I have > > verified the following on the remote computers: > > > > 1. Process performance counter is NOT disabled. I don't see "Disable > > Performance Counters" REG_DWORD registry value in the > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\PerfOS\Performance > > > > 2. Counter and Help registry values are INTACT in the registry key > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows > > NT\CurrentVersion\Perflib\009 > > > > Can anyone tell me why GetProcessByName throws InvalidOperation access > > denied when I use it to see running processes on remote computer? Is > > there a > > minimum permission level to access remote computer? Thanks. > > > > Michael > > > |
|||||||||||||||||||||||