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
3
votes
2 answers

PsExec hangs when executing batch file in bamboo continous integration server

I have a batch file on my bamboo server, that starts another batch file on an remote computer trough PsExec. If I double click the batch file on the bamboo sever everything is working fine, the batch file on the remote computer starts and PsExec…
user846290
  • 147
  • 1
  • 2
  • 10
3
votes
2 answers

PsExec is not copying file over to execute

I want to run a script I called "systemInfo.vbs" that outputs to a logfile the system name and service pack. In command prompt I am doing "PsExec.exe \REMOTECOMPUTER -c systemInfo.vbs". I am running this from a directory on my local system that has…
Envin
  • 1,463
  • 8
  • 32
  • 69
2
votes
1 answer

no output from .NET console app run from psexec

I'm having a very strange problem where I run a managed .net console app on a remote server using psexec. I get this error "The process tried to write to a nonexistent pipe". Now I wrote an unmanaged C++ program to output to std::cout, and it works…
Mark
  • 543
  • 2
  • 6
  • 14
2
votes
4 answers

PsExec run remote batch file in visible mode

I am trying to execute following command psexec \\x.x.x.x -d -c -f cmd.exe /c d:\test\hello.bat It runs fine and gives output cmd.exe started on x.x.x.x with process ID 106084. But when I login on x.x.x.x I can find the process ID but no visible…
Rohit
  • 353
  • 2
  • 8
  • 24
2
votes
3 answers

running PSExec from java does not work

I want to run a CSharp process from my java server under a different user. I use PSExec to do this - it works fine on my PC, but when doing it on a "real" server, the process immediately crashes. (It seems that the CSharp app does not even start - i…
Erik Sapir
  • 23,209
  • 28
  • 81
  • 141
2
votes
1 answer

PSEXEC INPUT REDIRECTION

I am using Psexec to run a remote batch file. I pass input to psexec and redirect it to the remote batch file which seeks a filename as its input. However while redirecting, the file name becomes a garbage as @##&#* which means actual file name is…
sandeep
  • 31
  • 5
2
votes
1 answer

PsExec not able to logon to remote machine

I have a bunch of machines to be joined to a domain. They have same name and hence I am using a VBScript to change the host name of these machines (Win7) and then add them to the domain. The script is present on all the remote target machines and we…
footloose
  • 167
  • 1
  • 4
  • 18
2
votes
1 answer

PsExec hangs without output when not using -d or -i

I'm starting PsExec inside a WCF web service to execute a remote command and capture it's output. It's being run while impersonating a certain user. When trying to run a non-GUI command (like ping, tracert..), PsExec just hangs unless I use -d or…
David
  • 3,736
  • 8
  • 33
  • 52
2
votes
1 answer

Remote execution from SSIS

I have server A with SSIS running and an executable file in server B. I need to run this executable file from SSIS. I tried with PsExec and managed to run the executable from server A. But, I need to execute this from SSIS and have no idea how to do…
2
votes
1 answer

run .exe files in multiple devices with python + psexec

I'm trying to build a script in python that runs a powershell command (using subprocess python module) , this powershell command use psexec for run a .exe file on all devices within a .txt file previous generated by python but it is not working Any…
Richard
  • 63
  • 1
  • 9
2
votes
0 answers

Invoking a program which uses GetForegroundWindow() over PSExec returns Idle

For automation purposes, I need to know the foreground window process running on a remote machine. I've written small scripts (C#, Python, Powershell) to do this - each of these scripts is using some or the other form of GetForegroundWindow() These…
Prasad
  • 21
  • 1
2
votes
1 answer

PSExec: cmd exited on [COMPUTER] with error code -196608

I've been working on trying to run a Powershell script on the network using PSExec, but every time I run it, I get this message: PsExec v2.2 - Execute processes remotely Copyright (C) 2001-2016 Mark Russinovich Sysinternals -…
Aideux
  • 109
  • 3
  • 9
2
votes
1 answer

Psexec vs SSH - Executing remote commands from Windows

I am currently using PHP exec to make use of Psexec to execute commands on a remote machine in my LAN. It sort of works, but I run into trouble every so often and have to google around for an answer, which causes me to make changes. I will soon…
Abs
  • 56,052
  • 101
  • 275
  • 409
2
votes
1 answer

Powershell /c with Special Characters (PsExec/EncodedCommand)

I'm trying to configure autologon.exe using the command line (via PsExec). However, the special characters in the password are causing issues. Given this password: I'vegotspe"cia"char@ters This command works: Start-Process 'C:\Autologon.exe'…
MTG
  • 163
  • 2
  • 12
2
votes
1 answer

runas or psexec inside Windows container

I have a windows image based on mcr.microsoft.com/windows:1809. In my Dockerfile, I created a new user via net user /add myuser mypassword Now I would like to enter the container, e.g. via docker run -it and execute commands via the myuser (instead…
langlauf.io
  • 3,009
  • 2
  • 28
  • 45