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

Suppress psexec command windows?

In the application that I'm working on, everything works great. My question, is there a way to suppress the command windows when executing psexec? I want this to run silently. Below is the code that I'm using.. I've read many examples online but…
Sparhawk
  • 137
  • 1
  • 1
  • 11
0
votes
2 answers

psexec bat file execution on multiple systems

I have a requirement to run a particular .bat file on multiple servers. I am currently using: psexec -s @c:\list.txt -c c:\copy.bat /user:Domain\userName -p %PasswordVariable% -d I am getting error such as:- Error copying c:\copy.bat to remote…
kino
  • 11
  • 2
  • 6
0
votes
1 answer

Accessing a remote drive on from a remote computer with psexec

I'm trying to access through a process on remote computer a remote drive ( The remote drive is on a 3rd computer) using this batch command: call c:\psexec.exe \\Some.Ip.Address -u administrator -p password i -s "c:\SomeFolder\Another.bat" The…
Idov
  • 5,006
  • 17
  • 69
  • 106
0
votes
4 answers

How can I pass a variable using psexec?

I my trying to pass a variable server name to use it with psexec, so I have a variable $hostname and i'd like to do psexec \\$hostname When I do this I am getting an error. What is the correct way to do this?
JoeRod
  • 899
  • 8
  • 20
  • 30
0
votes
1 answer

Why is psexec getting stuck after showing the eula?

I am trying to run the following command on one of my servers. $dotnetFrameworkInstalled = psexec -accepteula \\server1 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' 'Import-Module ServerManager; $feature = Get-WindowsFeature…
x1877
  • 3
  • 3
0
votes
1 answer

Remote UI Script on win7 in logged off state

I am using psexec to run a remote script which does some UI operations on the print objects present in the remote system. To be specific , the API used is SHInvokePrinterCommand() to invoke printer properties of a printer object. The entire thing…
user1624807
  • 271
  • 1
  • 5
  • 20
0
votes
1 answer

Configure printer from a remote pc using vbs and psexec

I have a vbs file for configuring a network printer. Its stored in a remote pc..I need to run that vbs file from my pc. I have used psexec to remotely execute the file. I ran psexec using an admin account that's common to both machines. The printer…
Ashok
  • 145
  • 2
  • 19
0
votes
1 answer

xp_cmdshell execute assembly and never stops

I wrote some console application and I want execute it through Sql Server using xp_cmdshell. So I wrote the following query: declare @sqlcmd varchar(200) SET @SQLCmd = 'C:\Automation\ProfileCreator\ProfileManagement.exe ' + @someParameter EXEC…
Ofir
  • 5,049
  • 5
  • 36
  • 61
0
votes
1 answer

Java execute a application in specific session

I am invoking a application on windows xp, 7 machines from remote linux using winexe. But I am not able to execute the application in foreground it executes in background. I tried psexec but no success. Can someone help me?
Suresh Balaji
  • 109
  • 2
  • 12
0
votes
1 answer

Installing exe installation file on a remote server using PsExec

I'm trying to install an exe installation file using PsExec: PsExec targetServer /s /accepteula exeFilePath /i /quiet For some reason I get the 1619 error. I'm running as an admin and my user is an admin on the remote server. Does anyone Know why I…
0
votes
1 answer

C# PsExec get process list: name, path

My code: Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.RedirectStandardInput = true; p.StartInfo.FileName =…
Dmitry
  • 581
  • 1
  • 4
  • 15
0
votes
2 answers

Get response from remotely executed .exe

I am executing a .exe that sits on a remote server however PsExec seems to hang and the local service does not exit. The .exe does run successfully on the server however when it is finished I want the local service to exit. This is the code I have…
Jack Eker
  • 169
  • 2
  • 2
  • 12
0
votes
0 answers

Using UNC path with psexec does not work in remote connection

Hi I am trying to open a setup file in serverB in serverA that I am connecting to remotely. When I use the UNC path for folder in serverB the error message states that the network path is not found. I know that there is some security layer that is…
BKoo
  • 95
  • 3
  • 13
0
votes
1 answer

Gathering Files from multiple computers into one

I am trying to gather files/folders from multiple computers in my network into one centralized folder in the command console (this is the name of the pseudo server for this set of computers) Basically, what i need is to collect a certain file from…
0
votes
1 answer

Issuing commands (stdin) to an already running process using PHP

I got this process running doing some server-related tasks. I'd like to have PHP issue a command to it. The software I'm using is Craftbukkit which is a custom server tool for Minecraft. I'd like to be able to execute various commands to it using…
user1248084