PsExec runs remote GUI as black screen - Windows7

3

3

I'm trying to use PsExec from a server to run GUI applications on remote Windows 7 machines on our domain:

psexec //remoteMachine -i kioskApp.exe

The above is run by an admin user.

What we're trying to do is every so often force all employee PC's to run an app the puts them into kiosk mode and forces them to fill in certain information. (It's a company policy thing - if not for the enforcement, employees would simply neglect filling in the info.)

Problem is, it will appear on the remote machine, but everything within the frame will appear entirely black.

If I use -i 0 instead of just -i, the users are given the option to choose whether to let the app run, which defeats the entire purpose of running the app in the fist place!

Help would be greatly appreciated! Thanks in advance!

Yehuda Shapira

Posted 2011-11-24T15:14:25.870

Reputation: 153

Answers

4

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.

RickB

Posted 2011-11-24T15:14:25.870

Reputation: 41

1This 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! – Plarsen – 2014-08-18T11:35:56.667

This one is better than using -s because in most cases you wouldn't need (or want) to run the process in the System account. – Ahmed Abdelhameed – 2018-02-22T21:59:14.390

4

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!

Ernesto Landa

Posted 2011-11-24T15:14:25.870

Reputation: 41

1I 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 – Bad Neighbor – 2013-09-24T17:31:50.127

1

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.

Doltknuckle

Posted 2011-11-24T15:14:25.870

Reputation: 5 813