Kill excel process on Windows 8 server
Posted on 2013-12-25
I have a windows 8 server on which I have created 5 users to login with credentials.
Some times I need to close all the excel process running on all the 5 users and i created a vb script for it .
My script kill only the excel process only on the user I executed the script on remaining other users excel process is still running and not get killed.
I am using below script:
Set ProcessList2 = GetObject("winmgmts://.").InstancesOf("win32_process")
For Each Process In ProcessList2
If Process.Name = KillProcessIE Then
Msgbox "All Excel Processes in your session have been terminated successfully"