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'.

807 questions
72
votes
18 answers

PSEXEC, access denied errors

While I'm using PSEXEC.exe getting 'Access denied' error for remote systems. Any idea about how to solve this?
Pax
48
votes
2 answers

PsExec gets stuck on licence prompt when running non-interactively

I have a Hudson build script which calls the SysInternals PsExec utility. Normally, when PsExec is run for the first time by a given user it pops up a dialog box asking the user to accept the licence. The build agent runs as a service and I can see…
EMP
  • 51,372
  • 47
  • 157
  • 214
16
votes
2 answers

Psexec "run as (remote) admin"

I wrote some c# code that uses PSexe. I want it to run a remote exe on a machine connected to my LAN. That exe creates a new local user. When I run that exe locally on the remote machine (after right click --> "run as Admin") - it works fine. I…
Elad Benda
  • 30,720
  • 75
  • 234
  • 415
15
votes
2 answers

Strategy for Automated UI testing on remote virtual machines

I'm using TeamCity for my CI builds, and I'd like to set up a second build for running automated UI tests on Windows XP and Windows 7 virtual machines. I imagine the build working as follows: Compile, run unit tests, etc. Prepare MSI using…
Paul Stovell
  • 31,336
  • 15
  • 76
  • 107
15
votes
2 answers

How to run exe on remote PC using psexec

There is an exe (D:\TestFile.exe) in remote pc(SYSDES208). When run, it just creates a text file with some text. It works fine when run manually. I'm trying to execute this from another PC this way, in command prompt. D:\PsTools>cmdkey.exe…
Qwerty
  • 2,219
  • 9
  • 39
  • 92
15
votes
13 answers

Program output lost when passed through PsExec

(This is a question my coworker posted elsewhere, but I thought I'd post it here to see if I could hit a different audience.) Hello all, I'm testing the possibility of writing a small java application the will use Psexec to kick off remote jobs. In…
mwalling
  • 1,657
  • 1
  • 19
  • 25
14
votes
6 answers

PSEXEC - "The Handle is invalid" When running the command as System User

This is the command that works fine if run from a user-spawned command prompt: PSEXEC \\xxx.xxx.xxx.xxx -u xxxx -p xxxx -accepteula cmd /c "TYPE C:\Pyxislog\PYXIS01.log|Find/i "%ID%"" >nul However, if I try to run this from a system-invoked cmd…
bill
  • 651
  • 1
  • 8
  • 19
13
votes
4 answers

Running a remote batch file using psexec through Jenkins fails

Running a remote batch file using psexec through Jenkins fails. Running the same batch file using psexec from the slave directly works without a charm. Let me provide some more information. Jenkins and its slave are in a separate domain than our…
11
votes
3 answers

PsExec Throws Error Messages, but works without any problems

So we are using PsExec a lot in our automations to install virtual machines, as we can't use ps remote sessions with our windows 2003 machines. Everything works great and there are no Problems, but PsExec keeps throwing errors, even every command is…
Simons0n
  • 1,911
  • 5
  • 19
  • 44
10
votes
1 answer

Launching background tasks in a remote session that don't get killed when the session is removed

I have been using PsExec -d to launch console applications in a remote powershell session because I want these apps to run in the background while I perform some task. The problem is that I want the background applications to continue running even…
David K.
  • 5,703
  • 10
  • 44
  • 76
10
votes
2 answers

System.IO.IOException when calling System.Console.WindowWidth

When making calls to any one of System.Console.BufferWidth, System.Console.CurserLeft or System.Console.WindowWidth I am greeted with a System.IO.IOException when executing my [console] app from within PsExec. All works correctly when executed…
SmithPlatts
  • 658
  • 8
  • 16
10
votes
4 answers

Start And Stop Windows Service remotely using PSEXEC

How to start and and stop a Windows service remotely using PSEXEC? Preferably the syntax to write I tried the cmdlet given below psexec \\Server -u Administrator -p Somepassword ServiceName
Selwyn
  • 1,451
  • 6
  • 19
  • 37
9
votes
5 answers

PSexec copyright output

Does anyone know, how to disable "copyright header" from appearing when running PSExec? Everutime I run "./psexec ..." command I see this message: PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals -…
Matthew Lowe
  • 1,249
  • 2
  • 16
  • 31
9
votes
1 answer

PowerShell open remote GUI session for UIAutomation

I'm currently working on automatic installation of GUI application using library UIAutomation PS Extensions (https://uiautomation.codeplex.com/). It works pretty well in cases, when I run it against existing Windows user session. I run my PS script,…
9
votes
3 answers

How to pass parameters to an exe?

I am using psexec on my server to run an exe file on another server. How do I pass parameters to the other exe ? The exe that I am running on my server is psexec which in turn must run the exe named vmtoolsd.exe located on another system. How do I…
spdcbr
  • 196
  • 2
  • 4
  • 14
1
2 3
53 54