Solved

Are my users active on the network

Posted on 2013-01-23
5
207 Views
Last Modified: 2013-01-28
Monthly I do windows updates on all my servers,  I usually begin this at 10:00 PM.  After the windows updates I need to reboot servers and test.  Sometimes I do this over the course of two or three nights.

My problem is I have a remote office that some of the users work till 1:00 or 2:00 AM and if I reboot servers they are on they are not happy campers.

These users previously connected to the main office using Citrix and I was easily able to tell who was logged in and if there citrix session was active.  If it was inactive for 30 minutes or so,  I would just log the session off.  once I was sure the users werent activily woprking then i would be comfortable with the reboot.

Now they no longer connect through citrix and they are just logging into the Windows 2008 Domain.  My problem is many users when they are done for the day they just lock there computers.  So technically the are logged in but for my purposes I would be able to reboot the servers.

Each users computer is windows 7, connected to an Active directory 2008 Domain,  we use outlook 2010,  exchange 2007.

How can I tell:
1. Who is logged in ?
2. If the logged in users are activiley working ?

Thanks for your assistance.
0
Comment
Question by:Ekuskowski
  • 2
  • 2
5 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 250 total points
ID: 38810838
You can use the lastlogon attribute or try to comb the event logs but that is going to be tough  to know who is "working".  You could look at exchange logs or IIS logs if using OWA.

What I'd suggest is sending out an email once a month saying there will be maintenance.  Give them a two hour window  (after hours) and just let them know services may be unavailable during that time.  The servers need to be patched.

We did something similar this week because we are moving Exchange mailboxes and we sent out a mass email saying services might not be available between midnight and 3 AM while their mailbox is moved.

Thanks

Mike
0
 
LVL 23

Assisted Solution

by:Thomas Grassi
Thomas Grassi earned 250 total points
ID: 38810858
Active Directory domains don't maintain 'session state', it's just a directory, you won't be able to retrieve a list of logged in users.


You could, in a logon script, create a line that makes a file?

Something like?

net time >> \server\logonlogs\%username%.txt

Then in a logoff script del %username%.txt


Found this also

http://www.rlmueller.net/Last%20Logon.htm
0
 

Author Comment

by:Ekuskowski
ID: 38811543
Problem is my users complain anytime we do maintenance,  I could send out an email and I'll get 20 responses that I cant do maintenance because they absolutely need access to the system,  then I could check and no one will be logged in.  If I could find the info without the notification would be better .  

Logon and logoff doesnt really tell me if they are working,  of course logoff tells me they are not connected but if i have people logon and they dont logoff instead they just lock the computer,  I wouldnt know if they are working.

I'll check out some of these scripts but a quick look doesnt seem to find what i need  http://www.rlmueller.net but these scripts seem pretty useful for other uses.
0
 
LVL 23

Expert Comment

by:Thomas Grassi
ID: 38811574
Do what I do just send out a broadcast message to all network users
System will shutdown in 10 mins for Maintenance Please logoff

net send was the method but not on Windows 7 and Windows 2008 no more net send

For the windows 7 computers I found a program winmessenger that works nicely.

For Windows 2008 server I found a program called sent which also works well

I then setup a batch file shutdown.cmd which sends the message to all computers on the domain
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 38811709
What if you patch at 2 AM on Saturday morning (Use WSUS and schedule it).  Would they still complain?

Thanks

Mike
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A safe way to clean winsxs folder from your windows server 2008 R2 editions
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question