You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On startup machine running Windows 7 need to start GUI application in single session (let`s call it
Console session) of specific user (on which credentials is preformed autologon). Need to prevent the
GUI application start if someone create another session for autologon user or any other user session
create. Also need to periodically check if GUI app still running under proper session and account.
Before script creating, trying to discover SessionID but different methods results differ:
Console session have ID 4
--------------------------------------------------------------------------
c:\>qwinsta
SESSIONNAME USERNAME ID STATE TYPE DEVICE
>rdp-tcp#13961 USER1 0 Active rdpwd
rdp-tcp 65536 Listen rdpwd
rdp-tcp#14263 USER2 1 Active rdpwd
console 4 Conn wdcon
--------------------------------------------------------------------------
app.exe started on startup in console session have ID 0