Thursday, March 9, 2017

SCCM last logon username report



Query:

Add collection ID in 'X'

Select A.Name0, A.UserName0  from V_GS_COMPUTER_SYSTEM A join v_FullCollectionMembership B on A.ResourceID = B.ResourceID Where B.CollectionID ='X'


Output:

Machine name      username

No comments:

Post a Comment