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 =...
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...
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.
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}!\\" _
&...
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...
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.