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

Execute a command (TortoiseHG) through cmd remotely (PsExec)

Basically I want to use PsExec in order to navigate to a specificar folder in a remote computer and performe "hg update branch". I've tried to create the following batch but I'm not able to perform the command: psexec cmd.exe /c "cd C:\Project\hg…
kenzoviski
  • 81
  • 1
  • 10
3
votes
1 answer

Creating Files as System

I am trying to get a program run by System(rather than a user) to write to a file, but I am having trouble. Running my program as a user, the file is generated correctly, but running the same program using >PSExec -s myProgram.exe, no file is…
Chris Finley
  • 3,901
  • 5
  • 24
  • 32
3
votes
1 answer

DOS Batch Programming pSEXEC

I have a batch file, say A.bat On execution, this A.bat will create another batch file, say remote.bat If I manually copy the remote.bat to the remote machine then it works 100% perfect. However, if I use it as a part of psExec in my A.bat then it…
Sarah Mathews
  • 31
  • 1
  • 2
3
votes
6 answers

PsExec: copying my program not into "system32" folder

I can't get PsExec to work. It keeps copying my installer into system32 (where it won't launch). Does anyone know how to copy from the local to the remote computer to a directory that isn't system32? My PsExec command line is psexec \\000.00.00.000…
Steve
  • 11,763
  • 15
  • 70
  • 103
3
votes
3 answers

Python Popen hanging with psexec - undesired results

I'm having an issue with subprocess.Popen and what I believe to be pipes. I have the following block of code which works without issue 100% of the time when running from the cli: p = subprocess.Popen("psexec \\\\" + serverName.get() + " cmd /c…
Tony
  • 391
  • 1
  • 4
  • 11
3
votes
1 answer

PsExec is not working on Windows 10 Pro due to "Access denied" error

GOAL Remotely access from a machine to another, using psexec, in order to start/stop a net service. CONFIGURATION Windows 10 Pro on both machines PsExec v2.2 ISSUE Couldn't access MACHINE_IP: Access denied. PREMISE from now on, I'll refer to…
AV FMX
  • 45
  • 1
  • 1
  • 7
3
votes
1 answer

How to run an R script (which has database connection using integrated windows authentication) on a remote machine under local username?

Consider the following scenario: Database server: DBServer R Server: RServer Orchestrator Server: Server1 We have following R Script (DB.r): lib.directory = "D:\\RTest" install.packages("RODBC", repos = "http://cran.us.r-project.org", lib =…
Ray
  • 35
  • 1
  • 5
3
votes
2 answers

Find the extended "ver" information for remote Windows computer

Windows 10.0.16299 has added a new "Update Build Revision" ("UBR") number to the ouput of the 'ver' command: As of 12/17/2017, a fully updated Windows 10 computer reports: C:\> ver Microsoft Windows [Version 10.0.16299.125] After spending many…
mmccarn
  • 69
  • 1
  • 6
3
votes
1 answer

Using dcu-cli.exe to Install Dell Updates on Remote System

I found that I like the command line "Dell Command | Update" tool called dcu-cli.exe. I can run it in a remote session, run CMD as admin, pushd to the directory with it and its dependencies, and it runs great. But, but want to be able to do this…
Debug255
  • 335
  • 3
  • 17
3
votes
1 answer

psexec does not work properly when called from xp_cmdshell

I want to run a jarfile from an SQL Server to a different machine remotely. To do this, I found out I can use PSEXEC to send commands remotely to the target machine and use xp_cmdshell so I can call psexec command form a stored procedure. I already…
Krish
  • 319
  • 4
  • 19
3
votes
1 answer

Passing Y/N when executing a remote bat file from command line

I am trying to execute remote batch file. I could invoke the batch file using PsExec but unable to complete due to :choice in the batch file. Here is the snippet from batch file :choice set /P c=Are you sure you want to continue [Y/N]? if /I "%c%"…
User 0234
  • 135
  • 2
  • 11
3
votes
1 answer

Pushing flash updates printing off failed computer list

I am pushing flash to many computers using psexec and msiexec. I have figured out how to show how many passed and failed and have that printing to another text file. (DE_Flash.txt) I am trying to figure out how I can show the list of the computers…
David Brierton
  • 6,977
  • 12
  • 47
  • 104
3
votes
1 answer

How to redirect standard output to a file from psexec process in c# within a Windows Forms Application

I've been trying to get the console output from running psexec as a process in a c# windows forms application. I've found I can redirect the standardoutput(and standard error) to a specified text file fine in a console application, and can redirect…
3
votes
1 answer

Nant - Check if a remote share already exists

We are using Nant to deploy an application and need to ensure that a share is created during the process. We use psexec and net share to create the share but this fails and stops Nant if the share already exists. Is there any way to detect that a…
Shevek
  • 3,869
  • 5
  • 43
  • 63
3
votes
1 answer

php -> shell_exec() -> psexec -> my executable chain fails

I have a php from where I have to call a cmd, and from that cmd I have to start an exe using psexec. My php, cmd, psexec.exe and the exe I actually need to run are in the same folder. php: shell_exec("runas.cmd"); runas.cmd: @echo off psexec -u…
fishmong3r
  • 1,414
  • 4
  • 24
  • 51