Black screen when running an application remotely with PSExec
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