• Home
  • About
    • Disclaimer
  • Archives
  • Tools

Time to kill.

Apr20
2011
Written by david

There are times when I need to “terminate” a process on one of my servers.

Usually the simple way is to do RDP to the server and “kill” the process in the task manager.

The problem begins when I need to perform this task again and again, which can be very annoying, so then I start to look for shortcuts.

One of the ways to accomplish this task is with a little cmd command called taskkill.exe.

With this little command I can “kill” a process from cmd or write a batch file and run  it as a schedule task.

 Another option this command has is the ability to do it all from a remote computer without the need to connect the server.

Here is an example:
TASKKILL /S %servername% /U %username% /P %password% /IM notepad.exe
VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in Command Line - Tagged CMD, Command Line, taskkill
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
Similar posts
  • Windows Error Reporting (WER) and low... — I don’t use Widows Error Reporting service and it appears...
  • How to: shrink an SQL log file. — Once in awhile I meet an sql based program that won’...
  • Find user location in Active Director... — Have you ever searched for a user OU location in Active D...
  • Trace and delete unused computer acco... — Over the years, computers are replaced or decommissioned ...
  • Windows 2008 boot error: Missing or c... — I had the “pleasure” to recover a windows 200...
» Configure PPTP vpn on a Fortigate device from CLI.

Categories

  • Command Line (11)
  • Exchange (8)
    • 2007 (4)
    • 2010 (5)
  • Fortigate (10)
  • FreeNAS (2)
  • HmailServer (1)
  • How To: (8)
  • MS SQL 2008 (4)
  • Networking (4)
  • Open Source (1)
  • PowerShell (2)
  • Recovery (1)
  • SBS (8)
    • SBS 2008 (6)
    • SBS 2011 (3)
  • Terminal Server (2)
  • Veeam (2)
  • VMware (6)
  • Windows (18)

Links

  • חי הדפסות – דפוס משי, חולון
  • שלישיה – זה לא מה שחשבתם

Archives

  • March 2018
  • January 2018
  • September 2015
  • January 2015
  • August 2014
  • May 2014
  • December 2013
  • January 2013
  • October 2012
  • September 2012
  • July 2012
  • June 2012
  • May 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
Site Meter

EvoLve theme by Theme4Press  •  Powered by WordPress How to do.....IT