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
6
votes
1 answer

CMD start nor PSExec open interactive application in foreground when using PHP to connect to SSH

I'm running the following through a remote PHP script that connects to SSH: cmd /C start "" /MAX /b "C:\Windows\System32\notepad.exe" The process does start however it remains in the background and will not open fully on the remote desktop. Is…
Talisman
  • 388
  • 4
  • 19
6
votes
4 answers

PSExec never completes when run inside start-job

I'm trying to execute a cmd file on a list of 48 computers. I don't want to execute and wait for completion sequentially because each cmd takes about 10 minutes to complete. WinRM isn't an option. Neither is WMI. PSExec is an option....but I…
Rob Wiley
  • 85
  • 1
  • 7
6
votes
2 answers

Executing a batch file in a remote machine through PsExec

I am trying to run a batch file (in the batch file I have just written 'notepad') on a remote PC through PSExec. The psexec command below runs in my laptop but fails to do anything on the remote PC. I don't even see 'notepad' running on the list of…
user3565150
  • 884
  • 5
  • 21
  • 49
6
votes
2 answers

Copy an Ant argument list into a property

In Ant is there any way to do something like this: I'm trying to write a macro for psexec and I'm looking for a…
Luke Quinane
  • 16,447
  • 13
  • 69
  • 88
6
votes
2 answers

How to check remote server time via psexec

I tried command like below. But can't see server time. psexec \\SERVER_NAME -i -u USERNAME -p PWD "C:\WINDOWS\system32\cmd.exe /c time /t" Or is there any alternative? Thanks.
Stan
  • 37,207
  • 50
  • 124
  • 185
6
votes
3 answers

PsExec and invalid handles

I am trying to use a windows batch script that uses PsExec to execute commands on a remote machine. Periodically it has "invalid handle" and the script then fails. The script has not altered or indeed either machine. Does anybody know why this…
Ed Heal
  • 59,252
  • 17
  • 87
  • 127
6
votes
3 answers

PSexec and windows 2008 server (access denied)

I have a program which uses psExec for retrieving environment variables on a remote host. I get the error: Could not start PSEXESVC service on xxhost Access denied. This command works for windows 2003 servers but not 2008 (it works on 2008 if I run…
user3032725
  • 71
  • 1
  • 1
  • 4
6
votes
3 answers

Help needed to get Process ID for PsExec.exe in C#?

I am using the below code to invoke PsExec.exe which invokes my console application in two servers, I am not able to grab the ProcessId of the invoked processes (my console apps). process.StandardOutput.ReadToEnd()); is only giving me the…
Jon K
6
votes
1 answer

Exitcode 6 using PsExec in Windows Service

I am using PsExec to defrag machines remotely on my network. This works fine in my c# code, but because it also does a bunch of other tasks and I want it to run continuously I have converted it into a windows service. When the code gets to the…
mgrenier
  • 1,409
  • 3
  • 21
  • 45
6
votes
4 answers

Copy a non exe File to a Remote Machine

I used PsExec to copy and run an exe file in a remote machine. I also want to copy a xml file to remote machine. I am able to do this way PsExec.exe -d -c \\someserver c:\somefile.xml The above command throws error saying system cannot find the…
sriram
  • 407
  • 2
  • 8
  • 19
5
votes
1 answer

PsExec to Remotely run a GUI Application

I am trying to launch a GUI application remotely using PsExec. ProcessStartInfo info = new ProcessStartInfo(@""); info.FileName = @"C:\\PsExec.exe"; info.Arguments = @"\\" + ""…
Varun S
  • 587
  • 4
  • 12
  • 25
5
votes
1 answer

Does an open-source psexec clone written in Delphi exist?

I'd like to add psexec type functionality to an application, but I'd like to have it in native Delphi. Ultimately my goal is to remotely execute a process as SYSTEM, which will require installing a service on the remote machine. I'm familiar with…
Mick
  • 13,248
  • 9
  • 69
  • 119
5
votes
2 answers

psexec fails against windows 10 remote target

Does psexec work against Windows 10 remote hosts? I'm running psexec from a Windows 7 machine. When the remote host is Windows 8.1, it works, when the remote host is Windows 10, it fails as below: C:\Windows 7>psexec -h -u Admin -p passwordHere -n…
luminous
  • 61
  • 1
  • 1
  • 4
5
votes
2 answers

PSEXEC Fails to run locally: Error establishing communication with PsExec service

I only have this issue on a single Windows 8.1 machine in my domain when running PSEXEC locally. Before my domain password expired and was changed, running PSEXEC locally with this command worked. \\fs\storage\QA\Mason\psexec\PSExec.exe \\support02…
MGItkin
  • 380
  • 2
  • 5
  • 13
5
votes
1 answer

How do I edit text remotely in Windows

(Note, this question is also posted on technet) How can I remotely edit a text file in Windows? I am running and administering a number of Windows 7 workstations and Windows Server 2012 machines. I would like to be able to remotely edit text files…
laffoyb
  • 1,540
  • 3
  • 22
  • 35
1 2
3
55 56