Skip to main content
0 votes
1 answer
102 views

psexec query session isn't returning any result when run from jenkins Powershell build step

End Goal : To configure a jenkins job to run a automation script on an windows desktop app in windows active session, am using Jenkins + Psexec command to achieve this goal. Code that i used is below :...
Dhuruvan's user avatar
  • 101
1 vote
0 answers
40 views

How to Sign Out a User from Windows Service with Elevated Permissions Without Using psexec.exe?

I'm developing a Windows Service that needs to sign out a user from their session. However, I'm encountering an issue where the service does not have the necessary elevated permissions to log out the ...
John Carter's user avatar
0 votes
0 answers
103 views

Why PSExec could launch process as SYSTEM without SeDebugPrivilege?

The simple skill to escalate the process to SYSTEM privilege is using SeDebugPrivilege : Write the program which enable the SeDebugPrivilege value of the process. After enable the SeDebugPrivilege ...
user3365407's user avatar
0 votes
1 answer
223 views

How to get the results of long running commands in pypsexec?

I'm using pypsexec to connect to a remote Windows machine. I've to find a list of files with a certain extension. This is what I'm doing right now. command = "dir /b/s *.py" client....
shn's user avatar
  • 15
1 vote
1 answer
266 views

Psexec issue with variable command in Powershell

I'm looking to automate the use of Psexec through a Powershell script. The aim is to send mass commands to a list of servers. So far, nothing extraordinary when you know the possibilities of Psexec. ...
Laurent Guinard's user avatar
2 votes
2 answers
410 views

It is necessary that PsExec does not close at the end of the PowerShell script

I wrote a PowerShell script to get a list of users in the groups of the local computer. When executed, a CMD opens with the input of variable values. After entering variables, PsExec opens in the ...
jbans's user avatar
  • 21
0 votes
0 answers
139 views

Why does psexec query session work via cmd but not when called with _popen in C++?

I'm trying to get the logged in sessions on a remote PC using the below command: .\psexec.exe -s -i -h -n 10 \\<remote machine> -u <username> -p <password> -accepteula -nobanner ...
Alex H's user avatar
  • 41
1 vote
1 answer
1k views

Run PsExec on Windows Server 2022 via OpenSSH - only display the first three lines

I have a test machine with Windows Server 2022 installed, and I have downloaded the PsTools folder from the official website with PsExec.exe in it, I also enabled OpenSSH server on the machine. Then I ...
Morris Li's user avatar
  • 442
0 votes
1 answer
159 views

Psexec doesnt give me the full results

Ive been trying this script using psexec to get processes of a range of pcs, i make it work but i dont get the results on the table that it should appear, ive been searching on psexec posts but i dont ...
AALV8's user avatar
  • 125
1 vote
1 answer
1k views

PSEXEC Starts on remote PC but does not execute command

I have a command to execute on the remote PC on an interactive session to sent a HotKey to the console. The remote command is PowerShell $wsshell = New-Object -comObject wscript.shell $wsshell....
Geo V's user avatar
  • 171
-1 votes
1 answer
1k views

psexec: the system cannot find the file specified

On server 10.221.2.4 i have the following batch file entitled: restart_Tomcat.bat in C:\Users\Tomcat\Desktop and is working locally. @ECHO OFF SET SvcName=Tomcat9 SC QUERYEX "%SvcName%" | ...
zinon's user avatar
  • 4,704
0 votes
1 answer
280 views

Psexec with pythin syntax issue

I'm trying to run psexec to do something basic, but it's showing me the psexec help as if I'm typing in something incorrectly. Here is the code: import subprocess import sys myusername = 'DOMAIN\\...
CrossingTheRoad2020's user avatar
-1 votes
1 answer
476 views

Push msi with psexec for all the domain

I need help in pushing an Atera agent to around 80+ pc's I did that with GPO, the thing is that I finding my self asking people to do a restart to the computer in order to update the gpo, becouse most ...
WebsGhost's user avatar
  • 107
0 votes
0 answers
201 views

How do you pass "Program Files" to PsExec?

I've already read and tried various ways, but it just won't take it Here is my script : $computers=Get-Content -Path "C:\tmp\computers.txt" foreach ($computer in $computers){ psexec64.exe \...
Arbelac's user avatar
  • 1,956
1 vote
0 answers
153 views

windows app running with system process behaves differently compare to PsExec tool

I am working on one electron app. Electron app has child node js process which capture desktop stream using ffmpeg tool. To capture winlogon stream, I have used setThreadDesktop API in child process ...
Hiren patel's user avatar

15 30 50 per page
1
2 3 4 5
53