Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: "Ramesh, MS-MVP" <ramesh@xxxxxxxxxxxx>
- Date: Tue, 21 Feb 2006 09:14:27 +0530
You may use the following script. Lists all the processes running in the
currently logged on user account.
- - -
strComputer = "."
Dim strUserName
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_ComputerSystem")
For Each objItem in colItems
strUserName = objItem.UserName
Next
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process")
For Each objProcess in colProcessList
colProperties = objProcess.GetOwner(strNameOfUser,strUserDomain)
If strUserDomain & "\" & strNameOfUser = strUserName Then
WScript.Echo "Process " & objProcess.Name & " is owned by " _
& strUserDomain & "\" & strNameOfUser & "."
End If
Next
- - -
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"cap77" <capostolo@xxxxxxxxx> wrote in message
news:1140418408.866966.198750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi, sorry for the confusion (blame this on my lack of experience with
this stuff and the fact that ive been trying to fix my computer for
hours!)
when i link to the sites you posted, i cant see how exactly i would run
those scripts myself... do you just copy and paste the commands into my
cmd file? or do i need to launch some other wmi program (the articles
reference logging onto a wmi service?
as you can see, i need some help translating to plain english.
finally, do you have a suggestion to see all users (local or networked)
and what programs they are running?
i have a vpn connection to a closed-end server (thru work) and need to
know what i am sending over to that server on an ongoing basis. i' ve
only ever had a traditional LAN DSL connection from one independent
home computer, and am having a difficult time tracking processes and
programs running off of my home computer when i am logged on via VPN
and also my regular internet connection. does this make sense?
thx, appreciate your patience
.
- References:
- simple Q for advanced: how to find out what rundll32.exe is executing?
- From: cap77
- Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: Ramesh, MS-MVP
- Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: jg
- Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: Ramesh, MS-MVP
- Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: cap77
- Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: Ramesh, MS-MVP
- Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- From: cap77
- simple Q for advanced: how to find out what rundll32.exe is executing?
- Prev by Date: Re: Start...All Programs
- Next by Date: Re: Wordpad and notepad have disappeared.
- Previous by thread: Re: simple Q for advanced: how to find out what rundll32.exe is executing?
- Next by thread: OT. XP error message when Nero 6 is started.
- Index(es):
Relevant Pages
|