Psexec is a free powerfull "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.

learn more… | top users | synonyms

4
votes
2answers
49 views

What does psexec -d do?

SS64 says it means Don’t wait for the application to terminate. Only use for non-interactive applications. But I don't understand this. I'm trying to run some non-interactive system calls but, ...
1
vote
1answer
106 views

Windows 10 PsExec localhost

The following command generally works fine on Windows 7 and Windows 10: psexec \\machine -u username -p password -h -c -f script.bat However, on Windows 10 when 'machine' is the localhost, I ...
1
vote
1answer
48 views

Why can't my SYSTEM Command Prompt access these files owned by SYSTEM and how do I fix it?

I launched a Command Prompt under SYSTEM with PsExec to move a file owned by SYSTEM without changing the file and folder's permissions, but I'm still being denied access. What's going on here?
0
votes
0answers
24 views

How can I add extra commands/arguments when opening Command Prompt with PsExec?

I'm creating a shortcut to open Command Prompt with SYSTEM privileges, it works fine, but I want the title of the resulting cmd window to be clearly labeled with something like "SYSTEM". So I want to ...
0
votes
1answer
35 views

Psexec with curl or wget

I recently found out about psexec and was wondering if this program could help me run wget or curl commands on a remote computer. is this even possible?
0
votes
0answers
80 views

Access desktop GUI with PsExec through service session

I have an SSH server (Bitvise) running as a service on my Windows 2008 server. After logging in through SSH, I need to run an automation script that interacts with the current logged in user's desktop ...
0
votes
1answer
347 views

PsExec: The user name or password is incorrect

I know there are similar questions to this. But none of them resolved my problem and asking it as a new question. I tried psexec to remotely execute the following example code. psexec \\192.168.1.70 ...
0
votes
0answers
49 views

Is there a way to get real time stdout and stderr from a process spawned by psexec on the same streams (pipes) as psexec

My question is very close to this question here with an additional constraint related to time-outs I'm using Jenkins to start some automated testing and then to capture the stdout (and stderr) of the ...
0
votes
0answers
137 views

Could not start PSEXESVC service on Target Machine

I want to run batch file into remote machine and i was using psexec cmd for that but i got error like "The remote procedure call failed." My command is, E:\user>psexec -i -s -d \\192.168.1.41 -u ...
0
votes
1answer
73 views

Running command on remote windows server and add results to a text file

I am trying to find the installed version of a piece of software on a lot of servers (800+). The command is: "dsmqver -f 2" which returns output like "Version: 7.5.0.2" I have been trying to ...
2
votes
3answers
259 views

Run command in background within PSEXEC

Command below works fine and releasing, renewing remote IP address. PsExec.exe \\10.10.1.12 -accepteula -u Administrator -p 1 cmd /c "ipconfig /release && ipconfig /renew" However, since ...
0
votes
0answers
274 views

Using PsExec to connect to remote machine via SSH tunnel

I want to access remote (not within local subnet) Windows Server machine using PsExec. I don't quite know which ports are actually used whether it's :139 or :445 or :135 or even :41955 as those four ...
0
votes
0answers
26 views

Is there anyway to pre-install PsExec so as to remove the time delay of spinning up the PsExeSvc service?

Is there anyway to pre-install the PsExeSvc, so as to remove the time delay of spinning up the PsExeSvc service?
3
votes
2answers
4k views

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 ...
0
votes
0answers
38 views

Copy & Execute program on remote client machine

Say I have 3 client machines A,B,C which are connected to Internet and are having Microsoft OS. And I have a server X which has Windows Server 2008 R2. I want to create an architecture where all 3 ...
1
vote
0answers
112 views

PsExec to open a program that interacts via the Desktop and reports messages to CMD

I want to run a script on a remote machine. The script needs to be aware of the desktop, so cannot be run as a background process. To do this, I've been using the following command: psexec \\...
1
vote
1answer
125 views

Batch script to ping an ip range?

I'm trying to write a batch script (psexec is also an option) to scan a range of IPs 192.168.1.1-255 and as output, would like a csv file, something like this: column A column B ...
-1
votes
1answer
4k views

How can I use PsExec to install software on a remote computer

Here are some details Remote PC may not have an admin user. Software is located on a network share that is accessible to all users. PsExec is on the Admin machine I've tried doing this but I get "...
0
votes
0answers
387 views

Run as different domain user without password with domain administrator account under windows 7

I sometimes use psexec to connect to our windows domain users' computers from remote. What I want to do is to run some programs with non-admin domain user's account (e.g. currently logged in user) and ...
0
votes
0answers
40 views

Which program to use to enable SMB for PsExec?

I want to use a netsh command to enable SMB for the use with PSExec. So far I have (all in one line, but formatted for readbility here) netsh AdvFirewall firewall add rule name=PsExec dir=in action=...
1
vote
0answers
2k views

PsExec: Handle is invalid | Error deriving session key

While running some automated scripts I get the following error: Handle is invalid. Connecting to local system... Starting PSEXESVC service on local system... Connecting with PsExec service on XXX... ...
0
votes
0answers
195 views

Remote access share in psexec

Remoting into remote computer with: psexec \\computername cmd -u -p -s Then I try to run pushd \\uncpath in order to setup temp drive letter to run program from unc path on remote computer. I get: ...
2
votes
0answers
3k views

PSEXEC remote to Win 10 - No process is on the other end of the pipe

I tried to use PSEXEC from a Windows 7 to Windows 10 PRO (not the preview). PsExec.exe -i 1 -u myuser -p mypass \\xxx.xxx.xxx.xxx cmd Output Error communicating with PsExec service on xxx.xxx.xxx....
1
vote
1answer
165 views

PsExec: Access is denied

I am trying to run a VBS script on many PC on my network at the same time. I am admin on all of them, but the instruction needs to run under SYSTEM account. I have opted to use PsExec (v.2.11) from ...
0
votes
0answers
198 views

PsExec: batch file cannot create a file in remote server

I'm facing on a crazy problem. Using PsExec to run batch file remotely on server. When I use the same command argument in command line, all is fine. Here is my batch file: @ECHO OFF ECHO %USER% >...
1
vote
1answer
150 views

Why does PSEXEC -i -s work in Windows 7 as services can no longer interact with the desktop?

According to this MSDN article: Important Services cannot directly interact with a user as of Windows Vista. Therefore, the techniques mentioned in the section titled Using an Interactive Service ...
-2
votes
2answers
8k views

Using PSexec to launch PowerShell session as system with specific window attributes

I'm trying to launch a PowerShell session via PSexec with alternate colors and some window attributes. The reason why I would need to run PowerShell through PSExec is so that I can have a ready-made ...
0
votes
1answer
115 views

Can I use PsExec or similar tool to determine if a remote PC is already logged in?

I'm writing a utility which lets you remotely run a test application on network PCs. I plan to use PsExec to remotely launch the application on each PC but I need to check The PC is reachable The PC ...
2
votes
1answer
117 views

Is pesexec only useful with administrative credentials?

I am an apprentice penetration tester, and I am trying to read as many tutorials and practice as much as I can. Something I continually see reference to is using psexec to execute commands remotely. ...
2
votes
1answer
10k views

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, ...
1
vote
1answer
585 views

Windows 7: Script to automatically log into network account using PsExec

As happens often where I work (At a help desk for a school campus), a new policy with very tedious and/or wasteful requirements comes into effect and I am usually the only one to try to create a ...
0
votes
0answers
10 views

Attempting to add an existing group to a group remotely using psexec [duplicate]

Basically want to remotely configure the Administrator groups for one of our devices remotely through the command prompt. I figured psexec would be the tool for the job, however the only thing I can ...
0
votes
4answers
425 views

Is there any way to run an application as another currently logged user without needing its password?

I'd like to use 'psexec' over a lan to run a command as another user that is logged on the system at the same time. In other words: I want to use 'psexec' with the built-in Administrator account ...
7
votes
1answer
18k views

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?
1
vote
1answer
138 views

Windows 7 hide *.lnk target

I'm attempting to have a program run with administrative privileges for regular users.(The actual software throws an error about needing the admin account, I can bypass windows through the registry). ...
0
votes
1answer
2k views

PSExec to open interactive program with no user logged in

I'm using PSExec to open certain server program that has some tiny gui, in another computer. Both local and target are Win7 64bit. I open it using psexec \myothercomputer -u Me -p mypass -i -d -h ...
0
votes
1answer
55 views

psExec processus no window

When I execute psExec -d -i -s \host -u "user" -p "password" "path", my application is launched but in the process (service task manager) and there is no window. Is that normal? Am I missing ...
0
votes
0answers
319 views

How do I execute a remote pc's cmd?

I have a computer at home, connected to a router with a fix internal IP (192.168.0.101). I forwarded a UDP port to it (:995), and placed the entire network under a dynamic DNS (no-ip), so I can access ...
0
votes
0answers
209 views

How to run batch script on server which exists in different domain of your PC?

I am trying to execute a batch file residing on some server which lie in different domain w.r.t my pc. I tried: PSExec -> but its persistently giving error: Couldn't access 192.168.238.74: The ...
0
votes
1answer
3k views

How to Launch an App in an Existing Session

When a scheduled task runs I would like to open a Powershell window on my desktop to tail the log file and watch the progress. Specifically I would like the task to open the window on my desktop and ...
4
votes
1answer
4k views

PSEXEC error establishing communication with psexec service

I'm trying to run a program in system mode, but this error appears error establishing communication with psexec service computername psexec \\kerjaTA -s "C:\Program Files\GOM\GOM.exe"
4
votes
0answers
7k views

PsExec, Error establishing communication with PsExec service

I am getting the following error if I try to use PsExec (psexec \\MyServer cmd, nothing fancy) PsExec v2.1 - Execute processes remotely Copyright (C) 2001-2013 Mark Russinovich Sysinternals - www....
1
vote
1answer
833 views

Should we be using SSH or psexec? What are the benefits of each? [closed]

Our development operations team currently builds source and deploys that source to target boxes - the typical setup. Currently we use psexec to issue commands to remote hosts (i.e., shut down the ...
5
votes
1answer
2k views

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 ...
0
votes
0answers
116 views

How can I get the Windows command line to ignore the “set” reserved word?

I'm running an IIS command on a remote server via PSEXEC. the command I'm running has the "set" keyword, which is a command-line reserved keyword. My command looks like this and throws an error. ...
1
vote
1answer
1k views

How to call and launch EXE from linux \unix side?

I have a build process that runs on Linux and UNIX hosts. It's script -based, and at the end of the process I'd like to run an EXE file (that can run on Windows only... yes I know it's quite weird but ...
1
vote
2answers
8k views

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 ...
0
votes
1answer
280 views

psexec on XP - Can't use switches…?

All I'm trying to do is execute this command: psexec –sid c:\sysint\procexp.exe On a machine running XP SP3 (Trying to find out why domain login takes 5 mins). But no matter how I arrange them, as ...
1
vote
1answer
1k views

Psexec say batch file started but on remote server it didn't

I have an issue trying to execute a batch file using Psexec. For testing purposes, i have an batch file located at the remote server. The batch file will just do an hello world Echo HelloWorld pause. ...
0
votes
2answers
725 views

Psexec and perl script with multiple arguements

I 'm trying to remotely execute a perl script that needs to run with some arguments/switches, but I 'm failing miserably :p What I 'm currently doing is: psexec \\computer -u my_username "path\to\...