Questions tagged [psexec]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

PSEXESVC Not Self Deleting and Not deletable by Any Admin User

I run psexec.exe locally to handle a process on multiple remote servers/DC's. One server in particular has begun to experience an issue where after one successful run, the PSEXESVC.exe remains and no ...
user avatar
  • 101
0 votes
2 answers
80 views

Erased System Path Variables

I was writing a batch file that was supposed to automatically set up a computer to receive "psexec" remote commads. Unluckly i didn't really pay attention to what i was writing and i wrote ...
user avatar
  • 1
0 votes
0 answers
90 views

RUnning psexec as system user returns "access denied"

I am trying to run a program on a remote system, and since I want to peform this action using the shutdown script of my computer, the call to psexec runs as system user. My problem is that I can run ...
user avatar
  • 1,249
0 votes
1 answer
929 views

Run batch file on remote computer using PSExec and continue execution, don't wait for remote process to end

I would like to run a program (a batch file with an infinite loop inside) on a remote host using PSEXec, and continue execution afterwards. My problem is that when I run a command like: psexec -d -u ...
user avatar
  • 1,249
0 votes
0 answers
239 views

How to restart local windows service using PSExec or PSTools

I just want to start/stop service just on my pc (no remote connection) via bat script in a way that no "Run as admin" prompt appears. Just don't want to do any manual interaction after ...
user avatar
  • 101
0 votes
0 answers
45 views

How to get autocompletion working when I PSExec as admin?

Hi the environment is domain and I'm PSExecing to a system from an elevated CMD. So when I get logged in, and tab for autocomplete, it just writes a TAB instead of scrolling through current directory ...
user avatar
0 votes
0 answers
100 views

Psexec64 not working & Error 1231 from 'NET USE \\LOCALHOST\C$'

Whenever I run psexec64 locally, it fails with a "network can't be reached" error. Same goes if I try to use net use, which fails with error 1231. Psexec64.exe -s -i cmd.exe The network ...
user avatar
0 votes
0 answers
52 views

What is advantage to using psexec for running batch file on network drive?

Was looking at a batch file someone wrote and came across this line. Is psexec needed to run batch file on network drive or what is the advantage? Can you not run a remote batch file without psexec? ...
user avatar
  • 109
0 votes
0 answers
30 views

I can't run an exe file completely hidden

I tried to run a program called MSIAfterburner with no windows But nothing works I tried Quiet.exe Nircmd.exe I tried some python scripts and JavaScript & Powershell and VBS. And every time it was ...
user avatar
0 votes
0 answers
15 views

Running an win32 application via PAExec or RemCom as SYSTEM user on remote Win10 Computer

I am trying to execute the Remcom.exe from a windows sevice to Copy and execute a win32 application from my windows 10 PC to a Remote Windows 10 PC, Unfortunately i am getting "Access Denied"...
user avatar
0 votes
0 answers
112 views

How to execute a *.bat file on a remote computer using psexec.exe

I have two computers one running Windows 8.1 Pro and the other running Windows 10 Pro (remote computer). The windows 10 computer has a *.bat file located in the following path "c:\windows\...
user avatar
  • 13
0 votes
3 answers
672 views

Hide PsExec window when starting from cmd

I'm executing a command as another user on the same machine using PsExec from cmd like this: PsExec.exe -u myuser -p mypass timeout 4 When I do so, a new cmd window opens containing the output of ...
user avatar
  • 107
0 votes
0 answers
110 views

Could anyone please help me create / edit this powershell script

I would like to reset the wsus service and delete the downloaded updates on selectable one or more hosts up to 200 Hosts. I would like to ping the hosts and export into a file : excel with Online and ...
user avatar
  • 1
2 votes
1 answer
252 views

PsExec with Get-WinEvent: The system cannot find the file specified

I'm trying to run Get-WinEvent on a remote PC using psexec but I'm getting the following error: PS C:\> psexec \\pc28 Get-WinEvent -? Starting Get-EventLog on pc28... PsExec could not start Get-...
user avatar
  • 459
1 vote
0 answers
67 views

How to run as admin an .Net exe with PSExec ( doesn't work on some of EXE)

I use PsExec to run some exe with administrators right on a Windows Server 2016. It works. Saddly, i have a .net exe which run not in admin right despite the use of psExec. I think it's due to the exe ...
user avatar
1 vote
0 answers
258 views

PSexec access is denied on domain user

I seem to be having some trouble with only 2/150+ users when using psexec. I am mapping to their profile and get the "Access is denied" message. I don't understand how that could be since ...
user avatar
0 votes
1 answer
716 views

How to start PowerShell to run a command and pass a variable to the new process?

I am currently working on a script that does all my hacks to my Windows 10 20H2 OS in one run. I am using PowerShell 7.0.4 x64, I want to run the script in Admin pwsh, I found some registry keys ...
user avatar
1 vote
1 answer
203 views

Get-DHCPv4Lease Permission denied when run in psexec

I have a script which exports currently console users on a computer list (about 1000 clients). When I run it from my computer it takes about 10 hours to complete because of launching psexec on each ...
user avatar
1 vote
1 answer
60 views

Remotely use CMDlet that's not on the remote pc

Hi i have a script using AudioDeviceCmdlets power shell module from Github. the script runs fine its just a basic audio check, but i want to be able to run it against a machine that dosent have that ...
user avatar
0 votes
1 answer
63 views

tool to copy file on a NETWORK SHARE without no one logon win10 computer

I'am trying to setup a script to monitor a local folder and to copy the file when they appears. i'am using task scheduler to initiate the script at startup (had to set it running as System (not ...
user avatar
3 votes
1 answer
11k views

PsExec error - "Couldn't install PSEXESVC service: Access is denied

I've done a lot of research into this problem and still haven't found a solution. I wrote a powershell script that uses psexec to activate another one on a file share using a p2p network. I keep ...
user avatar
  • 31
2 votes
2 answers
725 views

How to run psexec minimized from a VB script (VBS)

When you do ... Set WshShell = CreateObject("WScript.Shell") Call WshShell.Run("psexec -u administrator -p pw1234 cmd /c ipconfig > C:\Output.txt", 2, True) ... you see for a short time the ...
user avatar
  • 88
0 votes
1 answer
259 views

Problems with psexec accepteula when using psingfo

I made my first script which can get and show the running time of a PC in our network. first it copies the pstools folder to the pc i would like to check. It goes to pstools folder on my PC so i can ...
user avatar
0 votes
0 answers
37 views

Access remote usb file from local pc and scripting capabilities

i have a few batch files running on a pc on the network, and i want them to be able to view and interact with a usb drive on a different Windows 10 (64bit) computer on the same network. Is there a ...
user avatar
  • 101
1 vote
0 answers
4k views

PsExec Fails to Execute with Error Code -1073741502

whenever I want to run the following command in a remote server inside of our LAN with PsExec, it gives me the following error. It doesn't matter what I put instead of cmd, too. My macine's OS is ...
user avatar
0 votes
0 answers
180 views

Is it possible to kill the task through psexec command before it even gets chance to execute?

We have over 100 computers in our gaming network. We have deployed Deep Freeze Enterprise on our machines to control the customers' abuse of PCs. That is well taken care of, but there's another ...
user avatar
0 votes
0 answers
181 views

PSEXEC wont run exe

I am trying to execute an exe on a remote machine with PSEXEC but it wont run. It only works if I spawn a CMD window with PSEXEC and execute the .exe that way: PSEXEC.exe \\<machine_name> cmd ...
user avatar
0 votes
1 answer
489 views

Why some exe files(like PsExec.exe) cannot be moved to another folder?

I have downloaded the Sysinternals Suite from https://docs.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite After unzipping it, I want to put all the files into a new place, but the ...
user avatar
1 vote
2 answers
9k views

What is the reason PSExec keeps asking to accept EULA?

I'm using PSExec in a script that I run in a Windows 10 to send some commands to a Windows 7. However, sometimes these commands don't work and I realized this happens because at random times, when I ...
user avatar
  • 229
0 votes
1 answer
1k views

system variable not set on remote machine by psexec

Need to set-up system variable on remote machine. Performing psexec \\remote_machine cmd /c setx foo bar got reply Success: Entered value was saved cmd exited on remote_machine with error code 0 ...
user avatar
1 vote
1 answer
950 views

issue when running an exe file using PSexec

I'm having an error I'm not sure how to solve when trying to run an .exe file in a remote system: C:\Users\Administrator\Desktop\PSTools>PsExec.exe \\172.19.15.50 -u doctor -p doctor "C:\Program ...
user avatar
  • 229
1 vote
0 answers
190 views

Can't access server with username that has spaces

I amn trying to test out how PsExec work. However, even when I'm trying to simply send a 'echo Hello', with the correct password and everything, it says that couldn't access the other computer. Here'...
user avatar
1 vote
0 answers
178 views

PsExec launched batch file from host windows 7 to guest Windows 7 to copy shared folder path not recognized

I use Virtualbox with host Windows 7 and guest WIndows 7. I created a batch file to move a folder (with files and subfolder inside) from E: shared folder of Virtualbox to D: (My Hard Drive) This ...
user avatar
2 votes
1 answer
3k views

How to hide PsExec cmd?

I'm starting the PsExec using Powershell: Start-Process -FilePath "psexec.exe" -ArgumentList "-u user -p pass -accepteula -i -h cmd /c `"powershell.exe -NonInteractive -File myscript.ps1`"" But the ...
user avatar
1 vote
3 answers
4k views

PsExec treats second remote computer in list as a program name

PsExec behaves very strangely when run on a specific server When I use PsExec to run a program on multiple remote machines in most cases, it works perfectly fine. When I run the same command on one ...
user avatar
1 vote
1 answer
2k views

Error getting local system prompt with psexec

I'm trying to get a local system prompt with psexec using the command: psexec -i -s CMD I get the following error: Error establishing communication with PsExec service on LAB The network path was ...
user avatar
0 votes
0 answers
163 views

Passthrough Password

I am trying to psexec to a remote machine and run a program through a cmd command, however the program prompts for a password (not a windows password). Is there a way to add this password to the ...
user avatar
  • 1
2 votes
0 answers
3k views

psexec could not start psexec service on <server>. Error in the remote procedure call was cancelled

I get this error when running any command using psexec to a Win2012 server: PsExec.exe -u <user> -p <pass> \\<server_ip> cmd.exe PsExec v2.11 - Execute processes remotely Copyright ...
user avatar
  • 131
1 vote
1 answer
5k views

Why does RUNAS command work but PSEXEC doesn't in this case?

When I try to restart a remove IIS, I run: runas /netonly /user:mydomain\myusername "iisreset ServerBoxMachine" It asks me for a password and then the command is ran successfully. However, I use ...
user avatar
  • 17.4k
7 votes
3 answers
20k views

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 ...
user avatar
0 votes
0 answers
4k views

Running a batch file on remote server using psexec

I have some 10 number of batch files those batch files are calling from one main bat file. Now I want to run all those bat file on some remote server. I used the following command to run my batch ...
user avatar
0 votes
1 answer
468 views

Start an application with specific date format

I need to use one rather poorly-coded application which requires me to use en-US regional settings, or more specifically, the date format needs to be in en-US format when executing that application. I ...
user avatar
1 vote
0 answers
4k views

localStorage IE 11 does not work

I have a problem with running sites that used localStorage. I connect to Windows Server 2012 R2 and open IE using cmd with simple site that has access to local storage and all works fine. Then I ...
user avatar
3 votes
1 answer
5k views

Cannot connect to remote computer on private network via PsExec

I have two computers connected to a router. Both have PsExec in sys32. Files and Printer sharing are enabled and firewall exception is disabled for PsExec. On first computer in Command Prompt I ran: ...
user avatar
  • 33
1 vote
0 answers
595 views

PSEXEC OpenSCManager fails when execute command for workgroup from domain

I am trying to run sysinternals' PSEXEC from my domain machine to workgroup machine and vice versa: Cmd Line: Psexec \\\MachineName -u "username" -p "password" -i -s -d cmd.exe If I run this ...
user avatar
0 votes
0 answers
5k views

psexec: "Access is denied" (Win10 =>XP)

GOAL Attempting to access XP_BOX on the LAN from a Windows 10 box: CONFIGURATION PsExec v2.2 installed on Win10 from Microsoft OBSERVATION: C:\> psexec \\XP_BOX -u XP_BOX\username -c ...
user avatar
  • 1,085
2 votes
2 answers
35k views

Installing psexec to C:\Windows vs another folder

I needed psexec and copied into C:\Windows. A youTube tutorial example shows creating an additional folder and adding the folder to the path. Is there any advantage or reason to create a folder and ...
user avatar
  • 1,085
0 votes
1 answer
690 views

Pstools not working on LAN network

I am using a 64 bit windows 7 system with LAN connectivity but unable to use pstools ,I don't understand why it is showing the below output:enter image description here i.e. it is showing : coudn't ...
user avatar
  • 115
0 votes
1 answer
11k views

PSTools: PSExec not working on 64-bit Windows 7

I have a problem running PSExec remotely on systems running Windows 7 Professional and Windows Embedded Standard, both 64-bit. It seems to freeze during or after it starts the PSEXESVC service on the ...
user avatar
  • 95
8 votes
3 answers
9k views

PsExec requirements on local computer

What services and settings are required to run psexec on local computer? (e.g. psexec -s -i -d regedit)
user avatar
  • 339