Stop nginx on Windows: go to Command Prompt, type 'nginx -s stop'"

I’m unable to stop the nginx server on Windows. The following commands have been attempted with no success:

nginx -s stop
taskkill /if nginx.exe

Additionally, ending the process via task manager has also been attempted.

Try the following command in the command prompt with administrative privileges:

taskkill /f /im nginx.exe

This should forcefully terminate the nginx process and stop the server.