Windows – How to find out what parameter was passed to a Windows Service

windowswindows-service

How do you find out what parameter was passed when starting a Windows service?

I usually start a service thru net start by passing parameters as shown below

net start DocumentHashService /Recursive /Count:500

services.msc does not list what parameters a service was started with.
Is there a way to view the parameters passed?

Best Answer

process explorer should tell you this in the command line view. See the link for details