find computer user last logon

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
cymba
Posts: 23
Joined: Thu Jan 27, 2011 8:23 am

find computer user last logon

Post by cymba » Wed Apr 27, 2011 8:42 am

Hi,

i am trying to apply commands to my kixtart to echo users in a security group's last logon and the computer they last logon to. I have something, but it is not working. Hopefully you can help.

IF INGROUP("CORPGroupWEST")

@echo %date%,%time%,%username%,logon,%computername% >> suswestLogonData$logons.csv



Thanks in advance.

User avatar
cymba
Posts: 23
Joined: Thu Jan 27, 2011 8:23 am

find computer user last logon

Post by cymba » Wed Apr 27, 2011 8:42 am

Hi,

i am trying to apply commands to my kixtart to echo users in a security group's last logon and the computer they last logon to. I have something, but it is not working. Hopefully you can help.

IF INGROUP("CORPGroupWEST")

@echo %date%,%time%,%username%,logon,%computername% >> suswestLogonData$logons.csv



Thanks in advance.

Locked