cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kgribbe
Engaged Sweeper
Heya

There are 2 important points left in order for us to proceed on purchasing this product.

1. Is there a way to see a list of the last x users who logged on a certain device? rather then only seeing the last logged in account?

2.How can we add local admins to a remote windows 7 device? in order to use the remote tool.
For windows xp we got it working by adding "net localgroup administrators domain\adminxx /add" to the login scripts.

or by adding a custom action in lansweeper:
{actionpath}psexec \\{computer} -u domain\user -p xxxxx \\server\NETLOGON\lansweeper\make_local_admins.bat.

In the bat file there are a few "net localgroup administrators domain\adminxx /add" lines.

However in windows 7 both options won't work because the cmd isn't an elevated processes. We also tried adding them by gpo (http://social.technet.microsoft.com/Forums/windowsserver/en-US/4ceff330-0b72-4ed2-a55a-3089b504d2fc/granting-local-admin-rights-via-group-policy-to-a-particular-computer )but that didn't seem enough to get the lansweeper remote tool to work?

regards
1 REPLY 1
Hemoco
Lansweeper Alumni
In regards to your questions:
1. A sample report that lists users that logged into your computers in the last 7 days can be seen below. Replace the number marked in bold to change the time frame.
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblCPlogoninfo.Username,
tblCPlogoninfo.Domain As Userdomain,
tblCPlogoninfo.logontime
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblCPlogoninfo On tblAssets.AssetID = tblCPlogoninfo.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblCPlogoninfo.logontime > GetDate() - 7 And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
tblCPlogoninfo.logontime Desc

2. We would recommend using runas.exe to run custom actions as a different user: http://www.lansweeper.com/forum/yaf_postst4665_Admin-needed-to-make-Actions-run.aspx
Also note the other Remote Control requirements listed on page 149 and beyond of our online documentation: http://www.lansweeper.com/documentation.pdf