Stopping FTP via Command Prompt

  • Thread starter Thread starter Matthew
  • Start date Start date
M

Matthew

I was looking to find a way to stop the IIS FTP service
via the command prompt. I know that you can stop the www
service by doing a net stop w3svc. Would anyone know what
this equivalent is for ftp and smtp?

Thanks,

Matthew
 
net stop msftpsvc
net stop smtpsvc

If you're wondering about service names, one way to get them is:

Right click My Computer
Click Manage
Go to Services and Applications\Services
Double click the service

The top value, Service Name:, is the command line service name. You can
also use the friendly name in a NET STOP by enclosing it in quotes, example:

net stop "FTP Publishing Service"

Ray at work
 
There are also WSH scripts to do this in \Inetpub\AdminScripts
startftp.vbs, stopftp.vbs, pauseftp.vbs, contftp.vbs, etc...
 
Back
Top