psexec

Using psexec.exe in jenkins, handle is invalid

耗尽温柔 提交于 2019-12-05 07:47:25
I am using Jenkins on a Windows7 system. I would like to use it to execute a batch script on a remote Windows system. The batch script will be used to flash a development board and run some tests. I came across psexec.exe. That works well through a command prompt window--I can connect and run the script without any issues, but when I try to have Jenkins do it, I get the following output: PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www.sysinternals.com The handle is invalid. Connecting to ABCDEFG... Couldn't access ABCDEFG: Connecting to

Using PSEXEC returns no output from the remote task

旧时模样 提交于 2019-12-05 05:41:44
I am using psexec to run an exe on a server. The command runs ok, but there is no output on my local console. This is the command I am using: psexec.exe \\my-machine ping localhost which results in: PsExec v1.94 - Execute processes remotely Copyright (C) 2001-2008 Mark Russinovich Sysinternals - www.sysinternals.com ping exited with error code 0. if I try to run this localy however, it works fine psexec.exe \\localhost ping localhost PsExec v1.94 - Execute processes remotely Copyright (C) 2001-2008 Mark Russinovich Sysinternals - www.sysinternals.com Pinging my-machine.mydomain.com [1.1.1.1]

Python Popen hanging with psexec - undesired results

时光毁灭记忆、已成空白 提交于 2019-12-05 03:31:25
问题 I'm having an issue with subprocess.Popen and what I believe to be pipes. I have the following block of code which works without issue 100% of the time when running from the cli: p = subprocess.Popen("psexec \\\\" + serverName.get() + " cmd /c \ ver & \ echo %USERDOMAIN% & \ dir /a C:\pagefile.sys | find \"pagefile.sys\" & \ dir C:\ | find \"bytes free\" & \ dir D:\ | find \"bytes free\" ", \ stdin=None, stdout=subprocess.PIPE, stderr=None) ### Assign the results from the Popen results = p

PsExec: Win7-to-Win7 Access Denied (psexesvc remains)

删除回忆录丶 提交于 2019-12-05 02:49:23
问题 I have a problem, and the Internet doesn't seem to have a solution, so maybe someone here can help. I'm trying to start a command-line prompt on a remote machine using PsExec, but I keep getting an "Access is Denied" error. Both my local and the remote machine are running Windows 7 Enterprise (local: x64, remote x86) and I'm using PsExec 1.98. I use the following command: psexec \\remote -u domain\user -p password -i -d cmd.exe I have also tried other commands (such as using -s, -h, etc.), it

Executing an HTA Application via PSEXEC with command line arguments

▼魔方 西西 提交于 2019-12-04 21:59:44
I have an .hta application that accepts two command line arguments. Executing the application on the remote machine via command line works just like the following (command line - cmd)Example: C:\Users\<user>\Desktop>MSI-BUILDER.hta "MSI_APP" "D:\APP\15.9.98" But when using my desktop trying to execute the same command on the remote machine via PSEXEC I see the application running in task manager but nothing happens. The first steps were assigning the command line arguments to variables in PowerShell: $arg1 = "MSI_APP" $arg2 = "D:\APP\15.9.98" and executing this command in PowerShell fails (no

C# Screenshot winlogon as well as User Desktop

走远了吗. 提交于 2019-12-04 17:07:55
I am working with screen sharing project.But i was got into trouble to capture secure desktop. I have already ask related question here and got Answer too Pls go through above link as suggested by dymanoid. I am using PsExec exe to capture secured desktop/winlogon desktop as below The /x and /s switches run the process under the SYSTEM account and on the Winlogon desktop. PsExec /i /h /x /d /s "path_\screencapture.exe" Now screencapture exe is running as SYSTEM account on winlogon desktop, i able to see screencapture exe on user login screen but not on user desktop screen. Now the things

Make sure that the default admin$ share is enable on ServerName

别说谁变了你拦得住时间么 提交于 2019-12-04 11:18:37
问题 When running the psexec command to remotely install or execute something on a sever on the same network the following error was displayed. Couldn't access ServerName The network name cannot be found Make sure that the default admin$ share is enable on ServerName Most references suggested that you add the following to the registry, but in my case this was already added to the server. This did not resolve the issue. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

Run AutoIt on remote machine using psexec

自闭症网瘾萝莉.ら 提交于 2019-12-04 05:12:17
问题 I am trying to run an AutoIt script on a remote machine. psexec.exe -accepteula \\remotemachine -u admin -p password "C:\Program Files\AutoIt3\AutoIt3.exe" "C:\Users\admin\runNotepad.au3" I am trying to open a Notepad from the script and write something in it. I am also writing some logs from the script. Although I can see the logs, but I am not able to see anything happening on the screen. I tried with argument -i 0 which opens an interactive screen which is not same as running the script on

PsExec hang while being executed from a very simple c# or c++ gui program compiled as “windows application”

只愿长相守 提交于 2019-12-04 03:27:07
问题 I am experiencing PsExec hang while being executed from a very simple c# or c++ gui program compiled as "windows application" (not as "console application"). Under section C) below I have pasted the code to reproduce the problem and under section D) I have pasted the c++ code to reproduce the same problem. When the psexec hangs, the windbg output after being attached to psexec locally is pasted under section B). My program hangs after dumping the output pasted under section A). The program

PsExec: Win7-to-Win7 Access Denied (psexesvc remains)

大憨熊 提交于 2019-12-03 21:34:53
I have a problem, and the Internet doesn't seem to have a solution, so maybe someone here can help. I'm trying to start a command-line prompt on a remote machine using PsExec, but I keep getting an "Access is Denied" error. Both my local and the remote machine are running Windows 7 Enterprise (local: x64, remote x86) and I'm using PsExec 1.98. I use the following command: psexec \\remote -u domain\user -p password -i -d cmd.exe I have also tried other commands (such as using -s, -h, etc.), it doesn't seem to make a difference. I have access to the admin$ share of the remote machine from my