Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Windows Tutorials»How to Install Windows Service via Command Line

    How to Install Windows Service via Command Line

    RahulBy RahulSeptember 7, 20191 Min ReadUpdated:March 15, 2022

    The .net framework provides and command-line installer utility for installing services on the Windows system. You can use installutil.exe to install Windows service via the command line. For .net 4 framework it’s available under C:\Windows\Microsoft.NET\Framework\v4.0.30319 directory.

    How to Install Windows Service

    First of all, navigate to the .net framework directory and then run installutil.exe followed by the Windows server exe file path.

    cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319\" 
    installutil.exe 
     C:\Users\Rahul\WindowsService\bin\Debug\WindowsService.exe" 
    

    This will install service on your system. In case it prompts for the authentication, Inputs the username, and password of your Windows system. Remember the user name must start with “.\” followed by username as shown in the below screen.

    See the onscreen messages and check if the command successfully completed.

    How to Uninstall Windows Service

    To Uninstall the Windows service use “-u” option with the same command as installation. The command to uninstall service look like below:

    cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319\" 
    installutil.exe -u "C:\Users\Rahul\WindowsService\bin\Debug\WindowsService.exe" 
    

    Conclusion

    This tutorial helped you to install service on Windows system using command prompt. Also provides you instructions to delete existing service. Next, you may like to read about managing Windows service via command line.

    windows
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Composer on MacOS
    Next Article How to Install GIMP on MacOS

    Related Posts

    How to Clear the ASP.NET Temporary files in Windows

    Updated:June 15, 20221 Min Read

    Creating Python Virtual Environment on Windows

    Updated:June 3, 20222 Mins Read

    How to Enable / disable Firewall in Windows

    Updated:May 17, 20222 Mins Read

    How to Start & Stop Windows Service via Command Line

    Updated:March 29, 20222 Mins Read

    How to Change Windows Hostname (Computer Name)

    Updated:June 2, 20223 Mins Read

    How To Install NVM on Windows

    Updated:April 16, 20223 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to run “npm start” through docker
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.