AudleyTravel
asked on
Exchange 2003 Query-based Distribution List for all currently logged-on AD users
As the IT manager of a company with c. 200 users, I find myself sending e-mails to an "All" distribution list informing people that a server will be rebooted in 10 mins, please don't use this printer today, the Intranet will be off for 20 mins, etc. When people are on holiday, they come back to a load of useless e-mails like this. As we are a tour operator, we often have 20% of staff out on research trips abroad, so it's a common complaint.
What I would like to do is have a query-based distribution list called "Logged-on Users" that can use LDAP to query currently logged-on users, so only people currently in the building will receive these e-mails. Makes a lot of sense I think! But I can't find any posts about this anywhere - has anyone worked this out?
I wasn't sure if there was a flag anywhere in AD that shows whether that user has logged-on to the domain or not (and is reset when they log off), but thought that a way round this may be to have a custom attribute set to "1" when they log on and "0" when they log off, then to use LDAP to build the query-based distribution list based on this value. But I'm not sure how to get this value set at logon/logoff.
Any solution to this problem would be fantastic! Thanks very much.
Robert Stokes
IT Manager
Audley Travel Group
What I would like to do is have a query-based distribution list called "Logged-on Users" that can use LDAP to query currently logged-on users, so only people currently in the building will receive these e-mails. Makes a lot of sense I think! But I can't find any posts about this anywhere - has anyone worked this out?
I wasn't sure if there was a flag anywhere in AD that shows whether that user has logged-on to the domain or not (and is reset when they log off), but thought that a way round this may be to have a custom attribute set to "1" when they log on and "0" when they log off, then to use LDAP to build the query-based distribution list based on this value. But I'm not sure how to get this value set at logon/logoff.
Any solution to this problem would be fantastic! Thanks very much.
Robert Stokes
IT Manager
Audley Travel Group
I know this is an old question but the easiest way for these is to set the duration of the email to one day. After the timer expires it deletes itself :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Only way to find who is logged on to the network is create a login script.
https://www.experts-exchange.com/questions/21786328/How-to-find-out-logged-in-users.html?sfQueryTermInfo=1+all+find+log+user