1

I have written a small script to access a remote machine then run an executable however the executable runs only in the background.

Is it possible to run so I am able to see the gui?

psexec IPADDRESS -u USERNAME -p PASSWORD -i SESSIONID -d "C:\Windows\system32\notepad.exe"
Rob Blagg
  • 260
  • 4
  • 13

1 Answers1

3

Thanks for your help Avshalom.

The answer for me was to change my sessionid from 0 to 2.

Rob Blagg
  • 260
  • 4
  • 13