![]() | ![]() |
| Register | |||||||
| Reviews & Articles There will be a post for every Tech ARP article. Come in here to discuss about your favourite article! |
![]() |
| | LinkBack | Thread Tools |
| | #11 (permalink) |
| Administrator! Join Date: 21 Apr 2003 Location: Penang
Posts: 30,278
Reputation: 2417 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 61 | Hmm... seems like kill can't be used for remote pc as well. I wonder why I cant seem to taskkill a task in a remote pc. I've already closed the firewall. ![]() Peaz: taskkill can't force kill one of your program, is that what you mean? Hmm... I guess each has its pros and cons. One thing good about taskkill is, it's readily-available in all Windows XP.
__________________ | Intel C2Q Q9450 | MSI P45 Neo3-FR | 2 x 2GB OCZ / 2 x 1GB G.SKILL DDR2 800 | 1 x Seagate 250GB HDD | 2 x Seagate 750GB HDD | 3 x Seagate 1TB HDD | NVIDIA GeForce 9500GT | Cooler Master CM690 chassis | Cooler Master eXtreme Power Plus 550W PSU | Dell E248WFP 24" Widescreen | Windows 7 Ultimate x64 | ![]() Blog : Dashken's I-Blog Gallery : Dashken's I-Paintings |
| | |
| SPONSOR |
| | #12 (permalink) |
| Newbie Join Date: 2 Mar 2006
Posts: 1
Reputation: 0 ![]() Rep Power: 0 | Taskkill works on remote machines, works for me By the way you need to have admin rights on the remote machine! another little trick I use is: Freemem=Space(512000000) which frees your memory. (be careful how much you free though) Oh its a vbs script. I would always use VB scripting to do anything with your PC and not dos commands. VB scripts are very very very easy and powerful: i PS: I have no time I gotta do other VB scripts the following code terminates notepad on a remote computer: [code] strComputer = "FullComputerName" strDomain = "DOMAIN" strUser = InputBox("Enter user name") strPassword = InputBox("Enter password") Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _ "root\CIMV2", _ strUser, _ strPassword, _ "MS_409", _ "ntlmdomain:" + strDomain) Set colProcessList = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'") For Each objProcess in colProcessList objProcess.Terminate() Next [/code] you dont even need to write code its all on M$ all you need to do now is use Visual Studio, create a nice gui. Write a bit of code which gets all remote computers and your local machine. Create a dropdown with all computers. A button which gets all running processes for that computer. a tickbox and a KILL button. 1 day and your done Last edited by GermanJulian : 5th May 2006 at 07:11 PM. |
| | |
| | #13 (permalink) | |
| Administrator! Join Date: 21 Apr 2003 Location: Penang
Posts: 30,278
Reputation: 2417 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 61 | Quote:
Yeah, I like vbscript a lot. Used simple ones alot at work for creating shortcuts, editing registry, etc. and use Wscript.Shell to run it. Thanks for your time and the codes.
__________________ | Intel C2Q Q9450 | MSI P45 Neo3-FR | 2 x 2GB OCZ / 2 x 1GB G.SKILL DDR2 800 | 1 x Seagate 250GB HDD | 2 x Seagate 750GB HDD | 3 x Seagate 1TB HDD | NVIDIA GeForce 9500GT | Cooler Master CM690 chassis | Cooler Master eXtreme Power Plus 550W PSU | Dell E248WFP 24" Widescreen | Windows 7 Ultimate x64 | ![]() Blog : Dashken's I-Blog Gallery : Dashken's I-Paintings | |
| | |
| | #14 (permalink) |
| "0104" Join Date: 31 Aug 2005 Location: Manila
Posts: 783
Reputation: 256 ![]() ![]() ![]() Rep Power: 7 | I only use msconfig to turn off any tasks that I don't want to run. Works fine for me, though I'm wondering if any of you use it too? ![]()
__________________ Main rig: Phenom II X4 BE | Gigabyte UD5P | OCZ Flex II | ATi HD5850 Secondary rig: Opteron 170/3Ghz | DFI NF4 Ultra-D | http://valid.x86-secret.com/show_oc?id=163569 Team Xtreem 2Gb/2.5-4-3-6/1T | ATi HD4850 |
| | |
| | #16 (permalink) | |
| ARP Webmaster Join Date: 13 Oct 2002 Location: http://atpeaz.com/
Posts: 8,595
Reputation: 1673 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 32 | Quote:
| |
| | |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| First potential virus risk for Windows Vista found! | Dashken | News | 0 | 5th Aug 2005 03:55 PM |
| Windows Services Exposed adn Expunge | kayFX | General Software | 9 | 10th Jun 2005 09:32 PM |