https://techygeekshome.info/2013/01/find-last-logged-on-user-by-netbios/
Find last logged on user by NetBIOS name - SCCM Query