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
2
votes
0 answers

qwinsta only returning headers when executed using PsExec in some scenarios

I have a problem with qwinsta only returning headers when executed using PsExec. A minimal test case for this is to create a file "shelltest.ps1", containing just a single command (the last parameter to the qwista is the username but I get the same…
Albatros
  • 129
  • 1
  • 7
2
votes
1 answer

can't start notepad on remote machine using psexec

I need execute some script in remote computer, I try to start notepad. I use psexec, this command psexec -e -i 1 \\localhost -u domain\user -p password cmd /c notepad.exe successfully opens notepad on my local machine, but doesn't do it on…
khris
  • 4,809
  • 21
  • 64
  • 94
2
votes
1 answer

How to make a popup while windows session is locked (prefer Windows BATCH file)

I am Help Desk for a company and we have some computers on our VPN. We sometimes have to use Windows Remote Desktop to login to these computers. (mostly Windows XP but some Windows 7) When we remote into a Windows the computer/session is locked I…
2
votes
1 answer

PSexec on remote machine hangs running from Teamcity

I'm running TeamCity version 7.1.4 with a step that uses PSEXEC in order to run batch file on a remote machine. The batch file should extract files and deploy them. Running the PSEXEC from command prompt completes the task. Running from team city i…
2
votes
0 answers

PsService.exe Operation Process Profiling - 20 second delay

On server1, I am executing PsService.exe -accepteula \\server2 stop "Name of Service" The process is successful, but there is a 20 second delay. I ran Process Monitor on server1 and server2. On server1 I found PsService.exe was Process Profiling…
jsmickey
  • 718
  • 10
  • 20
2
votes
2 answers

Time out when using system cmd in perl

I'm using PSEXEC to run remote process with system($CMD) in perl. I have a computer (lets call it-#1) that runs system cmd, and another computer (lets call it-#2), which "receives" commands from computer #1. Sometimes the process in the second…
user2451547
  • 41
  • 1
  • 5
2
votes
3 answers

Psexec and UAC issue

I am using psexec to run a exe in a remote machine which is windows 7. I need the exe to run with administrator privilege as it needs to update some registries under HKLM in the remote system. While running psexec I am providing the credentials of…
user1624807
  • 271
  • 1
  • 5
  • 20
2
votes
6 answers

PHP exec(psexec.exe) hangs indefinitely

I have a development / testing setup on a windows box and need to test calling a background process. I am using http://www.somacon.com/p395.php as a list of options for running a background service. Here is the sample code I am trying to…
teynon
  • 7,540
  • 10
  • 63
  • 106
2
votes
1 answer

Access is denied - PSEXEC Called from TFS

I'm implementing a continuous integration scenario for a SharePoint deployment. After all features have been build on the build server, I'm attempting to deploy the new features to the test server by running STSADM commands through PSEXEC. When I…
Peter Walke
  • 2,497
  • 6
  • 33
  • 50
2
votes
2 answers

How to get Windows SYSTEM user token

Operating system is Windows 7 or higher with UAC enabled. Calling process has admin rights, already confirmed by the UAC box. I want to spawn a new Console window (cmd.exe) under user SYSTEM (don't ask why). I can do this interactively by using…
e4ch
  • 31
  • 1
  • 5
2
votes
1 answer

Can you run remote commands without psexec?

I am attempting to run a batch file on several remote machines. It has some registry changes and other commands that I am able to run remotely. I have one command I have not been able to figure out an alternative: net user USERNAME…
Jeff
  • 4,285
  • 15
  • 63
  • 115
2
votes
1 answer

Running Msiexec As Administrator Remotely using PSExec

We moved our product to run on Windows Server 2008. We run the installation with admin privileged user however since in Windows server 2008 we need to elevate the program although we are administrator. We do it by opening the comman prompt by right…
liorafar
  • 2,264
  • 4
  • 19
  • 39
1
vote
3 answers

Starting Powershell elevated from PSExec (enable-psremoting)

I'm trying to enable-psremoting with PSexec on my servers with the following command: psexec.exe \\server cmd /c "echo . | powershell (-verb runas -argumentlist (enable-psremoting -force))" but it doesn't work. I'm guessing I'm messing up my double…
Sune
  • 3,080
  • 16
  • 53
  • 64
1
vote
0 answers

Unable to load dll when running process with PsExec

When i run my app using PsExec (same machine but with user credentials) i receive the following error when trying to load a dll: Unable to load DLL 'AcWsHost.dll': Exception from HRESULT: 0xE06D7363. It happen also when the credentials are of the…
Erik Sapir
  • 23,209
  • 28
  • 81
  • 141
1
vote
2 answers

C# and psexec process output redirection issues

I'm trying to create a small program to run on a centralized device. This program will run "psexec \server(s) netstat -na | findstr "LISTENING"" to collect netstat data from remote nodes (should redirect output to string), then parse the data and…
JStillwell
  • 43
  • 1
  • 5