Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comprehensive List of SWSC Commands with Descriptions
#1
Comprehensive List of SWSC Commands with Descriptions

**SWSC** (Service Wrapper Service Control) is a command-line utility used for managing Windows services. It allows you to install, start, stop, delete, and query services directly from the command line. Below is a detailed list of SWSC commands, along with descriptions and examples.



1. Installing a New Service
Description: Installs a new service on the system with a specified name and executable path.
Code:
swsc install [ServiceName] [ExecutablePath]
Example: To install a service named `MyService` that runs `C:\MyApp\myapp.exe`:
Code:
swsc install MyService C:\MyApp\myapp.exe

2. Deleting a Service
Description: Deletes an existing service from the system.
Code:
swsc delete [ServiceName]
Example: To delete a service named `MyService`:
Code:
swsc delete MyService

3. Starting a Service
Description: Starts a service that is installed on the system.
Code:
swsc start [ServiceName]
Example: To start a service named `MyService`:
Code:
swsc start MyService

4. Stopping a Service
Description: Stops a running service on the system.
Code:
swsc stop [ServiceName]
Example: To stop a service named `MyService`:
Code:
swsc stop MyService

5. Pausing a Service
Description: Pauses a running service on the system.
Code:
swsc pause [ServiceName]
Example: To pause a service named `MyService`:
Code:
swsc pause MyService

6. Resuming a Paused Service
Description: Resumes a service that was previously paused.
Code:
swsc continue [ServiceName]
Example: To resume a paused service named `MyService`:
Code:
swsc continue MyService

7. Querying the Status of a Service
Description: Queries and displays the current status of a specified service.
Code:
swsc query [ServiceName]
Example: To query the status of `MyService`:
Code:
swsc query MyService

8. Configuring a Service Startup Type
Description: Sets the startup type of a service (e.g., automatic, manual, disabled).
Code:
swsc config [ServiceName] start= [StartupType]
Example: To set `MyService` to start automatically:
Code:
swsc config MyService start= auto

9. Displaying All Services
Description: Lists all services currently installed on the system along with their statuses.
Code:
swsc enum
Example: To display all services:
Code:
swsc enum

10. Displaying Help Information
Description: Displays help information for the SWSC command, listing all available options and their descriptions.
Code:
swsc /?
Example: To display help information for SWSC:
Code:
swsc /?



Conclusion

The **SWSC** command-line utility is a powerful tool for managing Windows services, making it an essential utility for system administrators and developers. By mastering these commands, you can efficiently manage services on Windows, automate service-related tasks, and ensure proper system configuration.

Happy Service Management!
Reply


Messages In This Thread
Comprehensive List of SWSC Commands with Descriptions - by Sneakyone - 09-03-2024, 02:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)