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

psexec to read contents of file

I am trying to do a simple task. Use PsExec to read a file's contents. I have tried: psexec \\ cmd "type C:\file.txt" Running the command locally on the machine works fine... but with psexec it connects, starts psexec remotely .. then…
sirbradwick
  • 61
  • 1
  • 10
0
votes
1 answer

psexec -d option breaks vbscripts

For some reason when I use PSEXEC with the -d option my script will start to execute and then fail on a remote machine. If I dont use -d option the script will execute properly on the remote machine. Also if I launch the script manually on the…
KingBain
  • 83
  • 10
0
votes
1 answer

WMIC equivalent to the PSEXEC -h switch

I have a batch file which contains a WMIC command to run another batch file on a Windows server. WMIC /user: /password: /node: process call create "D:\mybatchfile.bat" mybatchfile.bat launches an exe which requires…
user3186079
  • 1
  • 1
  • 2
0
votes
0 answers

Sysinternals psexec remotely executed application hangs

I'm calling psexec as follows: psexec \\10.0.0.1 -i "C:\Program Files\Notepad++\notepad++.exe" notepad++.exe is executed on the remote PC. I can see the application window come up. As soon as I type any characters into notepad++ it…
sizzle
  • 2,222
  • 2
  • 21
  • 32
0
votes
1 answer

IOError: [Errno 13] Permission denied while reading from a Python NamedPipe

I've a NamedPipe Server written in Powershell and a NamedPipe Client written in Python. The following is my NamedPipe Client: def namedpipeClient(): print "Inside NamedPipeClient" time.sleep(2) f = open(r'\\x.x.x.x\pipe\testpipe', 'r+b',…
a4aravind
  • 1,202
  • 1
  • 14
  • 25
0
votes
1 answer

Pass a variable to a psexec powershell command in vbscript

I'm trying to pass the user input computer name to the psexec command. I've tried about everything. I know the command works because if I run the file by manually entering the computer name is successful. I need to get the strComputer variable into…
Kevin_A
  • 1
  • 1
0
votes
0 answers

PsExec hangs on calling the interactive executable

I am new to SysInternals tools, and I have a question whether there exists a workaround. I need to launch an executable that is a command-line console to some network functions in target-LAN environment. It works fine until I issue the "online"…
AlexPawlak
  • 779
  • 1
  • 10
  • 22
0
votes
2 answers

Flush DNS remotely output to textfile is empty

I am trying to remotely flushdns multiple servers remotely and output the results to a textfile. After running my script, my textfile is empty. Script: Const ForReading = 1 Set fso = CreateObject("Scripting.FileSystemObject") Set wshShell =…
SlopTonio
  • 1,105
  • 1
  • 16
  • 39
0
votes
0 answers

How to exit powershell invoked from psexec

I am trying to call a powershell script using psexec which connects to remote system So from "Computer A" I call the batch file Aot.bat which is on "Computer B" Aot.bat has a line which calls the powershell powershell.exe…
0
votes
0 answers

How can I make a remote logon Powershell script run as the locally logged on user?

I'm trying to use the Microsoft User State Migration tool with Powershell; the way the program "loadstate.exe" works is that it needs to be called locally so that it will load up a remotely saved state of the user's profile and then restore it to…
Renekton_Fan
  • 151
  • 1
  • 2
  • 11
0
votes
0 answers

Psexec or WMI with parameters

I need to run a Powershell script in a remote computer. This script prompts the user for variable values, but if I execute the script remotely with PsExec or WMI, I don't see any prompt. Is there a way to pass parameters to the Powershell script…
Sean
  • 923
  • 3
  • 14
  • 36
0
votes
0 answers

Psexec command unusual behavior

I am running below code: master.bat: @echo off call :Commands >D:\Test\log.txt exit /b :Commands @echo off setlocal for /F "delims= " %%i in (D:\Test\servers.txt) do ( psexec \\%%i -c D:\Test\script.bat ) exit Where... servers.txt: server1…
Sunny
  • 7,812
  • 10
  • 34
  • 48
0
votes
1 answer

Inserting 'waitfor' command in called and calling batch files

I have 3 called batch files like called1.bat : called1.bat taskkill /f /im firefox.exe net stop W3SVC sc config W3SVC start= demand net start W3SVC and a calling Master.bat file which calles all the three called batch files as…
Sunny
  • 7,812
  • 10
  • 34
  • 48
0
votes
1 answer

PsExec command issue between two windows servers

I'm trying to run a batch file from remote Server1 onto remote Server2 (both are Windows server 2008 R2) located on common domain using below command: psexec \\Webtestserver2 -u sunny -p sunny2on_test -d -i cmd /c D:\files\script.bat NOTE: On…
Sunny
  • 7,812
  • 10
  • 34
  • 48
0
votes
1 answer

Remote bat file execution with out admin priviliges

I would like to execute a batch file in remote machine using PSExec and the folder is having all required permissions(Modify, Read, Execute and Write). But in remote machine im getting access denied. Bat script in remote…
user2170172
  • 81
  • 2
  • 10