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

PsExec & Windows Server 2008: Privileges & authentication issues

I'm writing an application that helps me auto-deploy my applications to my Windows Server 2008 machines. As apart of this process, I need remotely start and stop IIS websites on my 2008 servers from my test machine. From the scope of my 2008…
Dave
  • 243
  • 1
  • 4
  • 9
2
votes
2 answers

Is it possible to start a process as "nt authority\system" over Powershell remoting?

I'm automating the testing of the installation, detection, and uninstallation of some Windows applications. In order to run most of those installers silently, they must be run as nt authority\system. That is easy enough to accomplish on a local…
alx9r
  • 3,675
  • 4
  • 26
  • 55
2
votes
1 answer

"ERROR: Invalid syntax. Default option is not allowed more than '2' time(s)." using SETX

I thought I had this working at one time but recently my command quit working. My research here and abroad is not turning up anything I have not attempted already. Perhaps there is some other variable I am missing that SETX is looking at? My…
gritts
  • 177
  • 1
  • 3
  • 13
2
votes
0 answers

PSExec can not find the file specified

I've been using the remote tool PSEXEC for a while. Great tool and works great in command line. However I cannot get it to work on button.click in VB.NET Commandline (works fine) Psexec \\ComputerName -h -i -s \\FileServer\Share$\ .exe…
Benjamin Jones
  • 987
  • 4
  • 22
  • 50
2
votes
3 answers

No password for psExec works, but empty string to password flag does not

I'm using a program called psExec to remotely connect to a machine and start an interactive program. The machine I'm connecting to, does not have a password. So if I run this: psExec \\Computer_Name -u User -i -d calc.exe It prompts me for a…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
2
votes
1 answer

PsExec to run batch file in remote computer

I use this code C++ builder to execute batch file in remote computer String PsExec = ExtractFilePath(Application->ExeName) + "PSTools\\PsExec.exe"; String lcParam = " \\"+gl_HostName+" cmd /c "+TDirectory::GetParent(rootPath)+"\\...\\File1.bat…
user4054093
2
votes
1 answer

running a batch file in a remote machine as an administrator

I am having a virtual machine which i am using it as a server. I have my local machine as a client. I have a windows batch file in the virtual machine, a.k.a the server which has a series of command. I try to run the batch file from the client…
user2591311
  • 31
  • 1
  • 1
  • 5
2
votes
1 answer

Running a Setup.exe from a network share, via Invoke-Command in Powershell

PSEXEC started to give me some trouble, and I decided to recode in PowerShell. This batch command used to work for me, before PSEXEC started messing things up: psexec -accepteula \\ -u -p cmd /c…
Simon Bruun
  • 87
  • 1
  • 2
  • 11
2
votes
2 answers

Psexec- file not on the path

PsExec.exe -a 0 -c -abovenormal "C:\Program Files(x86)\Microsoft Office\Office14\WINWORD.exe" When I type this command in command prompt, it gives me an error that says: The Specified File is not on the path. Why this happen?
Hollow Looi
  • 57
  • 1
  • 7
2
votes
1 answer

psexec in Powershell doesn't accept encrypted passwords

Powershell script executes script.ps1 on remote_machine read-host -assecurestring | convertfrom-securestring | out-file D:\Script\cred.txt $password = get-content D:\Script\cred.txt | convertto-securestring $pwd = "plaintext_password" $j =…
Glowie
  • 2,271
  • 21
  • 60
  • 104
2
votes
1 answer

psexec exited with error code 1 - double quotes

Why does the psexec-executed command below fail when I add double quotes to the parameter? It works fine without psexec with double quotes It works fine with psexec without double quotes! The contents of the .bat file are as follows: set…
2
votes
1 answer

Using PsExec with spawning a child process results in truncated stdout

My goal is to be able to execute a command on a remote machine and get the full stdout response from the command that was run. What I am getting is a truncated result. When I run the same command through command prompt, I get the full output from…
ebraley
  • 206
  • 1
  • 9
2
votes
1 answer

Run batch file on a remote computer as the logged on user

I am trying to clear IE cache of a remote computer by using the following script in Powershell $computer= read-host "computer name" psexec \\$computer -i 0 cmd /c RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351 It runs on the remote computer…
Ronnie S
  • 23
  • 1
  • 3
2
votes
2 answers

Kill a process on multiple remote machines

I am looking as the title says to kill a process (for example name.exe) on multiple remote machines. I can do it individually using pskill or taskkill using (for example): pskill -t \ -u -p name.exe but this becomes impractical with 50+…
thepiman
  • 41
  • 1
  • 1
  • 2
2
votes
1 answer

PsExec hangs when output redirected

I saw similar posts here on SO, but none seem to have a solution (that works for me). So posting "yet another" in hopes that this one would help identify what's wrong. This is also cross-posted on SysInternals' Forum I've searched for answers to…
LB2
  • 4,802
  • 19
  • 35