Windows 10: PSexec

Discus and support PSexec in AntiVirus, Firewalls and System Security to solve the problem; I know you can use PSExec to say for instance shutdown or delete a file on a remote computer's desktop of a user on the domain. psexec64... Discussion in 'AntiVirus, Firewalls and System Security' started by pktpusher, Mar 3, 2020.

  1. pktpusher Win User

    PSexec


    I know you can use PSExec to say for instance shutdown or delete a file on a remote computer's desktop of a user on the domain.


    psexec64 \\<Computer-Name> cmd /c del c:\Users\user\Desktop\testtext.txt


    psexec64 \\<Computer-Name> cmd /c shutdown /h /r 0



    Is there a way to remotely initiate a application to open for a user REMOTELY with this command in cmd?



    Does not work!!! Leaves cmd hanging no way to kill command

    *** psexec64 \\<Computer-Name> cmd /c c:\windows\system32\msra.exe ***

    Does not work!!! Leaves cmd hanging no way to kill command


    Any ideas or suggestions are welcome! Thanks​

    :)
     
    pktpusher, Mar 3, 2020
    #1

  2. PsExec launch throws Access Denied Error

    Hi,



    Thank you for writing to Microsoft Community Forums.



    We understand your concern as you are having issues while running PsExec.



    Let me point you in the right direction, where you would get the appropriate help for this issue. I would suggest you to post your query in
    TechNet forums, where we have experts and support
    professionals who are well equipped with the knowledge on PsTools & PsExec to assist you with the appropriate troubleshooting steps.



    However, you can also refer these article for additional information:

    PsTools

    PsExec v2.2



    Aditya Roy

    Microsoft Community – Moderator
     
    Aditya_Roy, Mar 3, 2020
    #2
  3. lx07 Win User
    Psexec


    It works for me - you don't install it - just put the .exe somewhere and then specify where when you call it.

    This works for me on local machine (I saved it to my OneDrive): Code:
    Code:
    Microsoft Windows [Version 10.0.16299.248]  (c) 2017 Microsoft Corporation. All rights reserved.    C:\WINDOWS\system32>%userprofile%\OneDrive\Programs\SysinternalsSuite\PsExec64.exe -a 1 -abovenormal "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE"    PsExec v2.2 - Execute processes remotely  Copyright (C) 2001-2016 Mark Russinovich  Sysinternals - www.sysinternals.com    C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE exited with error code 0.    C:\WINDOWS\system32>
    What error are you getting?

    Are you wanting to use it without specifying where it is? In that case you would have to add the location you saved the .exe to your path environment variable.

    Are you trying to run remotely or locally? This thread suggests for remote commands you need it in your path (on remote box) and to specify user/password.

    Psexec- file not on the path - Stack Overflow
     
    lx07, Mar 3, 2020
    #3
  4. PT
    pt Win User

    PSexec

    regedit help

    any step by step guide?
    that is like chinese to me

    edit:
    i did this that you posted and deleted after and it worked:
    psexec -i -d -s c:\windows\regedit.exe

    but the problem is still there *Frown PSexec :(
     
Thema:

PSexec

Loading...
  1. PSexec - Similar Threads - PSexec

  2. Is it possible to run PsExec without admin$ share enabled on target PC?

    in Windows 10 Network and Sharing
    Is it possible to run PsExec without admin$ share enabled on target PC?: Long story short, I want to use PsExec to run ipconfig on a machine on our network using its IP. My cmd is open as admin, and I’m executing the PsExec command using the target machines local admin account. I keep getting “Make sure that the default admin$ share is enabled”....
  3. Is it possible to run PsExec without admin$ share enabled on target PC?

    in Windows 10 Gaming
    Is it possible to run PsExec without admin$ share enabled on target PC?: Long story short, I want to use PsExec to run ipconfig on a machine on our network using its IP. My cmd is open as admin, and I’m executing the PsExec command using the target machines local admin account. I keep getting “Make sure that the default admin$ share is enabled”....
  4. Is it possible to run PsExec without admin$ share enabled on target PC?

    in Windows 10 Software and Apps
    Is it possible to run PsExec without admin$ share enabled on target PC?: Long story short, I want to use PsExec to run ipconfig on a machine on our network using its IP. My cmd is open as admin, and I’m executing the PsExec command using the target machines local admin account. I keep getting “Make sure that the default admin$ share is enabled”....
  5. Can you run PsExec, specifically PsExec -i -d -s c:\windows\regedit.exe, in safe mode?

    in Windows 10 Gaming
    Can you run PsExec, specifically PsExec -i -d -s c:\windows\regedit.exe, in safe mode?: Can you run PsExec, specifically PsExec -i -d -s c:\windows\regedit.exe, in safe mode? https://answers.microsoft.com/en-us/windows/forum/all/can-you-run-psexec-specifically-psexec-i-d-s/35850490-5045-4a49-962f-875eb8f72520
  6. Can you run PsExec, specifically PsExec -i -d -s c:\windows\regedit.exe, in safe mode?

    in Windows 10 Software and Apps
    Can you run PsExec, specifically PsExec -i -d -s c:\windows\regedit.exe, in safe mode?: Can you run PsExec, specifically PsExec -i -d -s c:\windows\regedit.exe, in safe mode? https://answers.microsoft.com/en-us/windows/forum/all/can-you-run-psexec-specifically-psexec-i-d-s/35850490-5045-4a49-962f-875eb8f72520
  7. Psexec with cmd parameters?

    in Windows 10 Network and Sharing
    Psexec with cmd parameters?: Hi All, I am trying to run a command on a remote computer using psexec, and I can get it to run fine by just calling the .exe, but I also need to have 2 parameters included in the command, but I can't get it to work. Here is my example: I can run this fine: psexec.exe -i...
  8. PSEXEC on windows 7 Vs windows 10, 2016, 2019

    in Windows 10 Customization
    PSEXEC on windows 7 Vs windows 10, 2016, 2019: Hi, when we execute PSEXEC on windows 7 it able to return output of size 21 mb. When execute PSEXEC on Windows 2016, 2019 or Windows 10 it able to return output only till 70KB. Is there any limitation on latest operating System....
  9. PsExec launch throws Access Denied Error

    in AntiVirus, Firewalls and System Security
    PsExec launch throws Access Denied Error: Hi, While running PsExec.exe in a Windows 10 64 bit system, throws "Access Denied" error Where as PsExec64.exe launches fine. Event logs shows the following error, Activation context generation failed for "D:\2019\PsExec.exe".Error in manifest or policy file...
  10. Unicode commands to cmd.exe through pipes-PSEXEC

    in Windows 10 Network and Sharing
    Unicode commands to cmd.exe through pipes-PSEXEC: Hi , I am trying to execute command prompt by pipe I/O,but i can't give non -ANSI commands .I know that psexec is also using same technique. Psexec remote command prompt doesn't work , if commands given is non ANSI , I get scrambled gibberish characters...