Black screen when running an application remotely with PSExec

EminentX 6 Reputation points
2022-08-03T21:04:23.707+00:00

I'm going to run notepad remotely using PSExec with its interactive option as below but the notepad console appears with a black screen:

PSExec -i -d \RemoteComputer notepad.exe

And the following runs it in the background as SYSTEM and console doesn't appear either:

PSExec -s -i -d \RemoteComputer notepad.exe

I tried using an scheduled task and it worked but I want to know why the above commands don't work (I mean they run successfully but as stated, black screen appears).
I tried using -u -p switches but didn't work either. Actually, The application ran as specified user in the background. Here is what I ran:

psexec -i -d \RemoteComputer -u DOMAIN\USER -p PASSWORD notepad.exe

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,087 questions
0 comments No comments
{count} vote