< /p>
I am a very new power shell and have tried the Get-Process method, but it does not provide the information I need, is there another way to retrieve it in power shell?
Digging further, this might be what you want:
p>
$modules = Get-Process | Where {$_.ProcessName -eq "process.name"} | Select Modules
$modules.Modules
Replace process.name with Your process name
I have an application that uses a .dll file, which has 2 different locations, and I need to find out that it is on more than 200 machines Where to use.
I am a very new power shell and tried the Get-Process method, but it does not provide the information I need, there is another way to do it in power shell Retrieve it?
This article provides a way to call using the WMI provider. You can use the provided function at the end. If you are just looking for quick and dirty Something that will work.
Dig further, this may be what you want:
$modules = Get-Process | Where {$_.ProcessName -eq "process.name"} | Select Modules
$modules.Modules
Replace process.name with your process name