OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How can I extract "Path to executable" of all services with PowerShell

  • Thread starter Thread starter Abilash A
  • Start date Start date
A

Abilash A

Guest
Code:
Get-Service *sql* | sort DisplayName | out-file c:/servicelist.txt

I have a one line PowerShell script to extract list of all services running on my local machine, now, in addition to displaying "Status", "Name" and "DisplayName" I also want to display "Path to executable"
<pre><code>Get-Service *sql* | sort DisplayName | out-file c:/servicelist.txt
</code></pre>

<p>I have a one line PowerShell script to extract list of all services running on my local machine, now, in addition to displaying "Status", "Name" and "DisplayName" I also want to display <strong>"Path to executable"</strong></p>
Continue reading...
 

Latest posts

G
Replies
0
Views
1
Gamal Othman
G
Top