79469902

Date: 2025-02-26 13:33:43
Score: 0.5
Natty:
Report link

I found out that wmic supports Where-Clauses, so I came up with the following:

wmic service where "not Pathname like '"%"'" GET Name,Pathname /FORMAT:csv>result.csv

wmic service where "not Pathname like '"%"'" Looks for Services with Pathnames not encapsulated with Quotes

GET Name,Pathname extracts the Name of the service as well as its path

/FORMAT:csv>result.csv formats to csv and exports to file result.csv in the same directory.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bending Rodriguez