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

Psexec , cmd and batch file

I have a batch file named a.bat on a winserver2008 Desktop. That batch file only write the SessionID (from environment variable) to a local eventlog. I want to execute it remotely using cmd (otherwise the SessionName doesn't appear). so I have…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
4
votes
1 answer

Access denied using psexec when connect to remote server

I use latest version of PsExec, and execute Command Prompt as Run as Administrator. We use PsExec v2.11 MY_MACHINE is on MY_DOMAIN domain. REMOTE_SERVER is on OTHER_DOMAIN domain. user_partner is on DOMAIN_PARTNER.NET. For execute a simple Server…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
4
votes
2 answers

PSEXEC Error : No process is on the other end of the pipe

I want to execute a bat file in a remote machine and i tried WMI and PSEXEC. I am getting "No process is on the other end of the pipe." error when i try to run the below psexec command. C:\Users>psexec \\111.111.111.111 -u "sss\user1" -p "ss-12"…
King Kamal
  • 195
  • 1
  • 4
  • 15
4
votes
1 answer

Cannot run TopShelf install remotely using psexec

I am trying to install a windows service on a remote machine. The service is implemented using TopShelf. I am running the following psexec command: psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" "install" The error I am…
Rob Bagby
  • 139
  • 1
  • 7
4
votes
3 answers

Robocopy to copy files to a remote machine

I'm trying to write a robocopy command to copy files from my local computer to any one of my deployment servers ROBOCOPY ../../MyService/bin/release/ \\remote-computer\\C:\services\myservice /MIR and I get this error The system detected a possible…
Neil
  • 5,179
  • 8
  • 48
  • 87
4
votes
4 answers

Couldn't access using PSExec - PSTools

PSTools I downloaded and installed in C: \ PSTools. Then I did the following: 1 - I opened the Command Prompt 2 - C: \ PSTools> I did this: C: \ PSTools> psexec 3 - Then I did: C: \ PSTools> psexec \ \ IP-u user calc But it returns this…
David
  • 171
  • 2
  • 6
  • 18
4
votes
4 answers

PowerShell script - How to process result of executed command

I have a small script that copies files to a list of remote machines. In this script I use: Copy-Item "$AppLocation\$AppName" -destination "\\$MachineName\c$\" -force This can throw various types of errors. If this throws an error, I want to log…
flayn
  • 5,272
  • 4
  • 48
  • 69
4
votes
5 answers

list all computers on a network with cmd or C#

I need to get a list of all the computers on the network The network is split into two local networks. An admin network and an education network, and then under each of the admin and education networks there are sub nets for each campus. So there is…
user802599
  • 787
  • 2
  • 12
  • 35
4
votes
5 answers

psexec giving the system cannot find the file specified

I'm trying to run this from my win7 CMD (as Admin): psexec IpAddress -u domain\user -p pword c:\Autobatch\ClientJobSender.exe http://reportserver.net:8070/JobExecutor.asmx c:\AutoBatch\backup\trigger.xml but am getting a "the system cannot find the…
lightweight
  • 3,227
  • 14
  • 79
  • 142
4
votes
1 answer

PsExec 1.98 (spawned from C# process) never completes when running 7Zip across domain

I am kicking off PsExec using a C# .NET 4 process with the code var startInfo = new ProcessStartInfo(psExecLocation) { Arguments = string.Format(@"\\{0} -accepteula -u {1} -p {2} {3}", serverName, username, password, command), …
Chris Katz
  • 100
  • 9
4
votes
1 answer

Batch files, Powershell Scripts, PSExec and System user

I'm trying to put in place some monitoring for Windows Task Scheduler, I have a Powershell script that runs the following: $serverName = hostname $schedule = new-object -com("Schedule.Service") $schedule.connect($serverName) $tasks =…
Phlebass
  • 91
  • 2
  • 10
4
votes
2 answers

Using Psexec with Windows Server 2003

I'm trying to run a psexec command to a remote Windows Server 2003 machine. I run the following command: psexec \machinename perfmon.msc -u machineadmin -p adminpassword -i -s The -i and -s flags will allow me to run the GUI for perfmon.msc on the…
cmmacphe
  • 323
  • 3
  • 8
4
votes
2 answers

Remote scheduled task status

for my application I want to be monitoring the "Status" tab of specific scheduled task on a remote server and perform actions based on that status. ie, run a task if it is not already running, etc. As of right now, I am launching cmd.exe as a…
Kevin Zhou
  • 1,273
  • 4
  • 17
  • 25
4
votes
5 answers

Why does Windows XCOPY fail when invoked via Perl system call via psexec?

I'm using psexec to launch a Perl program on remote Windows machines. The program makes a system call to xcopy.This works fine when run directly (locally) on the machines, but when run remotely via psexec, the xcopy fails with the following…
UhClem
  • 129
  • 3
  • 10
3
votes
1 answer

MSBuild PSExec hangs without error while executing batch file

As part of as our Team Build MSBuild script, we have a deployment batch file which I need to execute on a remote server: I can confirm it is not permissions or…
Jon Eastwood
  • 813
  • 10
  • 22