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.
This topic is 12 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
cymba
Posts: 23
Last visit: Wed Apr 27, 2011 8:42 am

find computer user last logon

Post by cymba »

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
Last visit: Wed Apr 27, 2011 8:42 am

find computer user last logon

Post by cymba »

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.
This topic is 12 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked