Find PC by Last logon user – prompted

Use this query if you want to locate PCs by that last logon user but prompt for the user name each time.

select 
    SMS_R_System.Name 
from  
    SMS_R_System 
where 
    SMS_R_System.LastLogonUserName = ##PRM:SMS_R_System.LastLogonUserName## 
order by 
    SMS_R_System.Name

Leave a Reply

Your email address will not be published. Required fields are marked *