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.

<span class="kwrd">select</span> 
    SMS_R_System.Name 
<span class="kwrd">from</span>  
    SMS_R_System 
<span class="kwrd">where</span> 
    SMS_R_System.LastLogonUserName = ##PRM:SMS_R_System.LastLogonUserName## 
<span class="kwrd">order</span> <span class="kwrd">by</span> 
    SMS_R_System.Name

email

Written by , Posted .