Get the services on your PC and the pathnames to the files


This will show all the windows services config from the command line, this was placed in a batch file so you can output the batch file to a log file.


NOTE : If you want to run the command below on it's own then you don't need %%A you only need %A.


The bottom command is what you can use on Windows 7, there is also an example to spool that out as well

for /f "tokens=5 delims=\" %%A in ('reg query HKLM\SYSTEM\CurrentControlSet\Services') do sc qc %%A

Windows 7
wmic service get pathname

Windows 7 to output
wmic /output:c:\services_path.html service get pathname /format:hform


With the final command if you do come across the error "Invalid XSL format (or) file name" then this look should be able to help you out.

I am always interested in feedback so please feel free to add any comments, or you can mail me  here.  If you would like to submit a quick tip  with full credit and links back to your site then also feel free to contact me. 

Block Nuisance Callers on your iPhone

Fix the “Invalid XSL format (or) file name” Error