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
0answers
37 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
43 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
197 views

Error while trying to run an application as system with PsExec

i was trying to run application as system with PsExec. It worked for a while but, 2 days after, I don't understand why it gives me this error C:\Users\myname\Desktop>psexec -i -s C:\Windows\...
0
votes
0answers
31 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
727 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
36 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
55 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
118 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 ...
0
votes
0answers
42 views

How to type a multi-command sentence in PSExec?

I'm sending this command through PSExec: PsExec.exe \\172.19.159.100 -u itest -p itest "C:/Program Files/TraceSpan/NG-PON2 Xpert/NG2PTSA.exe -CS300 -CM4 -CN""C:/3000 registros mayo22"" -RI""C:/3000 ...
1
vote
2answers
922 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
458 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
726 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....
0
votes
0answers
1k views

PSexec The system cannot find the path specified Error

I want to copy the local file to remote windows machine,please find the beow command used to copy. psexec.exe \\remote server -u logon\xxxxx -p xxxxx cmd /c "copy C:\users\test.txt remote server\E$\...
1
vote
1answer
593 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 ...
0
votes
0answers
795 views

How to run a python script on multiple remote windows machines?

I have to run a specific command on a set of legacy windows (Windows Server 2008) that doesn't support WinRM. I am trying to use PsExec (from SysInternals) to do this. I could successfully do the ...
1
vote
0answers
50 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
93 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
1k 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
2k 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
920 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
147 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 ...
1
vote
0answers
2k 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
3k 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 ...
5
votes
2answers
11k 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
128 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
3k 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
3k 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
521 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 ...
1
vote
2answers
22k 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
431 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
9k 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 ...
6
votes
2answers
6k 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
10k 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
912 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
3k 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
8k 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
3k 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
7k 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 receive ...
1
vote
1answer
386 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
328 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
357 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?
2
votes
1answer
13k 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 ...
2
votes
0answers
880 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
1answer
486 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
2k 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 the ...
4
votes
5answers
28k 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 ...
2
votes
0answers
575 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
504 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 ...