PsExec runs remote GUI as black screen - Windows7
Solution 1
Be sure to set the -u
and -p
for domain\user and password on the remote PC. I was having the same issue and figured out that setting the user corrected the issue.
Solution 2
Try to use the -s switch, it worked for me.
psexec //remoteMachine -s -i kioskApp.exe
The -s switch is for ruuning the process as SYSTEM user, so I know it could be weird to combine those parameters, but it works!
Solution 3
Have you thought of setting up a scheduled task to run the program? You can use the "BUILTIN\Users" User when you create the task to have it run as the logged on user. Doing it this way would allow you to use group policy to send it out instead of depending an admin computer launching the program.
I'll warn you now that it will take some time and testing to get setup, but it is extremely powerful. I'd only try it if you can't get PSexec to work.
Related videos on Youtube
![Boris](https://i.stack.imgur.com/5K97K.png?s=256&g=1)
Boris
Updated on September 18, 2022Comments
-
Boris almost 2 years
I've recently been following through the book, "Black hat python", it's been alright but when I try the
get_mac
function the console spits out an error, specifically:NameError: name 'get_mac' is not defined".
I am not sure if this just is a Linux based issue.
Code:
from scapy.all import * import os import sys import threading import signal interface="en1" target_ip="10.0.0.17" gateway_ip="10.0.0.138" packet_count=1000 # set up our interface conf.iface=interface # turn off input conf.verg=0 print"[*] Setting up %s"%interface gateway_mac=get_mac(gateway_ip)
-
Mark Reed over 8 yearsNo such function. Was it maybe defined earlier in the book?
-
-
Bad Neighbor almost 11 yearsI had been running into Jacob Spire's issue. All I wanted was to display a text file on a user's screen, just to make sure I had the parameters correct. To display a text file on a Windows PC: psexec \\PcName -s -h -i 1 notepad.exe c:\hello.txt
-
Peter Wirdemo almost 10 yearsThis worked for me, thanks! It did not matter if I already was running the console as admin, I had to add the -u option and manually enter my pw, and the black screen on remote computer was gone!
-
Boris over 8 yearsThat does not work when i insert it into my current code, I receive this error: "TypeError: getnode() takes no arguments (1 given)"
-
Vasyl Moskalov over 8 yearsI add a link to similar question on stackoverflow with another recipe. Try this one.
-
tripleee over 8 yearsI also notice that you transcribed
conf.verb
(as in verbose) incorrectly. -
tripleee over 8 yearsThe
import *
is obviously also poor style. -
41686d6564 stands w. Palestine over 6 yearsThis one is better than using
-s
because in most cases you wouldn't need (or want) to run the process in the System account.