Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Taskkill  (Read 4709 times)

0 Members and 1 Guest are viewing this topic.

hartlessone

    Topic Starter


    Newbie

    • Experience: Experienced
    • OS: Windows 7
    Taskkill
    « on: March 16, 2016, 08:40:08 AM »
    I have a Batch file that I use to close multiple programs using 'Taskkill".  I use th"/f" option to force the closure, but even so, "Access Denied" is returned. The program I try to close ends just fine manually.  I have searched other places with not much help. This automatic closure action is important and needed in this batch file. Thanks for your help.

    reborn



      Rookie
    • "Ubuntu - Linux For Human Beings."
    • Certifications: List
    • Experience: Expert
    • OS: Linux variant
    Re: Taskkill
    « Reply #1 on: March 16, 2016, 09:55:49 AM »
    you have to start that batch process as administrative privileges,
    though your user might be an administrator, windows restricts access by default on some areas
    so if you want to activate admin account :  "net user administrator /active:yes" is the command, after that you can log out and loggin into administrator account try running batch script from that account.
    "Free software" is a matter of liberty, not price. To understand the concept, you should think of "free" as in "free speech," not as in "free beer."

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Taskkill
    « Reply #2 on: March 16, 2016, 01:05:49 PM »
    I disagree with your Sig...
    " Anyone who goes to a psychiatrist should have his head examined. "

    hartlessone

      Topic Starter


      Newbie

      • Experience: Experienced
      • OS: Windows 7
      Re: Taskkill
      « Reply #3 on: March 16, 2016, 09:06:37 PM »
      Thanks for the suggestion, but I am the Administrator and logged in.  The command works fine on all but one application.

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Taskkill
      « Reply #4 on: March 17, 2016, 05:48:53 AM »
      but I am the Administrator and logged in.

      Did you actually try to right click on the script and select "run as admin..." ?

      Being admin is not the same as it once was - there are restrictions in some cases.

      reborn



        Rookie
      • "Ubuntu - Linux For Human Beings."
      • Certifications: List
      • Experience: Expert
      • OS: Linux variant
      Re: Taskkill
      « Reply #5 on: March 17, 2016, 09:26:35 AM »
      Did you actually try to right click on the script and select "run as admin..." ?

      Being admin is not the same as it once was - there are restrictions in some cases.

      yeah,thanks foxidrive, that's exactly what i am trying to explain !
      "Free software" is a matter of liberty, not price. To understand the concept, you should think of "free" as in "free speech," not as in "free beer."