Questions tagged [psexec]

PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software.

PsExec is a Windows command line tool written by Mark Russinovich and available through Microsoft's Windows Sysinternals: http://technet.microsoft.com/en-us/sysinternals/default.

From Sysinternals:

Utilities like Telnet and remote control programs like Symantec's PC Anywhere let you execute programs on remote systems, but they can be a pain to set up and require that you install client software on the remote systems that you wish to access. PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec's most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems.

The 'PS' prefix has nothing to do with PowerShell - it appears because a previous tool by the same author used a 'PS' prefix (PsList, for listing information about processes). Various related tools are packages together in a suite called 'PsTools'.

839 questions
1
vote
3 answers

psexec.exe doesn't work when I create a Process from C#

Long story short... This doesnt work: Process p = new Process(); p.StartInfo.FileName = @"External\PsExec.exe"; string file =…
Conrad Clark
  • 4,533
  • 5
  • 45
  • 70
1
vote
1 answer

PSEXEC Starts on remote PC but does not execute command

I have a command to execute on the remote PC on an interactive session to sent a HotKey to the console. The remote command is PowerShell $wsshell = New-Object -comObject wscript.shell $wsshell.SendKeys("+{Q}") When I run the psexec on the remote…
Geo V
  • 121
  • 1
  • 10
1
vote
0 answers

windows app running with system process behaves differently compare to PsExec tool

I am working on one electron app. Electron app has child node js process which capture desktop stream using ffmpeg tool. To capture winlogon stream, I have used setThreadDesktop API in child process to change thread desktop to winlogon. Now, when I…
Hiren patel
  • 971
  • 8
  • 25
1
vote
1 answer

PSEXEC not redirecting 7zip output

I'm trying to use PSEXEC to uncompress a self extracting file (a console exe created with 7zip) in a remote machine and view the results on my screen. The remote command executes just fine, but I don't see it's output locally. This is the command…
rettiseert
  • 77
  • 7
1
vote
1 answer

unable to execute batch file on remote windows server using psexec64 in Oracle Scheduler job

declare vname varchar(20) := 'DEMOJOB'; BEGIN begin dbms_scheduler.drop_job (vname); exception when others then null; end ; dbms_scheduler.create_job( job_name => vname, job_type => 'EXECUTABLE', …
Sha
  • 11
  • 2
1
vote
1 answer

Set different logging level between root and 3rd party module (pypsexec)

I have some code that creates a root logger that saves messages on disk. Pretty standard. My code uses the pypsexec module which tends to be too verbose, and I'd like to be able to: 1- Continue to create logging messages of my own as INFO while 2-…
Ben
  • 21
  • 2
1
vote
0 answers

PsExec cmd return error when run it through Visual Studio

When I am trying to run PSEXEC it works perfectly when typed manually at powershell but when run the command through Visual Studio's terminal it display the following error psexec : The term 'psexec' is not recognized as the name of a cmdlet,…
Reham Kotb
  • 21
  • 2
1
vote
0 answers

When running psExec in Python, it does not display the entire output of the command

When running a console command in Python using subprocess everything goes well. result = subprocess.Popen(['net', 'config', 'workstation'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, encoding='cp866') But when you try…
Vopos
  • 11
  • 2
1
vote
0 answers

Access remote registry values via python

Good day! Trying to make cache cleaner script for automatisation purpose. We have program called Pilot-Ice, it has registry key under HKEY_CURRENT_USER\SOFTWARE\ASCON\Pilot-ICE Enterprise\System There's a value called "CurrentCachePath", i need to…
1
vote
0 answers

Powershell Execute exe on VM remotely

I've searched and tried different variations of commands, but none seems to work for me. I believe I have also gone through all the SO references on this. Tried all the ways here:…
Raj
  • 199
  • 1
  • 12
1
vote
1 answer

Issues using psexec -i to launch interactive app

I'm connecting to a windows machine over SSH and would like to launch a GUI app in an existing interactive session. This should work using psexec -i, but it fails for me in various ways: psexec -i 1 notepad.exe: notepad crashes without showing…
Adam Hupp
  • 1,513
  • 8
  • 7
1
vote
1 answer

Running remote commands on Windows 10

Recently i was trying to research deeper into running remote commands from windows to windows. It can be easy with ssh, ftp - but I wanted it to run the commands without knowing the password either username, just local ip and computer name and maybe…
dheb
  • 11
  • 1
  • 3
1
vote
2 answers

How to copy and execute a file on remote machine?

I tried this module, https://pypi.org/project/pypsexec/ But, it launches only executables or windows commands but not able to implement this. But not able to implement any so far. Tried pypsexec but it has only options to launch remote executables…
Sara June
  • 155
  • 2
  • 7
1
vote
0 answers

Struggling with impacket installation

I'm trying to install impacket and it always give me an error. My pip and python version is same (Python 2.7.18 and pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)). I checked into my repository and impacket already installed…
1
vote
1 answer

PsExec - The file cannot be accessed by the system

I'm trying to execute a .bat File on a Server in a local network with psexec I'm currently trying with this command: .\PsExec.exe -i -u Administrator \\192.168.4.36 -s -d cmd.exe -c "Z:\NX_SystemSetup\test.bat" The server has no password (it has no…
Korlimann
  • 147
  • 14