Psexec is a free powerful "runas" utility by Microsoft. It's special features are e.g. the possibilities to start processes on remote machines, as system system user or to run them in the console 0 session.
Questions tagged [psexec]
129 questions
40
votes
6 answers
́╗┐' is not recognized as an internal or external command
When executing certain files (mainly batch) using PsExec I get these weird ́╗┐' symbols before my command.
My initial thought was, that I were using wrong encoding, but after checking, I realized that all my files were using UTF-8.
user187509
15
votes
5 answers
psexec logon failure: "unknown user name or bad password."
i'm trying to run an interactive commandline on a remote PC in my LAN using
psexec \\192.168.1.103 -u user2 -p pass1234 -c cmd
and I get
Logon failure: unknown user name or bad password.
is there anything I'm missing here? The user is created, I…
agelmarion
- 153
14
votes
4 answers
Could not start PSEXESVC service on [MachineName]: Access is denied
I'm trying to use PsExec to start a process on a remote machine. I posted this question on SO, but I realized it's probably better suited here. I also have spent a few hours trying to figure this out, and haven't really gotten anywhere.
Here is one…
Sean Cogan
- 243
13
votes
4 answers
PsExec Access is denied
I am using psexec.exe to run programs in a different security context. However the programs start but it does not seem to be running in the specified security context.
In its minimal form:
psexec -u wsadmin -p password cmd
Starts a new cmd window…
Tuim
- 297
12
votes
3 answers
Redirect output of process started locally with PSExec
I'm using PSExec in a test machine environment to start the setup package of the application to be tested as administrator, and then run tests as administrator where needed. PSExec is only used for the "run as" part here, no remote execution. The…
ygoe
- 2,480
- 8
- 29
- 46
11
votes
1 answer
Does Psexec execute Remote Procedure Calls?
I've heard of RPCs and that they get executed via TCP port 135. I just executed ipconfig via psexec.exe on a remote PC and wondered if this is a RPC. As I've seen in Wireshark, the whole process is beeing done via SMB port 445 not DCE/RPC port…
JohnnyFromBF
- 5,068
11
votes
3 answers
PsExec requirements on local computer
What services and settings are required to run psexec on local computer?
(e.g. psexec -s -i -d regedit)
Ogmios
- 389
10
votes
4 answers
Start a bat file on remote PC
I am trying to execute a .bat or .cmd file on a remote pc with this:
PSEXEC \\192.0.0.230 "\Users\James\Desktop\BatchFiles\StopStart.cmd"
This will Disable a NIC and Enable another NIC, problem is, it ignores the timeout /t 10, because instead of…
SeeeeS
- 103
9
votes
2 answers
How to run a local bat file on a remote computer
Is it possible to use psexec to run a local bat file on a remote computer (windows 7)? or would I have to first copy it over to the remote location and then run it?
train
- 244
9
votes
3 answers
PsExec runs remote GUI as black screen - Windows7
I'm trying to use PsExec from a server to run GUI applications on remote Windows 7 machines on our domain:
psexec //remoteMachine -i kioskApp.exe
The above is run by an admin user.
What we're trying to do is every so often force all employee PC's to…
Yehuda Shapira
- 213
9
votes
6 answers
Can I find the session ID for a user logged on to another machine?
I want to open an application on another computer on the same network via the command line. The scenario here is that the user is in a room surrounded by about 20 computers and wants to be able to launch the same app on every computer without…
Dan Tao
- 1,109
7
votes
6 answers
PSExec "cannot find the file specified" on local machine
As you can see from the screenshot below, C:\Windows\system32\cmd.exe exists (since the command prompt itself is using that path), and I try referencing it both with the short cmd.exe name and the full path, but both result in the same error from…
deadlydog
- 804
7
votes
4 answers
PsExec "The handle is invalid"
When I try to PsExec to a remote machine using PsExec \\machine -u domain\user -p pass PsExec shows the following error message:
The handle is invalid.
Couldn't access machine:
Completed in 0.426s
However domain\user can remote login to \\machine…
Behrang Saeedzadeh
- 2,110
7
votes
3 answers
Errors starting PsExec to run a program as a local service
When I run the following command from an Administrative Command Prompt:
psexec64 -i -u "nt authority\network service" C:\Windows\System32\cmd.exe
I'm getting these error messages:
Couldn't install PSEXESVC service:
The operation completed…
user626528
- 975
6
votes
1 answer
How to open a GUI with PsExec?
I have two computers A and B. On both computers there are two administrator accounts, 1 and 2, with their own passwords. While user 1 is logged on computer A, is it possible for user 2 on computer B to open the web browser on A\1? I have tried…
Friend of Kim
- 1,391