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

Psexec failing when running multiple commands in sequel

Using windows task scheduler i am running multiple commands, I'll call them task1.bat, task2.bat, and task3.bat . Each one of these scrips runs a different Psexec command (psexec version 2.11). When running task1.bat, task2.bat, and task3.bat…
Buddy
  • 43
  • 1
  • 5
-1
votes
1 answer

PSExec on Windows Server Startup Script

I'm programatically launching a Google Cloud Compute Instance running Windows Server 2016 with a start up script. The executable in the start up script requires to be launched as a specific user, so I'm trying to launch it with psexec to simulate…
Dxx
  • 934
  • 2
  • 11
  • 41
-1
votes
1 answer

PSEXEC to get patch list of remote server

I am currently trying to get a patch list of a remote server and export the results on to my c:\temp\ folder or on to a network path. I currently have the below code with PSEXEC. Psexec \\servername wmic qfe list brief >…
user3290171
  • 121
  • 1
  • 3
  • 19
-1
votes
1 answer

Trust relationship auto fix script

i am trying to come up with a script to automate the fix for the common issue in domain environment "the trust relationship error " for my help-desk employee , where they can just run the script with required variable options : using power-shell…
kuku blr
  • 1
  • 1
  • 1
-1
votes
1 answer

Sysinternals psexec not running on the remote desktop

I've got two Remote Desktops hosted by a Hyper-V. On Remote Desktop "A", I've got a .bat file, which I want to execute. On Remote Desktop "B", I've got a cmd open with psexec cmd ready to invoke .bat file on machine "A". "path-to\\psexec.exe" \\ip…
magic_turtle
  • 1,243
  • 3
  • 17
  • 37
-1
votes
1 answer

How can I pass arguments to a command that is run via psexec.exe?

I am running the following command format: PsExec.exe -i -s \\\\ip -u username -p password "\\\\shared\driver\path\autoitscript.exe" "\\\\shared\driver\path\car.jpg" The exe file takes in a file path and enters the path in a file upload window. The…
quldude
  • 507
  • 5
  • 16
-1
votes
1 answer

Python psexec loop is not working

I am writing a script to kick off a bat script in several client systems. I'd like to capture each system that fails. The issue i have is that it cycles through the clients and then my IF statement is run at the end. This sounds like the IF…
user2099445
  • 103
  • 7
-1
votes
1 answer

PSEXEC: not recognising remote command

I am able to execute basic operation by triggering batch script on remote location using following command. psexec -e -h -s -u User -p pass \\10.0.0.240 C:\test.bat But when the test.bat file is calling other program specific script like somepy.py…
HaWa
  • 231
  • 2
  • 4
  • 10
-1
votes
1 answer

How to execute multiple commands - C#

There are 2 PCs(server & node). The Selenium hub is up & running. The notifications are seen in its cmd window. Now, I'm trying to set up another PC as a Selenium node. To do that I need to run 2 commands from the server PC command prompt.It works…
sukesh
  • 2,379
  • 12
  • 56
  • 111
-1
votes
1 answer

Redirecting standard output of a process in C# (Permissiong bug)

I wrote an app in C# (WPF) which takes remote hosts data (using Psexec). The app requires you to be with high privileges (Administrator). I have this kind of code in my app: var proc = new Process { StartInfo = new ProcessStartInfo { …
chenan
  • 69
  • 1
  • 1
  • 7
-1
votes
1 answer

Remotely called VBScript fails, but works when run locally

I've been using PSExec.exe to run a vbscript on a few hundred remote virtual machines. This is generally working. However, on a small group of VM's, I get this error: MyScriptName.vbs(24, 5) WScript.CreateObject: Could not create object named…
Dave Mason
  • 4,746
  • 2
  • 23
  • 24
-1
votes
1 answer

Deploy IE shotcut from server to multiple PCs

I'm new to sccm, psexec, and vb scripting. I need help copying a Internet Explorer shortcut from a server to multiple computers. Lets say my link is named Shortcut.lnk and is located on \troyserver\shortcut.lnk and I need to push it to troypc1,…
-1
votes
1 answer

Automating autoruns-psexec or not

So i'm working on some project to find malware in my network.Trying to automate autoruns(sysinternals) in order to find anomalies or changes in startup on workstations.to do so i want to make daily reports for multiple workstations each day and…
Chechik
  • 11
  • 1
  • 7
-1
votes
1 answer

Executing psexec from c# code

I am trying to execute a command on "psexec" by passing some variable to it. Tried various ways to execute it but still not able to accomplish it. I want to execute following with button event handler. private void button3_Click(object sender,…
Amrit Sharma
  • 1,906
  • 8
  • 45
  • 75
-1
votes
2 answers

psexec run python script passed from host

I am trying to run a python script on a remote computer via psexec. I am able to connect and run python.exe with the following: C:\test>psexec \\192.168.X.X -u domain\administrator -p password -i C:\Anaconda\python.exe The path to python.exe is…
Ryan
  • 655
  • 2
  • 8
  • 12
1 2 3
55
56