{"id":1633,"date":"2017-12-08T15:46:26","date_gmt":"2017-12-08T15:46:26","guid":{"rendered":"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/?p=1633"},"modified":"2017-12-08T15:46:26","modified_gmt":"2017-12-08T15:46:26","slug":"tracking-laptop-usage-in-a-11-environement","status":"publish","type":"post","link":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/2017\/12\/08\/tracking-laptop-usage-in-a-11-environement\/","title":{"rendered":"Tracking Laptop Usage in a 1:1 environment aka &quot;Who stole the laptop?&quot;"},"content":{"rendered":"<p>\t\t\t\t&lt;![CDATA[<a href=\"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/3\/2017\/12\/tracker.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1655\" src=\"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/3\/2017\/12\/tracker.jpg\" alt=\"\" width=\"170\" height=\"166\" \/><\/a><br \/>\nLet me start this post by ensuring you that I am on a limited budget trying to effectively manage a 1:1.\u00a0 I am sure there are paid alternatives, and possibly better free ones, that accomplishes this in other ways.\u00a0 But it works!<br \/>\nStudents lose laptops, forget where they put them, have them stolen, leave them on the bus for a 3rd grader to find (kept it for 2 weeks before his parents found it) and so forth.\u00a0 They usually come crying to us a few days (sometimes weeks) later and don&#8217;t have a clue where it is.\u00a0 How can we find it?<br \/>\nI have taken a tracking approach to simply let the laptop tell me where its is, who is using it, and what wifi it is on.\u00a0 I do this through a logon batch script that simply sends a email to a tracking email account on each logon.\u00a0 Yep, that is a lot of emails, but it is going to an account I only logon to when I need to find one.\u00a0 I use gmail filters to put them in nice little folders by class, staff&#8230;<br \/>\nI use SendEmail (written by Brandon Zehm http:\/\/caspian.dotconf.net\/)\u00a0 This is in a folder on the C drive of my student laptops, and I added a logon script to execute logon.bat each logon.\u00a0 I could do it on power on, timed, whenever.\u00a0 Obviously task scheduler is used to execute the task as system.\u00a0 All the information on how to use his code is in a text file in his download.<br \/>\nTo make my batch file work simply replace:<\/p>\n<ol>\n<li>gmailsmtp@gmail.com with your gmail account it is coming from in SMTP<\/li>\n<li>gmpassword with the password for the account above.\u00a0 Assuming GMAIL SMTP<\/li>\n<li>trackingemail@gmail.com with the email you want to be receiving these notices.<\/li>\n<li>@yourdomain.com with your actual domain.\u00a0 It will then be sending the email from the user email address (in the from field.)<\/li>\n<\/ol>\n<p>I am using netsh wlan show interface &gt; c:\\users\\%username%\\profile.txt to dump information to attach.\u00a0 You could do ipconfig \/all &gt; profile.txt in the section for non-wifi users to try and find where it is plugged in as well.\u00a0 I found this to not be very useful, but you might.<br \/>\nThe end result.\u00a0 If a student leaves his laptop lying around.\u00a0 Someone else could pick it up and take it home.\u00a0 But it will be of no use since they have no logon account on that laptop.\u00a0 They would have to logon to it, at school, to accomplish that.\u00a0 Then they are the last logon to the laptop.\u00a0 I have had a student drive in at midnight, sit in the parking lot, and logon.\u00a0 Yes, that has happened.\u00a0 The point is that to make it usable, they have to logon.\u00a0 And\u00a0 I instantly know who did it.\u00a0 If\u00a0I am tracking a particular laptop I can have a gmail forwarded to me the instant it is used.<br \/>\nI have also had a student clean one all up and sell it to another student (like I didn&#8217;t have the motherboard serial numbers) and think I wouldn&#8217;t notice.\u00a0 Is this worth the time?\u00a0 It certainly is to the student that doesn&#8217;t want to pay for the lost laptop!<\/p>\n<hr \/>\n<p>ECHO OFF<br \/>\nREM Who is logging on?<br \/>\nset str=%username%<br \/>\nREM What class is the user (for GMail filtering into folders)<br \/>\nset str=%str:~0,2%<br \/>\nREM Dump the current WIFI SSID information into a file<br \/>\nnetsh wlan show interface &gt; c:\\users\\%username%\\profile.txt<br \/>\nREM Student account start with the grad year (last 2) and if this is true&#8230;it is a student<br \/>\nIf %str% LSS 100 goto studentlogons<br \/>\nREM If a non-student account is logging on, it is an &#8220;other&#8221; logon.<br \/>\n:otherlogons<br \/>\nC:\\sendmail\\sendEmail.exe -f %username%@yourdomain.com -t trackingemail@gmail.com -u %username% just logged to %computername% -m %computername% was logged on by User:%username% at %time% on %date% -a c:\\users\\%username%\\profile.txt -s smtp.gmail.com:587 -xu gmailsmtp@gmail.com -xp gmpassword -o tls=yes<br \/>\nREM\u00a0 It sent, goto end<br \/>\nIf %errorlevel% == 0 goto end<br \/>\nREM If the laptop is not on WIFI, it errors, so send it without WIFI SSID Info<br \/>\nC:\\sendmail\\sendEmail.exe -f %username%@yourdomain.com -t trackingemail@gmail.com -u %username% just logged to %computername% -m %computername% was logged on by User:%username% at %time% on %date% -s smtp.gmail.com:587 -xu gmailsmtp@gmail.com -xp gmpassword -o tls=yes<br \/>\ngoto end<br \/>\n:studentlogons<br \/>\nC:\\sendmail\\sendEmail.exe -f %username%@yourdomain.com -t trackingemail@gmail.com -u %username% just logged to %computername% Class:%str% -m %computername% was logged on by User:%username% at %time% on %date% -a c:\\users\\%username%\\profile.txt -s smtp.gmail.com:587 -xu gmailsmtp@gmail.com -xp gmpassword -o tls=yes<br \/>\nREM\u00a0 It sent, goto end<br \/>\nIf %errorlevel% == 0 goto end<br \/>\nREM If the laptop is not on WIFI, it errors, so send it without WIFI SSID Info<br \/>\nC:\\sendmail\\sendEmail.exe -f %username%@yourdomain.com -t trackingemail@gmail.com -u %username% just logged to %computername% Class:%str% -m %computername% was logged on by User:%username% at %time% on %date% -s smtp.gmail.com:587 -xu gmailsmtp@gmail.com -xp gmpassword -o tls=yes<br \/>\ngoto end<br \/>\n:end]]&gt;\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;![CDATA[ Let me start this post by ensuring you that I am on a limited budget trying to effectively manage a 1:1.\u00a0 I am sure there are paid alternatives, and possibly better free ones, that accomplishes this in other ways.\u00a0 But it works! Students lose laptops, forget where they put them, have them stolen, leave &hellip; <a href=\"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/2017\/12\/08\/tracking-laptop-usage-in-a-11-environement\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Tracking Laptop Usage in a 1:1 environment aka &quot;Who stole the laptop?&quot;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1633","post","type-post","status-publish","format-standard","hentry","category-tech-staff"],"_links":{"self":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/1633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/comments?post=1633"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/1633\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/media?parent=1633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/categories?post=1633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/tags?post=1633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}