Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: script to terminate the process

script to terminate the process 9 years 7 months ago #21230

  • yadav
  • yadav's Avatar
  • Offline
  • Frequent Member
  • Posts: 25
  • Karma: 0
i got one doubt....we have an windows 2003 server our company in that we have installed some applications,when we login to the system and if we open task manager some applications like crasos.exe,HPGS2WNF.exe are running these are related to some applications what we have installed...the only way to terminate this process is using task manager.....but i wrote some logon script to terminate that process ......but its not working can u help me regarding this



thank you,
prasad yadav
The administrator has disabled public write access.

msconfig 9 years 6 months ago #21674

Use the msconfig utility to disable the associated application that starts up. Is the login script you are running run as the user or machine?
The administrator has disabled public write access.

Re: script to terminate the process 9 years 6 months ago #22041

  • Bionicthumb
  • Bionicthumb's Avatar
  • Offline
  • Frequent Member
  • Posts: 21
  • Karma: 0
I agree with wrecklesswun about disabling the application from starting, but if you want a script...


[code:1]
setlocal
:START
tasklist | find /I "HPGS2WNF.exe"
set myerrorlevel=%errorlevel%
if %myerrorlevel% equ 0 taskkill /F /IM "HPGS2WNF.exe"
if %myerrorlevel% neq 0 ping 233.233.233.233 -w 1000 -n 2 & goto :START
[/code:1]

Save it with a .bat extension and place it in your user's "startup" directory in the start menu. The ping command is there to control the looping so that it doesn't consume 100% of the CPU.
The administrator has disabled public write access.
Time to create page: 0.074 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup