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

Running PSEXEC so files and directories are relative to target machine

Ok, I am having trouble registering OCX files on remote machines using psexec, but think I have figured out where my problem lies. Basically I have a script that runs the following command PSEXEC \WORKSTATION1 REGSVR32 /S…
TroggleDorf
  • 410
  • 2
  • 8
  • 14
0
votes
1 answer

getting a list of running applications with java and then sending a key press to it

can java even do this? i know it is suppose to be "sandboxed" but what i'm looking to do is this: open my java program have a combo box full of running programs (runtime exec?) after i've selected the program thats running, i then want to send that…
genx1mx6
  • 425
  • 1
  • 6
  • 12
0
votes
1 answer

Permissions for PSExec run from SQL job

I have the following in a CMDExec type SQL Job step (details changed): D:\path\PSExec.exe \\servername -accepteula -u "domain\username" -p password D:\path\executable.exe This works fine. However, I have set up a proxy in SQL Server for the same…
CompanyDroneFromSector7G
  • 4,291
  • 13
  • 54
  • 97
0
votes
1 answer

change environment variable on remote Windows machine

I'm trying to set an environment variable on a remote machine. setx /s machine var value doesn't work - it produces no output and doesn't do anything. psexec \\machine setx var value says it changed the value successfully. However when I go to the…
ModdyFire
  • 706
  • 3
  • 9
  • 19
0
votes
2 answers

using exec command in php doesnt work

I have to automate a process using php in which I have to append content in a file. The file does not have any specific permissions specified but the folder 'abc' has read only permissions, so fopen() prompts permission denied when I try to append a…
Tinasm
  • 82
  • 1
  • 1
  • 6
0
votes
2 answers

psexec error code -1073740771

I'm trying to open up a Unity3D game.exe that is on a remote computer through my main desktop. I had tried to do this through a batch file, but was advised to try PsExec in its place. So far, I've brought the Psexec program into my game.exe folder.…
N0xus
  • 2,674
  • 12
  • 65
  • 126
0
votes
0 answers

Windows Proc "Unavailable" for processes spawned by service

I'm attempting to use psexec to spawn a process on a remote machine (for automated testing purposes) and noticed that the spawned process wasn't correctly responding to a message (WM_GETOBJECT, but that's another question entirely). I opened spy++…
Patrick Quirk
  • 23,334
  • 2
  • 57
  • 88
0
votes
3 answers

Can I run a powershell psexec call to run a batch file located on a mapped network drive?

From computer A, I want to call a batch file on Computer B. normally, I use psexec to do this. However, in this case, the batch file on computer B is located on a mapped network drive on computer B called "J:" Is there a way I can make a command…
user952342
  • 2,602
  • 7
  • 34
  • 54
0
votes
1 answer

Does PSEXEC support inter domain execution ?

A file has to be copied from current machine to another machine. once done, he copied file has to be triggered.The problem here is that the machines are located in different network domains. Does PSEXEC support inter domain execution ?
navger
  • 133
  • 1
  • 1
  • 9
0
votes
1 answer

Calling bash from PsExec from SQL with xp_cmdshell

I am trying to call a bash command through a user account with PsExec. Cygwin is being used, and I am trying to run a command from SQL: exec master..xp_cmdshell 'psexec -u cyg_server -p -accepteula "bash script.sh"'; However, I get the…
ccook
  • 5,869
  • 6
  • 56
  • 81
0
votes
2 answers

Best way to run remote VBScript in ASP.net? WMI or PsExec?

I am doing some research to find out the best and most efficient method for this. I will need to execute remote scripts on a number of Window Servers/Computers (while we are building them). I have a web application that is going to automate this…
Envin
  • 1,463
  • 8
  • 32
  • 69
0
votes
1 answer

run psexec as admin mode win2008 with UAC mode 4 (powershell maybe?)

I am trying to run the following command in cmd with admin mode: psexec -u mydomain\myuser -p mypass net time /set /domain:%USERDOMAIN% /y I am getting: 'net exited with error code 2' this is only working when i change UAC level to 3 (instead of…
user829174
  • 6,132
  • 24
  • 75
  • 125
0
votes
1 answer

TFS Build Workflow InvokeProcess PsExec

I am trying to run a batch file automatically during a build from a TFS build workflow. I have added an InvokeProcess activity with the following: Arguments: "\\" + agent + " /accepteula -u username -p password -d C:\HelloWorld.bat" …
0
votes
3 answers

The service cannot be started, either because it is disabled or because it has n o enabled devices associated with it

I need to execute a script on an older Windows Server 2003 SE SP2 remotely from a different server using PSEXEC. PSEXEC works on all other servers except this older one. I get the following error: The service cannot be started, either because it…
0
votes
1 answer

Deploying with team build and psexec -> integration tests error

I have a team build (upgrade template, tfs2010, msbuild) compiling and testing a WCF service. We use psexec and the exec task to remote install the service (wix installer) on the web server, prior to running an integration test suite against it.…
jaspernygaard
  • 3,098
  • 5
  • 35
  • 52