- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Re: Kill a service from the commad line
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2010 04:35 PM
тАО05-08-2010 04:35 PM
Howto kill a service from the commad line that cannot be stopped using Computer Management -> Services?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2010 04:46 PM
тАО05-08-2010 04:46 PM
Solutionhttp://technet.microsoft.com/en-us/sysinternals/bb896683.aspx
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2010 05:19 PM
тАО05-08-2010 05:19 PM
Re: Kill a service from the commad line
If its Windows XP then you can make use of the TASKKILL command to kill a
process.
http://www.tech-recipes.com/rx/446/xp_kill_windows_process_command_line_taskkill/
For windows server 2003, you can make use of PSKILL. Its a freeware.
http://technet.microsoft.com/en-us/sysinternals/bb896683.aspx
You can also consider installing Windows server 2003 support tools.
The Support Tools are not automatically installed when you install
Windows 2003 and you find a option for it in the Windows 2003 setup either.
The installation program is located on the CD-ROM in the \support\tools folder
and the setup file (suptools.msi) must be opened manually to initiate the
installation wizard.
It contains many tools, one of which is "Process Viewer". This can be used to
kill a process.
Have a look at the set of tools that are present in the support tools, you may find
some of them very userfull.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 12:30 AM
тАО05-10-2010 12:30 AM
Re: Kill a service from the commad line
At the services console (start - run - services.msc) or Computer - Management - Services, general tab you can see what the path to the executable a given service is running on. (Although you only need the executable, not the path).
Once you know what the executable is, you can kill that process.
(Note:
Just keep in mind some service processes don't run in its own dedicated executable.)
Some services might be hosted into one instance of svchost.exe process.
Killing this process will terminate all other processes running into that same svchot.exe image.
Knowing that, you may run kill (attached).
Here's the syntax:
kill -f PID
See, if I were to kill the process for mmc.exe
C:\>tasklist | findstr /i "PID mmc"
Image Name PID Session Name Session# Mem Usage
mmc.exe 5944 RDP-Tcp#300 10 13.168 K
I would have to run the following:
kill -f 5944
You can also see which services are running under the same svchost.exe process through Process Explorer.
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 12:47 AM
тАО05-10-2010 12:47 AM
Re: Kill a service from the commad line
i used this article as reference :
http://www.howtogeek.com/howto/windows/kill-processes-from-the-windows-command-line/
mikap