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

Powershell Query

HKU \\\HKU\\Software\Microsoft\Windows\CurrentVersion\Run /s Example: for /f "delims=\ tokens=2,*" %t in ('reg query HKU') do reg query HKU\%t \Software\Microsoft\Windows\CurrentVersion\Run /s HKLM reg query…
badbiddy
  • 11
  • 7
0
votes
2 answers

How to extract data from a query in batch

I am attempting to check thatthe service ACR BRIDGE is running and start it is not. cd C:\Users\ET012364\Desktop\PSEXEC psservice \\ccapps query "ACR BRIDGE" pause I understand that I could achieve this using a combination of error levels and the…
0
votes
1 answer

ShellExecute failing with access denied

I am using psexec to start an executable in a remote system. The remote system is 64 bit while the exe pushed using psexec is 32 bit. While running "psexec", I am providing the admin credentials of the remote system and the remote process is…
user1624807
  • 271
  • 1
  • 5
  • 20
0
votes
2 answers

Psexec not outputting to log file in VB script

I have a VB script which needs to run psexec to launch an app called md5 on a remote server. Md5 generates a hash key of a file and takes one parameter - the file path\name. I need to retrieve the has key that is generated to store in a variable.…
VBscripter
  • 73
  • 2
  • 3
  • 7
0
votes
1 answer

Running commands on Remote machine using PsExec from Msbuild invoked via Jenkins

I am using psexec(with MSbuild Script) to run an xCopy on a server from Jenkins(Hudson). The command runs ok when run through Command Prompt(as System user), but gives the following error when tried using Jenkins. This is the command I am using from…
Riddhi M.
  • 195
  • 2
  • 9
0
votes
1 answer

Output results of command to SQL Server database

Is there a way of printing the results of a batch file to a SQL Server database? I have managed to print the results to a txt file but I would like to print the results to a database instead. I need to print each line of the result as it happens…
0
votes
1 answer

Using psexec to enable asp.net remote access with aspnet_regiis -config+ : File not found?

I need to programatically enable remote config access to various servers that do not have remote access enabled. I need to enable remote access, read the machine.config, and disable it again. I'm trying to use psexec as outlined in this question's…
asawyer
  • 17,642
  • 8
  • 59
  • 87
0
votes
2 answers

Running a batch file in Java on a remote server

I'm trying to use Java to interface with a large batch file that uses psexec to execute commands on remote servers. I'm able to launch the file using process builder and it works fine for most commands, but seems to be getting hung up. One…
pmcfarland
  • 105
  • 1
  • 3
  • 10
0
votes
1 answer

psexec parameter is incorrect

I am using psexec to execute a .bat on a system. This will fingerprint the system and return the info back to me. The command I use is: psexec \\server -u username -p password -s -i -c .\fingerprint.bat This works with most of the servers, but…
Jeff
  • 4,285
  • 15
  • 63
  • 115
0
votes
2 answers

How do I skip a computer in a batch file that is unreachable?

@echo off :begin for /f %%a in (computerlist.txt) do ( setlocal psexec \\%%a -u user -p password -i -d "d:\path\command.exe" endlocal ) when the script is running, when it finds a machine to be unreachable I want it to skip it. How do i…
Dre_Dre
  • 745
  • 2
  • 6
  • 15
0
votes
2 answers

psexec and process.start, waitforexit

Task : copy file from remote pc to remote pc using admin account code : psi.FileName = "cmd.exe" psi.Arguments = ParaStr psi.UserName = StrUserID psi.Password = ConvertToSecureString(txtAdminPassword.Text) psi.Domain =…
sambalp
  • 1
  • 1
  • 1
0
votes
1 answer

psexec double backslash error

I am trying to run the following command in power shell but it keeps giving me error at the double back slash character.. what do i do!! I saw other forums and this yntax works fine for them! $combined="C:\tools\PsExec.exe \\computer cmd.exe" PS…
py_newbie
  • 136
  • 13
0
votes
2 answers

How to overcome batch file execution part way through when using CFExecute with PsExec to run Git actions?

I’m encountering a weird issue and have tried many different things. The goal is to have a user click a button on a web page that will execute a batch file on several other servers. I am using ColdFusion 8. When the user clicks the button,…
Alex
  • 9
  • 4
0
votes
2 answers

Checking "connectivity" between remote server A and remote server B programmatically

We have a requirement (I believe as part of a post build/deployment verification test (BVT)) to test that remote server A can "connect" to remote server B. I want to develop a console application using C# on my LOCAL developer VM. This should then…
Kyle
  • 951
  • 3
  • 14
  • 31
0
votes
1 answer

psexec via Process gives different exitcode than psexec via cmd

I'm currently working on an application that checks whether a APP with a certain name exist on an IIS server. I use PsExec to execute this command. While I was testing this through the command line, I noticed that when an APP does not exist the…
Chrono
  • 1,433
  • 1
  • 16
  • 33