Skip to main content

Working with Windows NET services from windows command line

Deleting a windows service 
Deleting a windows service from the command line is a two step process. 

In the first step, we have to query& stop the service with the actual name of the service. Open the services (services.msc) and identify the name of the service that you want to delete. An example name is shown in the image given below.

 
Otherwise the service can be queried from the command line. 

 sc query | find [Service-name-to-be-deleted] 

 Now, run the below command to stop the service. 

sc stop [Service-name-to-be-deleted] 

Now , in the second step, delete the service. Execute the below command. 

sc delete [Service-name-to-be-deleted] 

Done, the service list maybe refreshed only after a system restart.

🚀

Comments

Popular posts from this blog

Java Keystore - Certificate management

 Java Keystore - Certificate Management Dealing with the Java keystore is not new for the software developers working with Java. But many a times, developers who work with several other technology stack come across the necessity of dealing with java keystoe(jks). A simple, easy way to deal with it is given below. The software The software I am working with is KeyStore Explorer.  This software can be used on Windows, Linux and MacOS. Installable can be downloaded separately. If you are fan of portable apps, you can download the zip version that will work with all the operating systems. This software can be downloaded from the link below  https://keystore-explorer.org/downloads.html Setup Install as per your operating system. For portable version, simply unzip to the desired folder. The Keystore explorer needs a JRE to run. If your laptop has a pre-installed JRE, please make sure the JAVA_HOME environment variable is set. If you already have a portable JRE, you can copy ...

CR-2032 Batteries- Where are they used

 Batteries, CR2032. What is CR2032 (also written CR-2032)? CR2032 is a non rechargeable 3V lithium battery which is used in many electronic devices. It resembles a coin and hence it is also called a coin cell or coin battery.  A Panasonic CR2032 cell What are it's main applications and lifetime in each cases? 1. Car keyfobs . (Lifetime - Normally works for several years, 3-8 years) 2. Apple Airtag. (Lifetime - 1 to 1.5 years) 3. Temperature and humidity sensors. (Around 1-2 years) 4. Toys.(Will run out very soon 😜) 5. Smart home sensors. 6. Calculators. 7. Remote controls for garages etc.

Viewing visio files using draw.io

 Viewing visio files using draw.io. If you do not have Microsoft visio installed on your windows machine, you still can open and view visio diagram files. We can make use of draw.io . The draw.io web app does not support viewing the visio files. You can download the draw.io windows app from their website. You can visit https://www.drawio.com/ and download the application. Once you install it , you can import a visio file into it like any other diagram/image file. I hope this info is helpful in some situations.