Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. question82

    Terminate duplicate process (in logged owner)

    Hi, The following code finds a duplicate process the user's accoun, but it does not terminate why? Dim strUserName Set objWMI = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" _ & strComputer & "\root\cimv2") Set colSessions =...
  2. question82

    Terminate duplicate process (in logged owner)

    I have a terminal server on which users logon. For example: users process User1 notapad.exe notepad.exe user2 notepad.exe User3 notepad.exe notepad.exe user4 notepad.exe user5 notepad.exe Now I run the script, and it removes duplicate processes For example: User1 notapad.exe...
  3. question82

    Terminate duplicate process (in logged owner)

    If I used Geates code I must run it at all loged users. If my server is logged in 10 users, will be running 10 processes. I need to run one script (1 process) that checks for all users logged on and remove duplicate "notepad.exe" process on current user.
  4. question82

    Terminate duplicate process (in logged owner)

    I have a code to found all logged users on server, but how integrated in "Gates" code? my code: -------------------------------------------------------- strComputer = "." Set objWMI = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" _ &...
  5. question82

    Terminate duplicate process (in logged owner)

    This code work fine. I have one question. I Have terminal server, when worked 6 users. In these accounts lanched 8 "notepad.exe" processes. How to make a script that worked in one administrator account, check all the users logged on and terminate duplicate process "notepad.exe" launch by the...
  6. question82

    Terminate duplicate process (in logged owner)

    ok, I use this function, but if in comuter workered 4 users where opened 5 "notepad.exe" process ? the date property eliminate all process from all logged users.
  7. question82

    Terminate duplicate process (in logged owner)

    If you running 3x "notepad.exe" script close two, and leave one. But script must close two new process'es, and leave oldest process.
  8. question82

    Terminate duplicate process (in logged owner)

    Hi, Im writing a script. This script terminate all process "notepat.exe" in logged owner. But script must terminate one if hi run. ----------------------------------------- strComputer = "." Dim strUserName Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set...

Part and Inventory Search

Back
Top