Tech Support > Computers & Technology > Query Process on W2K3 server
Query Process on W2K3 server
Posted by Rob on August 23rd, 2005


Hi,

I hope someone can help with this problem that I've been scratching my
head over for more than a month....have posted to groups I thought
were relevant, but no dice so far. I am running a terminal server
(2003) which runs several instances of the same program - let's call
it proggie.exe.

I'm writing a simple script that a user can run to show them how many
proggie.exe's are running, and who is running them. I've been through
pslist, pmon and a few others and have settled on QUERY PROCESS * (or
QPROCESS *) which seems to do exactly what I want. But only as
Administrator. As Admin I get an output like this:
nag2 rdp-tcp#12 3 1052 proggie.exe
super rdp-tcp#16 4 344 proggie.exe
super rdp-tcp#16 4 2472 proggie.exe

As super (the user who is running the script) it comes out like this:
(unknown) rdp-tcp#12 3 1052 proggie.exe
super rdp-tcp#16 4 344 proggie.exe
super rdp-tcp#16 4 2472 proggie.exe

ie. anyone who isn't super isn't identified.

Any ideas how I can give super enough rights to enable this function?

I've tried adding super to query.exe to no avail.

many thanks
-Rob
robatwork at mail dot com

Posted by Rob Burghdoff on August 24th, 2005



"Rob" <robatworkDELETE_this@mail.com> wrote in message
news:624ng1t9mp2ref161nvkumt7mvkea67dv0@4ax.com...

I say find someone who's familiar with vb.net and write a program that's a
wrapper.
Make the program runas administrator while the user is still just standard
user or power user.
I don't know the exact commands but I know you can execute commands using
"runas" in windows 2000 and up.

--
Rob
http://www.techhowto.org



Posted by Rob on August 24th, 2005


On Tue, 23 Aug 2005 20:10:34 -0400, "Rob Burghdoff"
<ZZZZboards@ZZZtechhowto.orgZZZZ> wrote:


OK nice suggestion, thanks
Rob


Similar Posts