Psexec fails to display a notepad GUI on the remote session for me. So, I am trying to get the session id as below:
c:\Users\Amitra\Downloads\PSTools>PsExec -u administrator -p force \\135.20.230.160 query session
PsExec v2.11 - Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals - www.sysinternals.com
SESSIONNAME USERNAME ID STATE TYPE DEVICE
>services 0 Disc
rdp-tcp#0 Administrator 1 Active rdpwd
console 4 Conn
rdp-tcp 65536 Listen
query exited on 135.20.230.160 with error code 1.
Now, with the above output, what should be the correct command in psexec to run notepad on the IP address?