Script to log computer that are left on/logged in

I am looking for some sort of a script that I can set to run on a schedule, that will create a text file or email listing all the computers that are left on on our network.  
We are trying to get people to turn their computers off at the end of their shift to save energy costs and unnecessary wear and tear on the pc's.  It also helps to ensure that users have the latest versions of software and such.
I have a batch file that I can run that will shut all the computers down at a certain time, but then unsaved info is lost. We would really like to monitor the people that arent following the rules...

Thanks
LVL 1
rbunnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hlarseCommented:
Hi rbunn,

Check out nbtscan here --> http://www.unixwiz.net/tools/nbtscan.html  You can plug in a subnet range to scan and redirect the output to a text file.  It will give you IP and netbios names of the machines it can connect to.
0
hlarseCommented:
Actually, I think this is the link you need --> http://www.inetcat.net/software/nbtscan.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rbunnAuthor Commented:
That is perfect!  Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.