Questions tagged [pstools]

PsTools is a suite of Windows command-line tools to manage and administer Windows Machine in respect to process management.

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

How to run cmd.exe using the system account on Windows 11?

I want to run cmd.exe not as administrator, but as the local system account on Windows 11. Apparently it was possible on Windows 10 using psexec. On Windows 11 with psexec v2.40 I get this error from ...
  • 111
0 votes
0 answers
8 views

How to use psexec or pstools to view items in a folder on a share drive that is restricted, but you can run files from that folder

I have a folder on my share drive that is restricted from opening and viewing contents. However, if I know the program I want to use, I can run it. Is there a way I can view the contents of the folder ...
0 votes
0 answers
292 views

Initialize service on remote computer without LocalAccountTokenFilterPolicy

I'm trying to use PsTools to configure remote computers. When I tried to initialize a Ps service at the remote computer for the first time, I got an Access is denied. error, even when authenticated as ...
  • 101
0 votes
2 answers
3k views

psexec hangs only when using username and password and calling from a PowerShell script

I am attempting to use psexec to start a process in an interactive session that has already been opened. Both my machine and the remote machine are Windows 7. Using the command from within command ...
1 vote
3 answers
12k views

How to execute psexec with non domain user?

I have a Windows Server 2012 and a Windows 7 client. I'd like to run psexec on my Windows client to execute a .bat file on my server: psexec /accepteula \\MyServer -u MyUser -p Mypass -d -i "C:/test....
1 vote
1 answer
1k views

Why am I getting performance counter errors?

I am trying to write C# code to access a computer (XP sp2) remotely to find out if a process is running. I don't know much about performance counters other than what I've been reading in the past ...
  • 181
4 votes
1 answer
6k views

How can I troubleshoot simple psExec problems?

Over the past couple of weeks I have been scouring the internet to figure out a problem I have been having of simply getting "calculator" to open on a remote computer using psExec. Eventually I asked ...
  • 181
3 votes
3 answers
4k views

Why is psExec hanging indefinitely and giving no error?

I'm simply attempting to open calculator on a remote machine in order to test the connection before I write a bigger script. I'm no pro with psexec yet, but I have never seen before what is happening ...
  • 181
1 vote
2 answers
5k views

PsExec slow to start a process

PsExec (v2.11) can take up to a minute to invoke a process, either locally or remotely. I'm using the following command line: psexec.exe -u domain\username -p mypassword -accepteula -d -h \\...
2 votes
2 answers
2k views

Exception when running PSExec on remote computer

Running this command $processesToSpawn = 3 for($i= 1; $i -le $processesToSpawn; $i++){ psexec \\computername -i 2 -u "username" -p "password" "c:\myapp.exe" } Produces the ...
  • 165
1 vote
0 answers
4k views

PsExec - Execute exe with multiple arguments and output the exe's results to a text file

I'm trying to execute Delprof2.exe on multiple computers with multiple arguments and then output its results to a text file. I'm testing on just one machine to start with so I've removed @Computers....
  • 243
1 vote
1 answer
285 views

Remote location management copy and install large software updates to 50 LAN

Initially posted to Stack Overflow and was directed here. I'm new to programming and am trying to write a powershell script to manage software updates. I'm in a windows domain environment with over ...
7 votes
1 answer
64k views

Is there a way to run PsExec specifying a user name and password (-u -p) when running as Local System?

I have a Windows Service running as Local System on Windows Server 2003 and I'm trying to use PsExec to run a command as another user (using the -u -p parameters) but I keep getting Access is denied. ...
  • 316
4 votes
1 answer
157 views

How to restore IE8 Default settings on Windows XP from a remote machine

Here is my goal. This will be run on one Windows XP machine only, for trouble shooting purposes. We need to be able to remotely execute. psexec \\computername -d -e -u domain\administrator -p ...
  • 225
2 votes
2 answers
4k views

Enable RDP using WinRM or other alternatives to psexec

I am writing a program that takes a list of servers and enables/disables RDP. Currently I am utilizing psexec and up in till this morning, everything worked. I made no change in code/usernames/...
  • 344
2 votes
2 answers
443 views

Provide Administrator credentials within script

I am writing a script that runs from a user account. The script needs to execute another script as the Administrator account. Tried AutoIt's RunAs - didn't work. Tried PsExec - the same. Tried CMD's ...
  • 21
3 votes
3 answers
11k views

Execute command on remote computer and show UI to logged on user

since I could not find any proper solution online, I'll ask here. I have a bunch of computers where I want to execute a program and show the programs GUI to the currently logged in user. Afaik this ...
  • 171
-1 votes
1 answer
366 views

PSexec is not starting to machine using supplied username and password [closed]

Hi i am trying to connect windows 7 enterprise to windows server 2008 Enterprise R2 but it fails to start the service and stuck. without prompting any error like access denied etc.. I have ...
  • 1
1 vote
1 answer
2k views

wmic hanging on remote server?

Based on information from my previous question, I'm trying to learn wmic. I'm playing around with trying to look at which processes are using the most resources on a remote server. What I've managed ...
  • 145
1 vote
0 answers
4k views

psexec exits with "<cmd> exited on <target> with error code 128"

We have several Windows 2003 servers that we run utilities on using psexec. Recently, it stopped working on one of them. For those unfamiliar with it, here's how the process normally works: Psexec: ...
  • 111
0 votes
1 answer
694 views

Pstools or Powershell or Both

I'm having a problem at the moment deploying and managing windows services and I'm looking for advice on the best course of action. Here's what I have working (below) - the problem is it's a bit ...
  • 101
3 votes
2 answers
41k views

How to run multiple commands with psexec? [duplicate]

I need to run a command to uninstall forefront on some of our workstations and am having a bit of trouble formatting the command. Here's what needs to happen (in multiple commands) xcopy \\...
5 votes
3 answers
2k views

How do I launch a command on a remote computer with an invalid domain trust? (using local creds)

I intend to use WMIC to reset the trust of a machine that is remote, and off the network. All of the following variations result in an "access denied": The following works fine: net use \\patterson-...
1 vote
5 answers
14k views

Remotely start VNC server on computer with no Admin password

I'm trying to remotely access a particular computer of mine and it seems that VNC has stopped. I can tell that the computer is still running because I can VNC into another machine on the same network ...
  • 155
0 votes
1 answer
2k views

PsExec - Can't Find Specific Path

I'm trying to install a msi file using PsExec from a network path but I get an error saying The system can't find that path specified. I'm not sure why it's happening - if there's an error in my ...
  • 41
0 votes
0 answers
741 views

IIS start remote commands - PsServices | PsExec

I have developed a ASP.NET C# web page which connects to remote conmputer command prompt using PSSERVICES.exe and executes some commands against servers. The execution works fine until I deployed the ...
7 votes
1 answer
444 views

PSTools psexec and PCI

I am just wondering if anyone knows of any reason why using psexec would cause the failure of a PCI DSS audit. I have never been able to find information, though have always been told that it can't ...
  • 73
2 votes
1 answer
730 views

PsExec hangs intermittently when calling AppCmd

We have an automated deployment process which is primarily managed by a batch file. One of the first steps in that process is to stop an IIS AppPool so the updated files can be safely copied. To do ...
  • 185
1 vote
0 answers
293 views

Accurate modeling with the psping -l parameter?

I'm in the process of setting up a psping job to allow me to test the performance of some new network based applications in my environment. I'm a little hung up on the -l argument for specifying the ...
  • 15.5k
0 votes
1 answer
603 views

Redirect telnet "interactivity" from host 3 to host 1 through host 2 (proxy?)

My network configuration: host 1 [h1] - User machine connected via VPN to the main host (host 2). (Win 7) host 2 [h2] - The gate through other machines of my network. No firewall, no ip rules. (Win ...
4 votes
1 answer
11k views

PsExec will not work due to File and Print Sharing disabled in firewall

We run in a Citrix/Wyse Terminal environment (200+ terminals) All users Wyse terminals are not connected to a Domain and users log in with a local user account with no password (there is another ...
  • 41
1 vote
1 answer
3k views

PsExec :: Access Denied

I am working on PsExec but i get error as "Access Denied " Firewall is disabled on both machine. Ports are also open at both machine. C:\PSTOOLS>PsExec \\192.168.1.232 -u Administrator "c:\test\...
2 votes
2 answers
5k views

Passwordless psexec on windows

I'm looking at deployment options at the moment. I'm using Jenkins on a Windows machine to control deployment to multiple remote Windows servers. The deployment involves executing a batch script on ...
  • 191
0 votes
2 answers
2k views

Chkdsk and PSEXEC

I run maintenance for a lot of offices and use chkdsk as a part of the maintenance. I've recently been using PSEXEC to start a batch file that simply runs chkdsk and then pauses to keep the command ...
  • 21
1 vote
1 answer
2k views

PSEXEC Access denined using local account which exists both servers

2 Windows 2012 Server, no firewall, nothing triggered in MS Security Center Endpoint Protection. Server A (GIS Server) utilizes a local account to perform various task; this account must exist on all ...
3 votes
1 answer
4k views

Use winexe to start a Windows process

When I'm on Windows I use PsExec to start processes on other Windows machines. I now have the case that I want to do that from a Linux machine. Fortunately there is winexe, a small program which ...
  • 133
0 votes
1 answer
3k views

is there a way to get PSEXEC to output the results of python

The situation: I am running psexec.exe from one windows machine to another and would like to run a python script on the remote machine and look at the output of the script without having to pipe it ...
15 votes
1 answer
48k views

PSexec is not connecting to machine using supplied username and password

I'm trying to connect from a Win 7 machine to a Win2k8R2 machine using the command: psexec \MACHINE_NAME_HERE -u MACHINE_NAME_HERE\Administrator -p PASSWORD_HERE notepad When I try this I get the ...
  • 403
7 votes
1 answer
12k views

How to execute bat file remotely using Psexec from team city inside the powershell command

I have a powershell command which runs in TeamCity. When I try to run a batch file remotely using psexec from this .ps file, I see once the remote execution started, nothing happens. I tried several ...
5 votes
4 answers
22k views

Interactive mode of PSExec not working for console application

I am trying to use PSExec to kick off a console application on a remote computer in an interactive state. When I run something like this: PsExec.exe -s -d -i 1 \\MyServer notepad.exe It launches ...
  • 163
16 votes
5 answers
44k views

Why does PsExec hang after successfully running a powershell script?

The script is fairly straight forward. Simply tries to start a bunch of windows services. Execution locally works fine when on the target machine. The script is actually executing fine as well when ...
  • 3,171
1 vote
1 answer
5k views

Psexec failing to connect the remote VM

I have got two machines (machine1 & machine2). My task is to execute few commands remotely via PSEXEC from machine1 to machine2. Sadly these machines are from different network domains. Admin ...
  • 13
3 votes
4 answers
22k views

Psexec: "unknown user name or bad password" in workgroup

I have 2 machines with Windows XP SP2 Professional on the same workgroup; I can ping each of them from the other one; My psexec command(run from machine with ip: 192.168.0.3): psexec \\192.168.0.4 -...
3 votes
6 answers
52k views

Pop up a message or run a program on remote windows 7 computer so currently logged on user can see it

How can you pop up a message or run a program on remote computer so the currently logged on user can see it. We have done this on WinXP, but these don't work with Win7. at.exe \\computername time /...
  • 399
2 votes
2 answers
5k views

What are the differences between runas and psexec?

runas is already installed on many systems (maybe by default) psexec is shipped with the awesome PsTools. Why would I use psexec (an external tool) instead of runas(an included tool) ? What are the ...
1 vote
1 answer
4k views

PsExec and xCmd

I've recently come into a bit of confusion regarding PsExec and xCmd. It would be great if someone here could help clear this up, preferably with some form of external reference to given for ...
  • 2,236
0 votes
1 answer
1k views

psexec with Windows server 2008 directory not valid

I am working with a group of machines that are on the same network. They are all windows 2008 servers. I want to run a bat file on one machine by using psexec. But when I try, I am getting ...
0 votes
1 answer
2k views

PsExec for remote command on Windows EC2 instance

Here is what I am trying: Launch ami-c98d55a0 with t1.micro size and a security group with inbound tcp ports 139, 445, 3389 open. Using paping, I get a response on port 3389 but not 139 and 445, ...
  • 215
1 vote
2 answers
353 views

Psexec renaming multiple workstations

I'm trying to add a local admin user to about 35 workstations on a AD. I am logged into a domain admin account. When I run psexec @wks.txt "net user UserName1 Password1 /add" I get: "psexec ...
  • 15
1 vote
1 answer
888 views

psexec on Windows Server 2008 with -s flag: login failure

I'm trying to use psexec.exe to run batch scripts on Windows Server 2008. I cannot use plaintext passwords, so I'm using the "-s" flag, and not providing a username/password. I get the following ...