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
80
votes
19 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
51
votes
3 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
  • 59,148
  • 53
  • 164
  • 220
18
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
  • 35,076
  • 87
  • 265
  • 471
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
  • 32,377
  • 16
  • 80
  • 108
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…
sukesh
  • 2,379
  • 12
  • 56
  • 111
15
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
  • 711
  • 1
  • 8
  • 19
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,745
  • 1
  • 19
  • 26
14
votes
3 answers

Make sure that the default admin$ share is enable on ServerName

When running the psexec command to remotely install or execute something on a sever on the same network the following error was displayed. Couldn't access ServerName The network name cannot be found Make sure that the default admin$ share is enable…
Geddon
  • 1,266
  • 1
  • 11
  • 31
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…
12
votes
2 answers

How to prevent error message when AppPool is already stopped

I am running the following cmd on my MSBuild using PsEXEC. %systemroot%\system32\inetsrv\appcmd stop apppool /apppool.name:MyAppPool If the MyAppPool is already stopped, and try to stop again, I am getting error message. ERROR (…
teenboy
  • 368
  • 2
  • 12
12
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
  • 773
  • 7
  • 20
11
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.
  • 6,153
  • 10
  • 47
  • 78
11
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 -…
Martinecko
  • 1,719
  • 4
  • 22
  • 35
11
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,…
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…
modmoto
  • 2,901
  • 7
  • 29
  • 54
1
2 3
55 56