PsTools is a suite of Windows command-line tools to manage and administer Windows Machine in respect to process management.
Questions tagged [pstools]
102 questions
3
votes
6 answers
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 /interactive message.vbs
(time is hh:mm at least a…

Patrick
- 401
- 3
- 5
- 15
3
votes
4 answers
Remote installing programs by scripts or batch files
Firstly, I can't use Group Policy as our team doesn't manage that. The company is a massive FTSE company with a team for every aspect of IT you can think of.
Our team needs a way of installing programs remotely either by batch files or scripts…

stead1984
- 577
- 8
- 16
- 32
3
votes
3 answers
PsExec Alternative
Is there any alternative utility to replace PsExec? If I mostly use batch script for automation work. Due to instability of psexec, like hanging/ not responding, I may need another solution. Can the community advise, thanks.
EDIT:
I have 2…

Stan
- 1,387
- 6
- 24
- 40
3
votes
2 answers
Why does PSEXEC work if I don't specify a password?
When I run SysInternals PSEXEC to launch a process on a remote machine, if I specify the password in the command line it fails with:
PsExec could not start cmd.exe on web1928:
Logon failure: unknown user name or bad password.
psexec \\web1928 -u…

Kev
- 7,877
- 18
- 81
- 108
3
votes
8 answers
PsExec and Remote Environment Variables, Logging, Etc
When I run PsExec on a remote computer, I always fall short of what I want. What I would like ideally in most situations is a) a log on an admin server where each individual log has the name of each the remote computer it was generated from (e.g.…
alharaka
2
votes
2 answers
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 following error
psexec :
At C:\mypsScript.ps1:75…

MrBliz
- 165
- 1
- 6
2
votes
2 answers
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/passwords and today I am getting the following error…

nGX
- 344
- 1
- 6
- 19
2
votes
2 answers
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 RunAs - needs manual typing of password.
What…

Omar
- 21
- 3
2
votes
1 answer
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 this, we call PsExec, like this:
PsExec.exe…

p.s.w.g
- 185
- 2
- 9
2
votes
2 answers
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 the remote Windows servers, and so far psexec seems…

Hippyjim
- 211
- 2
- 7
- 19
2
votes
2 answers
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 differences between them?

user454322
- 159
- 1
- 7
2
votes
2 answers
PSEXEC from powershell
I have been struggling getting powershell to run Psexec. It works fine for single line commands. but i need to call SCOM to put the server in maintenance mode through Psexec...
$output = .\pstools\PsExec.exe \\scomserver-u $user -p $password…

user98805
- 33
- 2
- 4
2
votes
1 answer
What is "php exited with error code 1"?
I'm running a php script through the webserver to execute psexec which in turns executes another php script.
When I run this from the command line normally, everything works fine and there are no problems.
However, when I run it from the webserver,…

Rob
- 2,393
- 9
- 33
- 52
2
votes
2 answers
Passing CMD via PSEXEC to a remote computer via .BAT file
Using PSEXEC to call CMD for a DEL command on a remote computer through a batch script.
PSEXEC \\hostname -u username -p password CMD /C DEL /Q /F C:\Folder\File.txt
The script pauses with a new CMD window popped up connected to the remote…

Anthony Miller
- 457
- 3
- 6
- 19
2
votes
4 answers
Imposible to login with psexec
I'm using psexec and I cannot execute a simple cmd into a machine. The same response it's always the same "incorrect username or incorrect password" (also returning error code 6). This is the command I use:
"c:\program files\psexec\psexec.exe"…

Killrazor
- 125
- 1
- 5