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
2answers
19 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 and stays open until the ...
0
votes
0answers
46 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 ...
1
vote
1answer
53 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-...
0
votes
0answers
25 views

Run bat file as admin remotely in cmd prompt for user on network?

I've tried uses psexec but all it does is start the process in the background and gives it an ID but doesn't actually do anything. Attempts: psexec \\pc -h -u org\user -p pass -d -i cmd copy "...
1
vote
0answers
17 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 ...
1
vote
0answers
41 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 ...
0
votes
1answer
197 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 ...
1
vote
1answer
42 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 ...
0
votes
0answers
13 views

Can I use PSEXEC and have the window appear on the PC I'm connecting from?

Basically, what I mean is there any way to launch a program on a remote computer using PSEXEC, task manager for example, but have the window appear on the machine I'm connecting from? So the program ...
0
votes
0answers
18 views

Unable to access UNC directory in PSEXEC mode

I tried accessing a UNC path through psexec and it is showing the error Get-ChildItem : Cannot find path '\\test\test_directory' because it does not exist. + CategoryInfo : ObjectNotFound:...
1
vote
1answer
39 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 ...
0
votes
1answer
36 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 ...
0
votes
0answers
161 views

Connecting to VM through PSExec command in powershell and facing “Couldnt access servername”

I have to connect to VM host through PSExec command in powershell psexec \\hostname cmd But I am getting below error. "Couldnt access VM hostname The network path was not found Make sure that ...
2
votes
1answer
3k 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 ...
0
votes
0answers
107 views

PsExec - An unexpected network error occurred (Error code 59)

I have several Windows 10 computers on my home network that I'm distributing work across. I'm using PsExec to start the process on each computer and manage the work that needs to be done by each one. ...
2
votes
2answers
399 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 ...
0
votes
1answer
117 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 ...
0
votes
0answers
35 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 ...
1
vote
0answers
2k 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 ...
0
votes
0answers
78 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 ...
0
votes
0answers
100 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 ...
0
votes
1answer
240 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 ...
1
vote
2answers
4k 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 ...
0
votes
1answer
865 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 ...
0
votes
0answers
1k views

PsExec: “Access is denied” on Non-Admin accounts

I am able to get into any administrator accounts to run a batch file but not into local accounts. Regular user has no password, but I created a password and still no luck. This works: psexec \\192....
1
vote
1answer
767 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 ...
1
vote
0answers
85 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'...
1
vote
0answers
109 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 ...
2
votes
1answer
2k 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 ...
1
vote
3answers
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 ...
0
votes
1answer
1k 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 ...
0
votes
0answers
153 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 ...
2
votes
0answers
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 ...
1
vote
1answer
4k 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 ...
6
votes
3answers
15k 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 ...
0
votes
0answers
3k 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 ...
0
votes
1answer
233 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 ...
1
vote
0answers
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 ...
2
votes
1answer
4k 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: ...
1
vote
0answers
557 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 ...
0
votes
0answers
4k 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 ...
2
votes
2answers
28k 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 ...
0
votes
1answer
550 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 ...
0
votes
1answer
10k 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 ...
7
votes
2answers
7k 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)
3
votes
2answers
12k views

Why can't I use PSExec on a Windows domain without disabling the firewall?

I have some Windows 7 machines on the domain with a Windows 2012 DC. Is it normal that I can't connect with PSExec to run a command as a local administrator from one Windows 7 machine to another ...
0
votes
2answers
1k views

Psexec to windows server 2012 only starts process, not GUI

I need to run a program called Kodi in windows server 2012 from another machine, The startkodi.bat itself works correctly in the win server machine C:\PSTools\psexec -u Administrator -p 123456 \\192....
1
vote
1answer
4k views

Executing VBScript file remotely - file not found

I tried using psexec \\emeagdmv28apx50 -s -i Test1.vbs psexec \\emeagdmv28apx50 @file "C:\Start.ps1" But the script is not able to find the file on remote machine. I have this particular file ...
0
votes
0answers
9k views

psexec run process as different user

Lets say I have two users: user1 -- admin user2 -- limited and I need to start a remote process as user2. I cannot use the limited user (user2) to start the remote process, since psexec requires ...
4
votes
2answers
4k 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, ...