Page 1 of 1 1
Topic Options
#124801 - 2004-08-12 01:51 PM How to detect Desktop
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I want to determine if a user is logged on to a computer. More specifically I want an SMS job to detect if the "Desktop" is active. Checking the Sids in HKU is not the correct methodology here as services that logon with credentials are listed here. We want to determine if we should interact with a user that is logged on and has a desktop else proceed without any user interaction.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#124802 - 2004-08-12 02:19 PM Re: How to detect Desktop
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
How about enumerating the running processes and look for a instance of "explorer.exe"?

Basically explorer.exe is the desktop, so that should do it for you.

Top
#124803 - 2004-08-18 05:08 AM Re: How to detect Desktop
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Or set an event sink onto the eventlog looking for logon events.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 735 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.05 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org