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

Powershell and PSExec

I find it that I am using psexec all the time at my job to remotely make changes in mass. When I run PSEXEC in powershell, I get the following message on every computer that I connect to: Code: foreach($computer in $computers) { psexec -i…
alexander7567
  • 665
  • 13
  • 35
3
votes
3 answers

Compile failure only when I run it as a remote service using PsExec

I am trying to run compile tests on a series of build machines so I've written a script to distribute the jobs to each machine. I am using PsExec from microsoft which installs a service on the build machines where it runs commands from. On each…
Edited Content
  • 187
  • 1
  • 2
  • 10
3
votes
0 answers

Windows domains and trust relationship error on vmware spapshots vm's

I'm working on automation, where we use lots of vmware vm's. About year ago we were asked to move all the vm's on the domain from the workgroups. Usually for each automation run we revert that vm back to the snapshot, power it on, then run branch of…
Gino
  • 317
  • 2
  • 18
3
votes
1 answer

Install windows service with PsExec?

Is it possible to remotely install a Windows system serive using PsExec? The files are already on the remote system; I am trying to use psexec \\remote-host-name -u myusername -p mypassword PathToExecutable where PathToExecutable is the path to…
Codor
  • 17,447
  • 9
  • 29
  • 56
3
votes
4 answers

Execute exe on remote machine

I'm trying to execute notepad.exe on a remote machine, but it's not working now. What am I missing? var ui = new ImpersonateUser(); //the process to restart const string processName = "notepad.exe"; var serverName = "serverName"; …
MrProgram
  • 5,044
  • 13
  • 58
  • 98
3
votes
2 answers

PSEXEC The system cannot find the file specified error

I'm trying to run a batch script on multiple servers using a vbscript that's from another server. I'm using psexec on my local machine to run this batch script. This is the script I'm running:(This is server 2003) psexec -s -accepteula…
giacmeister
  • 35
  • 1
  • 2
  • 7
3
votes
1 answer

Launch Notepad.exe using PsExec sysinternal tool

I am trying to launch notepad.exe on remote server A from local server B. below is the command which works fine and I could see notepad.exe process on Task Manager however when I physically remote login to server I do not see notepad launched…
Sam
  • 392
  • 1
  • 6
  • 18
3
votes
2 answers

psshutdown fails unless run from admin cmd prompt

Ok here's an interesting problem I've run into. I'm attempting to reboot some computers remotely using psshutdown and getting access denied errors unless I run the cmd from a cmd prompt that was run as admin. I myself am an admin on my machine as…
pmcfarland
  • 105
  • 1
  • 3
  • 10
3
votes
4 answers

Running batch file on remote machine from hudson server using PSEXEC

I am new to Hudson with PSEXEC, i am using hudson in my computer, i want to run batch file on remote computer from hudson build. I used PSEXEC to run batch file on remote computer,when i executed from command promt it working successfully.But same i…
vishu
  • 51
  • 4
  • 6
3
votes
1 answer

How to run executable from PHP website as a specific Windows user?

By default PHP runs under IUSR account. When executed directly: $lastline = exec('D:\\MyProgram.exe', $output, $return_var); It runs, but the program is unable to do it's tasks due to insufficient privileges. My question is: How do I run an…
Slava
  • 2,887
  • 3
  • 30
  • 39
3
votes
2 answers

PsExec use MKDIR

Hi I try to create a folder on local user which doesn't have access right. So the script is to help user creating a folder by using domain admin account and will be converted to EXE when it run. So I figure out using PsExec to use it. But I'm no…
m.k.frenky
  • 301
  • 2
  • 4
  • 11
3
votes
5 answers

PsExec: Win7-to-Win7 Access Denied (psexesvc remains)

I have a problem, and the Internet doesn't seem to have a solution, so maybe someone here can help. I'm trying to start a command-line prompt on a remote machine using PsExec, but I keep getting an "Access is Denied" error. Both my local and the…
doubleYou
  • 310
  • 1
  • 4
  • 14
3
votes
0 answers

PsExec & Process Through C# Not Showing Output

Apparently PsExec is working. This code works. When executed, it never returns errors. But only SOMETIMES does it return output, and when it does return output, it is always~ the first line. And the first line of ipconfig is "Windows IP…
user99999991
  • 1,351
  • 3
  • 19
  • 43
3
votes
1 answer

Start GUI application on remote server

I've looked through the forums and havn't found anything that quite helps me complete what I want to do. What I'm looking for is a way to start a the GUI for an application on a remote server. I've seen that I can do this with PsExec as long as I…
tylerauerbeck
  • 173
  • 4
  • 15
3
votes
0 answers

PsExec v1.98 does not show any build output in Team City 7.1

I am trying to use Team City to provision a Windows 2008 R2 machine using puppet for windows. There is a TC Agent that is supposed to connect remotely and call the puppet client inside our target server. We tried to use Powershell but we had issues…
Maverick
  • 1,293
  • 1
  • 19
  • 39