Windows Service is an executable program that is installed in a registry database maintained by the Service Control Manager. The…