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

I'm trying to remote into a server, run a script that resides on that server and capture the information displayed & store in a local file

##this code starts job but never exits or get any output### clear $test = 1 $Username = Read-host "Username (Example:Hosting.com\Your Username)" "" $Pass = Read-Host -assecurestring "Password" $Password =…
Chand
  • 300
  • 3
  • 13
-1
votes
1 answer

SVN export fails when run remotely

We have a .bat file that does an SVN export command which contains the credentials for the SVN repo. The file sits on each server's C:\ drive. When a user is logged into the box and runs it locally, this script runs fine. When run via winrm or…
CPS
  • 531
  • 1
  • 9
  • 18
-1
votes
1 answer

Auto-IT converted to exe needs to be run over selenium grid on remote nodes

Implemented selenium grid with two remote nodes, converted an AUTO-IT script to exe and need this to be passed via selenium scripts. Another option is to include PsExec on Jenkins pre/post builds. Will need to repeat this process with another…
-1
votes
1 answer

PSEXEC command not working to execute a command with arguments

How do we execute a command with arguments in a different machine using the PSEXEC command. The below command is not working start "" psexec \%serverIP% "c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe" SETWOW -u administrator -p…
Vijay Nag
  • 257
  • 2
  • 9
  • 21
-2
votes
1 answer

Run PsExec from C# with admin right without UAC

I want to run a PSExec action, that need admin right, from a C# app launch from user space. Of course, the complication, that's I don't want the UAC. I want to run an action like this: PsExec.exe -i -s powershell.exe -command "whoami *>…
-2
votes
1 answer

Cannot start a proccess remotely with psexec.exe

I have a problem with remotely starting a proccess with psexec.exe. My solution looks like this, I have on server a cmd script, that runs my console application. The applications job is to start a test run with vstest.console.exe with the help of…
Roman Suska
  • 527
  • 2
  • 7
  • 21
-2
votes
1 answer

Perl Windows command fails

I'm trying to run a simple query on network computers to get their Windows' version. This command runs, and returns expected results, when used from the command line: psexec \\comp_name reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion"…
Geoffrey H.
  • 160
  • 2
  • 17
-2
votes
1 answer

How to kill a process by PID using java on a remote computer?

I am using java to run a Psexec command to excute a process on a remote computer: Java -> Psexec -> remote computer starts a process. I have the PID of that process. Is there a way to have the remote computer terminate that process? Maybe using…
David8988
  • 79
  • 1
  • 1
  • 7
-2
votes
2 answers

windows batch file: psexec and findstr

I want to connect to a remote machine with psexec, use findstr to parse a file and save the needed record to a variable to be used later. Here's c:\dir here\file.xml:
Registered User
  • 255
  • 4
  • 12
-2
votes
2 answers

how to find windows services associated with particular user

Using the sc command, we can query, start, and stop windows services. For example: sc query "windows service name" Could someone tell me how we can find the windows services associated with particular user through the command line?
Suhail
  • 85
  • 6
-2
votes
2 answers

Need to press enter to complete psexec execution, anyway to emulate?

We're running following command line C:\Util\SysinternalsSuite\psexec \\10.120.36.219 -u localhost\account -p Password -h -w C:\Temp\FOLDER C:\Temp\FOLDER\postinstallphase1.cmd Where the postinstallphase1.cmd script contains a set of commands that…
-3
votes
1 answer

How to gain access to local files using remote desktop in java (or) How to open a folder in local pc using remote desktop server in java?

I created one java project on remote desktop server. I opened that project on local pc through remote desktop server. When i click link, i want open folder in local pc.
Mahi M
  • 1
  • 1
-3
votes
1 answer

Psexec brute forcing credentials

I am currently pen-testing with a Kali software installed machine and a Windows 8 installed Machine. I am trying to gain access with a psexec_command attack with Metasploit. Is there maybe a way that I could brute force the credentials for the…
-4
votes
1 answer

how to unjoin to the domain, rename the PC and then join it to the new domain in one script

Anyone who has a PSEXEC or Powershell script to unjoin to the domain, rename the PC and then join it to the new domain in one script. We're migrating to a new server/domain and needs to rename also all the PCs using a standard PC name before joining…
1 2 3
55
56