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

learn more… | top users | synonyms

4
votes
3answers
595 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-...
2
votes
2answers
218 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'...
2
votes
2answers
1k views

Does psexec support input redirection?

I am trying to control a remote Python script, which reads commands from stdin, via psexec 1.98, but I need to redirect psexec's input since psexec itself will be launched from another program. ...
1
vote
2answers
1k 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/...
1
vote
2answers
894 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 ...
2
votes
1answer
98 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 ...
1
vote
1answer
178 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 ...
1
vote
1answer
638 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 ...
0
votes
1answer
75 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 \\...
0
votes
1answer
251 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 ...
0
votes
1answer
446 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 ...
3
votes
0answers
83 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 ...
1
vote
0answers
2k 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: ...
1
vote
0answers
229 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 ...
0
votes
0answers
17 views

'Secondary Logon' and User Group Policy

I'm working with a system (2008R2 + Windows 7) that requires some machines to run with 'group accounts' (single user ID for multiple people) due to a requirement have certain software displays up 24/7....
0
votes
0answers
15 views

Control WIN from Unix

I'm struggling right with taking control of my Windows7 VM, from a Unix VM. Let me explain.. I need to copy some resources from UNIX to WIN. One of these is a bat script to launch. So, I want to ...
0
votes
0answers
16 views

What are all of the ERRORLEVEL values possible after running psService?

I'm writing a C# application that uses psService and I want to handle all the possible "return values" (if I can call them that) of that command. I'm aware of 0 and 1 and if I'm correct those mean, ...
0
votes
0answers
60 views

Wine + PsExec fail with Path not found

I'm trying to use PsExec with Unix distro. I use Wine with the command: wine PsExec.exe \\192.168.70.151 -u admin -p Pa55w@rd= dir Tried too: wine PsExec.exe \\\\\\\\192.168.70.151 -u admin -p ...
0
votes
0answers
61 views

Sarting LanmanServer service remotely

I want to start the Server (LanmanServer) service on a remote windows machine. I have been looking into using sc.exe and PsService. However, from my understanding, I need the server service to ...
0
votes
0answers
377 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....
0
votes
0answers
1k views

Access denied using psexec when connect to remote server

I use latest version of PsExec, and execute Command Prompt as Run as Administrator. We use PsExec v2.11 MY_MACHINE is on MY_DOMAIN domain. REMOTE_SERVER is on OTHER_DOMAIN domain. user_partner is on ...
0
votes
0answers
274 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 ...
0
votes
0answers
633 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 ...