how to fix pstools on my computer

kimdat 0 Reputation points
2025-05-03T14:35:33.1466667+00:00

image

why can't it run?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,924 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 44,850 Reputation points MVP
    2025-05-03T15:00:06.6333333+00:00

    You're encountering two separate issues while trying to run PsExec:

    1. "This app can’t run on your PC" Error

    This usually means that the version of PsExec you're using is not compatible with your operating system (e.g., 32-bit tool on a 64-bit OS, or unsigned binary blocked by policy). To resolve:

    • Download the latest PsExec from Microsoft Sysinternals: https://docs.microsoft.com/sysinternals/downloads/psexec Make sure you download the correct version for your system architecture.
    • Unblock the file:
      1. Right-click on PsExec.exe, select Properties.
      2. If there's an "Unblock" checkbox at the bottom, check it and click OK.
    • Ensure Compatibility:
      • Run it on a compatible OS (PsExec is not supported on Windows S mode or ARM versions).
      • Try running from cmd.exe or powershell.exe with "Run as Administrator".
    1. Access is denied

    This means the current command prompt session lacks the required privileges.

    • Open CMD as Administrator: Right-click cmd.exe → "Run as administrator".
    • Use correct syntax (assuming you downloaded PsExec to C:\tools\PSTools):
        C:\tools\PSTools\PsExec.exe -i -s regedit
      

    If trying to launch a GUI app (like regedit) in system context (-s), you must also use -i (interactive) and run from an elevated session. In addition, check Group Policy / Defender Policies: Make sure AppLocker or software restriction policies aren't blocking PsExec.exe.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.