Questions tagged [pstools]

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

You can learn more about PsTools here and Download

103 questions
30
votes
8 answers

How to use psexec without admin privileges on target machine?

Is it possible to use psexec to execute a command on a remote machine without having admin privileges on the remote machine? I tried running psexec \\ -u -p , where and are non-admin credentials,…
HighCommander4
  • 433
  • 1
  • 4
  • 8
20
votes
8 answers

Capturing output of remote process from sysinternal's psexec

I'm trying to capture the output of the remote process from psexec (i.e. not psexec's own output). So, for example I could run "ipconfig" and print the output to a log file. I have tried: psexec \\myserver ipconfig > output.log psexec \\myserver…
joshcomley
  • 311
  • 1
  • 4
  • 6
16
votes
5 answers

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 done via PsExec, it just never returns until I…
Matt
  • 3,171
  • 9
  • 28
  • 33
15
votes
1 answer

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 error message: Couldn't access MACHINE_NAME_HERE…
Zipper
  • 403
  • 1
  • 5
  • 11
10
votes
10 answers

psexec: "Access is Denied"?

Inspired by my previous question here, I've been experimenting with PSExec. The goal is to trip off some fairly simple scripts / programs on one WindowsXP machine from another, and as PowerShell 2 doesn't yet do remoting on XP, PSexec seems like…
Electrons_Ahoy
  • 1,801
  • 3
  • 14
  • 16
7
votes
7 answers

How to use psexec to start installation or other task that requires UAC interaction?

I'm trying to remotely start installations and I'd like not to disable UAC. If I start the processes remotely using psexec, the installer will just get stalled waiting for the UAC prompt. Other tasks such as temporary files cleaning, services…
Miguel Ventura
  • 183
  • 1
  • 1
  • 6
7
votes
1 answer

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. PsExec could not start errors. The following can…
Jesse
  • 316
  • 1
  • 4
  • 12
7
votes
1 answer

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 be used by administrators on anything in the CDE,…
89okl
  • 73
  • 2
7
votes
10 answers

How can I restart a windows service remotely using a script?

I have a Python web application running in a CherryPy server, which is running as a windows service. I have a batch file to deploy this application, but I'm still having to remote desktop in to the server to restart the service. Is there any way…
Jason Baker
  • 1,229
  • 6
  • 20
  • 25
7
votes
1 answer

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 ways discussed in multiple forums but of no…
user158537
  • 71
  • 1
  • 1
  • 2
6
votes
3 answers

How to Run multiple command remotely using PSEXEC?

I am try to use multiple command with psexec tools but i am only remotely entered in that computer but it won't be perform another command psexec -i \\192.168.30.135 -u username -p password cmd & del abc.exe by using this command line parameter i…
Giriraj
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

psexec Windows Server 2008 Firewall

I am trying to use psexec to run a program on my windows server 2008 boxes. It returns with the message "Can't access myserver: The network path was not found." If I turn off Windows Server firewall, I can successfully run the command. Can…
ConsultUtah
  • 249
  • 1
  • 3
  • 13
6
votes
3 answers

PsExec and Windows 2008 R2: 'Access is Denied'

Here's my scenario: I'm attempting to remotely start & stop IIS 7.0 sites on my server from my local machine, using PsExec. Some important points: Local machine runs Windows Vista. Server runs Windows 2008 R2. Each machine runs on different…
David Elner
  • 363
  • 2
  • 5
  • 12
6
votes
1 answer

PsExec will copy the .exe but won't let me pass arguments to it

This command copies the program test.exe to the remote system and executes it interactively: psexec \\marklap -c test.exe However I need to pass some arguments to the text.exe program. This doesn't work: psexec \\marklap -c "test.exe /S"
Luca Matteis
  • 518
  • 3
  • 11
  • 21
5
votes
3 answers

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-e10 /user:patterson-e10\wks.admin xxx All the…
makerofthings7
  • 8,821
  • 28
  • 115
  • 196
1
2 3 4 5 6 7