Last Logon (since xxtime):
SELECT
[Netbios_Name0] AS 'Computer Name'
,[Full_Domain_Name0] AS 'Domain'
,[Last_Logon_Timestamp0] AS 'Last Logon'
,[Distinguished_Name0] AS 'Distinguished Name'
,[User_Domain0] AS 'User Logon Domain'
,[User_Name0] AS 'User Name'
,[Operating_System_Name_and0] AS 'OS'
FROM [CM_I01].[dbo].[v_R_System]
WHERE convert(varchar(10),Last_Logon_Timestamp0,121)>='2016-01-01' AND Client0 = '1'
No comments:
Post a Comment