Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
25 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 ...
0
votes
1answer
42 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
113 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
115 views

Remote screenshot\printscreen using PSEXEC

I need to take a screenshot\printscreen of remote PC using PSEXEC and save the image on the remote pc, is there a command line similar with the one bellow: C:\soundrecorder /FILE c:\temp\output.wav /...
0
votes
0answers
258 views

Use PSEXEC to connect to a computer using Elevated Creds, but keep current user

I don't know if this is possible, but let me outline this real quick. I'm on a domain where our normal users have domain credentials with network access to drives and such. My admin user has ONLY ...
0
votes
0answers
39 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
875 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
670 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 ...
4
votes
2answers
3k 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
2k 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
81 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
2k 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 ...
1
vote
1answer
1k 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
308 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
2k 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 ...
0
votes
2answers
8k 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
146 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
6k 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
3k 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
4k 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
492 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
1k 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
4k 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
2k 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
4k 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
154 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
211 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
217 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?
1
vote
1answer
7k 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 ...
1
vote
0answers
677 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
366 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
1k 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
3answers
17k 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
405 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
390 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
10k 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
1k 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 ...
2
votes
0answers
4k 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... ...
2
votes
1answer
8k 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
604 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
536 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
362 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 ...
-1
votes
2answers
16k 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
206 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
239 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. ...
6
votes
1answer
35k 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
2k 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
4answers
1k 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 ...
8
votes
2answers
37k 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?
2
votes
1answer
424 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). ...