Permission to end process of another user in task manager

Hi there,
I have Software Restriction Policy enabled, UAC is on computers and current user is not a local admin.
Is there a way to grant a user security right to terminate process started by another user? Using GPO.
Currently when user tries to terminate a task using cmd command: taskkill /F /IM "process", gets "Access Denied" if that process has been started by another user.
I tried Computer Configuration->Policies->Windows Settings->Security Settings->File System, gave domain users full access to the file that is being launched by another user but that did not do anything.
Thanks

I am not a VB expert but this code may give a view:
Const strComputer = "."
Set WshShell = CreateObject("WScript.Shell")
Dim objWMIService, colProcessList
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Process.exe'")
For Each objProcess in colProcessList
WshShell.Exec "PSKill " & objProcess.ProcessId
Next
Taking a look at following links might be helpful:
VBScript Kill Process
How to terminate process using VBScript
Have a visit on the first example of page 133 in this book. For specific user you must handle it with
GetOwner attribute.
End
process for specific user
Regards.
Mahdi Tehrani Loves Powershell
Please kindly click on Propose As Answer or to mark this post as
and helpfull to other poeple.

Similar Messages

  • Program being processed by another user

    Hello,
    There is a requirement in which a warning message should be displayed if the same program is being executed by another user.
    Please let me know incase there is any function module to find out the same or any other way to get the details.
    Thanks,
    Sushil

    Hi Sushil
    GO to SM12 and click the list
    you 'll have the list of users accesing the  same program
    chk tis fm's
      call function 'ENQUEUE_READ'
                   exporting gclient = gclient
                             guname  = guname
                             gname   = gname
                             garg    = garg
                   importing subrc   = subrc
                   tables    enq     = enq
                   exceptions others = 1.
    call function 'ENQUE_READ'
                 exporting gclient = gclient
                           guname  = guname
                           gname   = gname
                           garg    = garg
                 importing subrc   = subrc
                 tables    enq     = enq.
    Revert back for more help
    Regards
    Naresh

  • Process does not appear in Task Manager Details list

    Hello, I've run into a problem while developing on Windows 8.1 where if a process crashes with a segfault, it occasionally continues to hold onto the
    file but disappears from the Task Manager's Details tab. If I use Sysinternals Handle utility I can find the process and use taskkill to force kill the PID, then I'm able to fix my bug and recompile. It seems to happen more often when I run the executable
    from GDB or Eclipse (using the GCC compiler). When I was using Windows 7, the process always showed up in the task manager so I was able to kill it easily when it hung. Any ideas?
    B0)

    Hi,
    For the issue,I would like to know if the screen displayed a user interface (UI) of this program when it crashed.
    Handle tool is different with Task manager.
    Handle tool can display information about open handles for any process in the system.
    Meanwhile,open the PowerShell, use the following command to check if the process list displays your process.
    get-process
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Firefox process starts & is running in Task Manager but browser doesn't load-no errror msg, just nothing?

    -Re-installs don't help, either saving profile or complete uninstall (all registry items removed and profile, other directories deleted).
    -Sometimes loads browser, once after starting 'plugin-container.exe' process first - but could of been an accident...

    I have the "techie" answer for all of you. According to the tier 2 support at Norton Help Desk, the latest live update from Norton "utilizes Visual Studio 2012 which enables SSE2 instructions" and my processor can not handle that.
    He said they are "working on a solution" and offered to reply back on Wednesday / Thursday this week if a solution could be found...

  • Domain Replication Issue. Is there Any Process can be monitored in task Manager which is responsible for REPLICATION?

    Hi,
       There is an issue with Secondary domain controller replication. I am interested in the "Windows Process" which is responsible for Replication.
      We have a 3rd party tool in our project which generate alarm when a windows process in not running(configured).
    I believe  Remote Procedure Call (RPC) is used to replicate data and is always used for intrasite replication. But How to find out which RPC is responsible? or any other windows process is responsible?
    Is it possible to find out "Replication problem" by just monitoring "Responsible Windows Process" ? ( process is running or not running)

    Hello,
    have you already seen
    http://technet.microsoft.com/en-us/library/cc772726(v=ws.10).aspx#w2k3tr_repup_how_dgvt
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Firefox 4.0 will not open at all. It shows that the process is running in the task manager but will not open the window even after closing the prcess and restarting.

    I have had firefox since an earlier 2. version and have been able to upgrade as normal. After the installation is done it will not open at all. I have restarted and even uninstalled all previous version .exe and still nothing. I am using windows 7 OS. I am still running 3.6.8 and would love to see the new one running on my laptop.

    hello, this crash is caused by Websense Endpoint security software that is running on the system. please try to install all the updates for this program that are available...

  • I cant open my itunes because "another user as it open"

    Hellow, I have itunes for two years now and recently when I am trying to open my itune it just open a window saying "you cannot open the application itubes because another user as it open" but I dont have another user on my windows 7 computer so I dont understant what I should do?

    1. First check if this file APSDaemon.exe is the problem here.
    Close your iTunes.
    Press Ctrl-Alt-Del key and choose Task Manager. In the "Processes" Tab, select the file APSDaemon.exe and click End Prosses button, then close the task manager window.
    Now open itunes and see if it is working?
    If that works, to prevent having to do the same process everytime you restart Windows, go to. START button, type in
    MSCONFIG
    Hit ENTER
    Click STARTUP Tab, Uncheck "Apple Push", click OK.
    Restart Windows.
    2. If that fails, refer to following article to remove SC Info.lib file:
    http://support.apple.com/kb/TS2363
    3. If that fails, repair or reinstall your Quicktime. START / CONTROL PANEL / PROGRAMS N FEATURES / hightlight QUICKTIME and click REPAIR.

  • Firefox won't open, but the process stays in the task manager until I end it

    I've tried everything that has been proposed before by you guys and I'm hoping you've found a solution by now. I've tried re installing, allowing Firefox through my firewall, and running it as administrator. I still double click on the icon and nothing happens other than the process showing up in the task manager.

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back soon!
    Hope this helps!
    Curtis

  • Viewing another users' tasks

    I am currently working on setting up the Project Site templates and utilizing the Tasks feature to assign tasks to users. I would like to be able to see another user's task list on their My Site page. Is this possible? Or to roll up all of a users' tasks
    in a web part view or something?
    Thanks for your help,
    James

    Hi  ,
    The task list of MySite  site is a hidden list ‘WmaAggregatorList_User‘ where the user profile tasks are stored.
    You can Retrieve user's tasks from mysites using server object model. Here is the code you can refer to:
    using (SPSite site = new SPSite("http://hostname:8080/personal/" + loginName + "/"))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["WmaAggregatorList_User"];
    foreach (SPListItem listItem in list.Items)
    if (listItem["TypeIdField"] as int? == 0)
    try
    if (listItem["TxIsCompleted"] as bool? != true)
    IncompleteTasksCounter++;
    catch (Exception ex)
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(
    "Rafals Error",
    TraceSeverity.Unexpected,
    EventSeverity.Error),
    TraceSeverity.Unexpected, ex.Message);
    Reference:
    http://sharepoint.stackexchange.com/questions/80745/retrieve-users-tasks-from-mysites-using-server-object-model
    http://blog.amtopm.be/2013/02/22/getting-personal-tasks-from-the-user-profile/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Here's a fix for "This item cannot be updated because it has been changed by another user or process"

    https://gallery.technet.microsoft.com/System-Center-Service-fca7af29
    A few months ago on the Technet Gallery, I submitted this custom control to be used on SCSM console forms. The purpose of the control is to eliminate the "This item cannot be updated because it has been changed by another user or process" error
    message that we all have seen at least once (a day :) ).
    The details are in the gallery description (along with installation instructions for existing forms and your own custom forms).
    Here's a "short" description (nothing I ever post here is short :) ): This is a custom control that can be applied to an SCSM form like the Service Request form or Windows Computer form or your own custom form built with the authoring tool or Visual
    Studio. When you click "OK" or "Apply" on the form, this control scans the form and Service Manager's database for any changes to the object you have open. If a property that _you_ have changed on the form was _also_ changed in the CMDB
    (by a workflow or another user), this control will present a dialog box letting you know what happened. It will also let you choose which value to keep (yours, theirs, or the original value).
    Just as importantly (and important in a greater percentage of cases), if a workflow changes a "background" property (like FirstAssignedDate) while you have the form open and you click OK, the control will detect the change and allow the form submission
    to go through while keeping your changes and the FirstAssignedDate change that the workflow made. You won't get an error message or even a warning. And most importantly, you won't lose your changes.
    That's where the "optimistic" part of the control's name comes from. It applies optimistic concurrency control to SCSM forms, while also providing an anti-collision interface for you to use so you no longer lose any of your changes.
    Furthermore, this control will work on related items that are opened in memory; for example, the activities on a Service Request. So if you change an activity's title while the workflow engine sets it in progress, you won't get an error. The activity will
    be in progress and will get your new title when you click OK or Apply.
    Lastly, (and I admit this part is getting into the deep inner workings of console forms) if your form loads a sub projection at run time (to the root object) this control will detect the load and treat that sub projection as if it were apart of the original
    form all along.
    I've gotten a little feedback about this control, but I'd like to get more since it's a work in progress. So, I'm announcing it here on the forums. Please give it a try and let me know if you have any questions. I'll be happy to answer them here. Thanks,
    folks!
    Oh, and to answer the most common question right away: It's free. There is no paid version or anything like that. This is something I built for the SCSM community.

    Great job! 
    Will definitely try it out. 
    Best regards,
    Marcus

  • I can no longer edit images on external drive if logged in as another user even with permission.

    I have two users on my computer. Me (admin) and another log-in for assistants, clients etc.
    I use an external drive to hold images.
    Lately I've had a problem where if I'm logged in as Other (this side for everyone else), I often am not able to edit images even though the permissions are set for this log-in to have complete read/write capabilities?
    Even sometimes when I'm logged in regularly (my admin side) I have received a "File Reservation" error. It says the file is being used by another user.   ????
    Then it asks if I want to use Read-Only and do I want to be notified when the file becomes available. ????
    What's happened to my files?

    Similar problem here. My Ical refuses to edit or delete events. Viewing is possible, though sometimes the whole screen turns grey. Adding new events from mail is still possible. The task-pane completely disappeared. My local apple technic-centre messed about with disk utility for a bit and than told me to reinstall leopard. I could of course do that, but it seems to me that reinstalling Leopard just to fix iCal events is a bit invasive.
    I tried also tried removing everything, installing a new copy of iCal from the leopard-cd, software updates, all to no avail.
    At the moment I'm open to all suggestions that do not include a complete leopard reinstall.

  • I have the problem described in /forums/knowledge-base-articles/704725. (Firefox is already running but not responding). My only solution is to use Task Manager to end the firerfox process. I am the only user and there are no other profiles on my system

    Occasionally I have the problem discussed in /forums/knowledge-base-articles/704725 , Firefox is already running. My only fix is to use Task Manager to end the firefox process. At such tmes, I have no other instances running.

    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s'''.<BR>
    This is not a cure but will make it easier if Firefox locks up.

  • I am unable to open documents ending with .doc (rather than docx, which I can open). The error message states "[name of document]" is being used by "another user." Do you want to make a copy? Help!!!

    How can I open a Word document, when I receive this error message "[name of document]" is being used by "another user." Do you want to make a copy?
    (This only occurs on the documents I have saved as .doc; the ones saved as "docx" open for me. Help!

    Did you recently reinstall the OS then copy all your files back over? Do a Get info on one of the documents and see if your current UserName is listed and has Read & Write permissions. If not select the Documents folder and check that for Read & Write permissions for your UserName. If it doesn't have R & W permissions Add it so it does.

  • Start BPM Process from ABAP with another User as GUEST

    Hi all,
    i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin.
    My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calling the webservice should be my own user instead of GUEST.
    Thanks in advance.
    Regards,
    Christoph

    the last reply is regarding the configuration at consumer side.
    of course you have to configure at the service provider side to enable the logon ticket as acceptable authentication method.
    I checked at my side, i found the the service for triggering bpm is already configured to use id/pwd and logon ticket as authentication method.
    you can check in this way,
    CE nwa-> SOA  Management->Application and Scenario Communication-->Single Service Administration
    find your service, if you haven't assign any profile to your service, there will be only one configuration generate by system
    you can edit this configuration.
    go to configuration tab, select the endpoint, select security tab in the bottom tab list.
    change the setting there.
    Edited by: John Wu on Sep 10, 2010 7:29 PM

  • HT4759 I tried to download icloud for pc windows vista with 2.1.2. and when download was almost complete it said it belonged to another user unknown to me so I stopped the process how do I start over?

    I tried to download icloud for pc windows vista with 2.1.2 and when it was downloading almost finished it said it belonged to an unknown to me user?

    You need to explain that, before you finished downloading something said that it belonged to another user ?
    What said that, can you post a screenshot?

Maybe you are looking for

  • How can I see my iCloud content?

    How can I see my iCloud content?

  • Error: PL Stock in transit exceeded by 112 SU

    Hi all, While doing MIGO, I get error message while trying to post goods receipt: "PL Stock in transit exceeded by 112 SU : XXXX (Material) XXXX (Plant)  XXXX (Storage locaion)" I have checked in MB5T transaction but it shows - 'List contains no data

  • Merge Clips Question

    Have read the manual and searched the forums but can't work this out. Basically I'm syncing double system audio and creating merged clips. As the video is HDV all the shots are already seperate clips. However the audio files are 1 hour long clips (tr

  • Image opens with reddish tinge

    When I open one particular image in photoshop CS3 the thumb in the Open menu looks correct, but the image opens with a reddish tinge over the whole thing. If I then double-click the image layer in the Layers window, the Layer Style menu pops up, the

  • Regarding   messages in Cross applications

    Hi Experts, what is message code and message function? Regards, Venkat.