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

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2768 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.