Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Unable to see all modules

Closed Thread
 
Thread Tools Display Modes
Old 03-03-2008   #1 (permalink)
HermesNL
Guest


 

Unable to see all modules

When I perform the following command (get-process firefox).modules I get a
long list of modules, but when I compare this with Process Explorer they are
somewhat different. I am able to see additional files when using Process
Explorer. In Process Explorer I can see .nls files. Why am I not able to
see all the files when I use the .modules in Powershell?
Old 03-03-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Unable to see all modules

HermesNL wrote:
Quote:

> When I perform the following command (get-process firefox).modules I get a
> long list of modules, but when I compare this with Process Explorer they are
> somewhat different. I am able to see additional files when using Process
> Explorer. In Process Explorer I can see .nls files. Why am I not able to
> see all the files when I use the .modules in Powershell?
This is what the SDK has to say about the object you're dealing with:

"A process module represents a.dll or .exe file that is loaded into a
particular process. A ProcessModule instance lets you view information
about a module, including the module name, file name, and module memory
details.

A process can load multiple modules into memory. For example,.exe files
that load additional .dll files have multiple modules."

This is simply not the correct property to get the info you're looking
for. That being said, I don't know what is or if you can even get it
from PowerShell...

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
Old 03-03-2008   #3 (permalink)
Oisin (x0n) Grehan [MVP]
Guest


 

Re: Unable to see all modules

On Mar 3, 12:54*pm, "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com>
wrote:
Quote:

> HermesNL wrote:
Quote:

> > When I perform the following command (get-process firefox).modules I geta
> > long list of modules, but when I compare this with Process Explorer theyare
> > somewhat different. *I am able to see additional files when using Process
> > Explorer. *In Process Explorer I can see .nls files. *Why am I not able to
> > see all the files when I use the .modules in Powershell?
>
> This is what the SDK has to say about the object you're dealing with:
>
> "A process module represents a.dll or .exe file that is loaded into a
> particular process. A ProcessModule instance lets you view information
> about a module, including the module name, file name, and module memory
> details.
>
> A process can load multiple modules into memory. For example,.exe files
> that load additional .dll files have multiple modules."
>
> This is simply not the correct property to get the info you're looking
> for. *That being said, I don't know what is or if you can even get it
> from PowerShell...
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShellhttp://www.microsoft.com/mvp
>
> PowerGadgets MVPhttp://www.powergadgets.com/mvp
>
> Blog:http://marcoshaw.blogspot.com
Yep, and viewing "DLLs" in Process Explorer is not quite the same
thing as enumerating modules on a .NET Process object. To be honest,
that view "DLLs" in procexp is probably not named quite right. While
process modules attached to a .net process object are always
executable images, the DLLs view in procexp also shows files mapped in
as data (as opposed to "image" or executable). NLS files are just data
files, and are not executable. To get this information from .NET, you
would _probably_ have to resort to p/invoke.

- Oisin
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modules days numbered? Zamdrist .NET General 4 6 Days Ago 09:37 AM
CTP2: Modules using PSD1? Joel (Jaykul) Bennett PowerShell 3 07-07-2008 02:53 PM
RAM Memory Modules Incorrectly Detected ? Hugo Colome Vista hardware & devices 8 04-11-2008 03:26 PM
Getting list of modules loaded by a process forestial PowerShell 10 03-24-2008 03:40 PM
Rebuild all modules under vista? CK Vista General 0 10-18-2006 01:47 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50