I have an application that uses a .dll file, there are 2 different locations for the file and I need to find out which one it is using on over 200 machines.
I am very new to power shell and have tried Get-Process method but it does not supply the information I need, is there another way to retrieve this in power shell?
This article gives one approach using a WMI provider call. You could use the provided Function at the end. If your just looking for something quick and dirty this would work.
Digging in a little more, This might be what you want:
$modules = Get-Process | Where { $_.ProcessName -eq "process.name" } | Select Modules
$modules.Modules
Replace process.name with your process name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With