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

Chain psexec and nunit is not working (psexec exit with code 1 and nunit is crashed)

Sorry for unclear subject but i really don't understand where problem. I use a system for autotests c#+webdriver for chrome + nunit (2.6) + cc.net ( 1.6.7981.1) And my tests is run on remote machine (Windows XP SP 2 x86)via psexec which start bat…
alexey.chumagin
  • 630
  • 5
  • 16
0
votes
2 answers

PsExec redirecting output and error generated by the command not working

I've a console application which does this class Program { static void Main(string[] args) { Console.WriteLine("out"); Console.Error.WriteLine("err"); Environment.ExitCode = 5; } } When I run above in cmd prompt…
Ankush
  • 2,454
  • 2
  • 21
  • 27
0
votes
2 answers

Launching a command line application that launches another command line application never responds

When I run the following command from command line, I can run 7-zip as a remote user and extract a file to a network share: C:\PsExec.exe -u username -p password "C:\7z.exe" x -y -o\\network\extractedfiles\ C:\compressed.zip toextract.txt I am…
JSideris
  • 5,101
  • 3
  • 32
  • 50
0
votes
2 answers

dos batch script using psexec shows 'help' text every time it loops

Currently working on a script to ping every host on a /24 subnet, and then executes another script which runs psexec on those machines which are online. The ping sweep script is called ping.bat and the other script which actually runs psexec on the…
user1336749
  • 15
  • 1
  • 8
0
votes
2 answers

Batch for loop, maybe I'm missing something

I know I can do this with Powershell but, well, more as a project to practice my Command Prompt Scripting skills, wanna do it with a batch file. I have a txt file with ComputerNames, I want my loop to echo the name, then run SystemInfo and grab a…
FoxDeploy
  • 12,569
  • 2
  • 33
  • 48
0
votes
1 answer

Remote service checking batch file not quite working

Here is my pseudo: Read from LIST Ping to check if machine is awake | Report result Check to see if SERVICE is running | Report result NO? Is it stopped? YES? Run it | Report result NO? Must not be installed, remote install please! |…
-1
votes
1 answer

psexec: the system cannot find the file specified

On server 10.221.2.4 i have the following batch file entitled: restart_Tomcat.bat in C:\Users\Tomcat\Desktop and is working locally. @ECHO OFF SET SvcName=Tomcat9 SC QUERYEX "%SvcName%" | FIND "STATE" | FIND /v "RUNNING" > NUL && ( ECHO…
zinon
  • 4,427
  • 14
  • 70
  • 112
-1
votes
1 answer

Push msi with psexec for all the domain

I need help in pushing an Atera agent to around 80+ pc's I did that with GPO, the thing is that I finding my self asking people to do a restart to the computer in order to update the gpo, becouse most of the time they don't want to GPUPDATE. So at…
WebsGhost
  • 107
  • 1
  • 14
-1
votes
1 answer

Using PSExec to run a remote batch script

Have been tasked with trying to run a CMD .bat script via psexec so that it can be ran on remote machines as system. The plan being to then schedule this to run every X amount of days, is this something that's possible?
-1
votes
1 answer

Run Psexec from vbscript to disable scheduled task on Windows 10 and hide console window

I need a vbs script that will run through a scheduled task. The vbs script will be used to disable windows update scheduled tasks, which require special privileges, using Psexec. Psexec.exe is located in the same directory as the vbs script. Trying…
Berti
  • 11
  • 5
-1
votes
1 answer

How to tart service remotely on Windows 10

I have tried several methods to start the service remotely but none of them work. So, i try to start Windows Service (TeamViewer) from PC1 (192.168.1.10) on PC2 (192.168.1.20). All PC are on Windows 10 Pro. Ping 192.168.1.20 OK RDP 192.168.1.20…
Fandura
  • 39
  • 1
  • 3
-1
votes
2 answers

Checking Firefox Version remotely | The term 'firefox' is not recognized as the name of a cmdlet

I'm trying to get the currently installed Mozilla Firefox Version remotely by a PsExec Powershell Script. I found following cmd commands which will show me the information I want to get: $pathFirefox = "`"C:\Program Files (x86)\Mozilla…
DayDreaming
  • 99
  • 3
  • 10
-1
votes
1 answer

psexec commands works perfectly from powershell but not recognized by python

disclaimer - I know there is a package pypsexec for this i'm asking why this happens and how to solve it. the command psexec -s -i -d \\ -u -p works perfectly when typed manually at powershell however when I…
coder
  • 700
  • 8
  • 12
-1
votes
1 answer

Start command does not work when running bat-file via psexec

Met same problem: using cmd's Start command to run exe. Works locally, but not remotely But solution does not work for me - I use full path to *.exe file The task is install copy application installer from my computer (Win7, x64) to remote desktop…
Sergei
  • 1
-1
votes
1 answer

Acces denied when using psexec

I try to use the psexec program via command line to run program on another pc connected to my local network. What i try to accomplish?: I want to code a program that lets user send links ( to ebay auction e.g. ) to chosen pc from local network, for…