→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
freemanja
Engaged Sweeper
Is there a report or a way to tell the machine that a user is currently logged into in real time?
1 ACCEPTED SOLUTION
Bruce_B
Lansweeper Alumni
This question was answered via email, I've added our answer below for everyone else's benefit.

As Lansweeper is set up as an inventory tool and not a real-time monitoring tool, this is currently not possible.

The table tblCPlogoninfo stores the user logon events that occurred on your Windows computers. Whenever Lansweeper scans a Windows computer, it detects the currently logged on user and creates a logon event for this user. The logontime value reflects when Lansweeper scanned the computer and detected the user. It does not necessarily reflect when the user actually logged on to the computer. Users that do not log on to a computer during a computer scan are therefore not detected.

A workaround to capture all logon events and to have the logon time value reflect when the user actually logged into the computer is deploying the LsPush scanning agent in a logon script/group policy. LsPush is a small executable that, when run on a Windows computer, scans the computer locally. The scan results can manually or automatically be forwarded to your Lansweeper server for import.

You can find the LsPush executable in the Program Files (x86)\Lansweeper\Client folder on your Lansweeper server and information on its parameters in this knowledge base article: https://www.lansweeper.com/kb/24/how-to-scan-with-LsPush.html

LsPush can easily be deployed in domain environments with a logon script or group policy. A sample .vbs script that runs LsPush can be seen below. You will need to replace what we've highlighted with the folder hosting the LsPush executable and the name of your own Lansweeper server. If you deploy this script as part of a logon script or group policy, LsPush will automatically scan your machines when users log into them and send the results directly to your Lansweeper server for import. General info on setting up a logon based group policy, not specific to LsPush, can be found here: https://www.petri.com/setting-up-logon-script-through-gpo-windows-server-2008

Set WshShell = CreateObject("Wscript.Shell")
WshShell.run "%logonserver%\netlogon\lspush.exe lansweeperservername",0


We've already received similar requests from our user base to add monitoring features to Lansweeper, and as such, it was added to our customer wish list. We have tagged your ticket as a feature request to add weight to this. Features on our customer wish list get development priority based on a combination of customer demand and difficulty to implement. As such we aren't able to guarantee that this feature will be implemented or provide you with an estimated release date at this time.

View solution in original post

1 REPLY 1
Bruce_B
Lansweeper Alumni
This question was answered via email, I've added our answer below for everyone else's benefit.

As Lansweeper is set up as an inventory tool and not a real-time monitoring tool, this is currently not possible.

The table tblCPlogoninfo stores the user logon events that occurred on your Windows computers. Whenever Lansweeper scans a Windows computer, it detects the currently logged on user and creates a logon event for this user. The logontime value reflects when Lansweeper scanned the computer and detected the user. It does not necessarily reflect when the user actually logged on to the computer. Users that do not log on to a computer during a computer scan are therefore not detected.

A workaround to capture all logon events and to have the logon time value reflect when the user actually logged into the computer is deploying the LsPush scanning agent in a logon script/group policy. LsPush is a small executable that, when run on a Windows computer, scans the computer locally. The scan results can manually or automatically be forwarded to your Lansweeper server for import.

You can find the LsPush executable in the Program Files (x86)\Lansweeper\Client folder on your Lansweeper server and information on its parameters in this knowledge base article: https://www.lansweeper.com/kb/24/how-to-scan-with-LsPush.html

LsPush can easily be deployed in domain environments with a logon script or group policy. A sample .vbs script that runs LsPush can be seen below. You will need to replace what we've highlighted with the folder hosting the LsPush executable and the name of your own Lansweeper server. If you deploy this script as part of a logon script or group policy, LsPush will automatically scan your machines when users log into them and send the results directly to your Lansweeper server for import. General info on setting up a logon based group policy, not specific to LsPush, can be found here: https://www.petri.com/setting-up-logon-script-through-gpo-windows-server-2008

Set WshShell = CreateObject("Wscript.Shell")
WshShell.run "%logonserver%\netlogon\lspush.exe lansweeperservername",0


We've already received similar requests from our user base to add monitoring features to Lansweeper, and as such, it was added to our customer wish list. We have tagged your ticket as a feature request to add weight to this. Features on our customer wish list get development priority based on a combination of customer demand and difficulty to implement. As such we aren't able to guarantee that this feature will be implemented or provide you with an estimated release date at this time.