Script – Retrieve the DLL path of the running process

I have an application that uses a .dll file. The file has 2 different locations. I need to find out where it is used on more than 200 machines.

< /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?

This article provides a method to call using the WMI provider. You can use the provided Function. If you are just looking for something quick and dirty, this will be effective.

Digging further, 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

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

Leave a Comment

Your email address will not be published.