title: How do you find a user's last used printer in SysLastValue
body: <p>I've been trying to find where a user's last used printer is stored so that I can clear this usage data (as a few users have an issue where the remembered printer keeps defaulting to the XPS writer, despite us having  KB981681 installed &amp; the printer being available; just not defaulted on certain AX forms).</p>
  
  <p>I know this data's somewhere in the Usage Data, which I can browse via AX:</p>
  
  <p><code>Microsoft Dynamics AX</code> > <code>Tools</code> > <code>Development Tools</code> > <code>Application Objects</code> > <code>Usage Data</code></p>
  
  <p><code>AOT</code> > <code>System Documentation</code> > <code>Tables</code> > <code>SysLastValue</code> > (right click) > <code>Add-Ins</code> > <code>Table Browser</code></p>
  
  <p>Or through SQL:</p>
  
  <pre><code>use AXDB
  go
  
  select *
  from SysLastValue 
  where userid in 
  (
      select id 
      from userinfo 
      where networkalias in ('userid1','userid2')
  )
  and elementname like '%print%'
  and iskernel = 1
  </code></pre>
  
  <p>However so far I've not been able to guess which setting holds the last used printer information.  Since the <code>value</code> field is of type image (i.e. a blob) I also can't search based on value.</p>
  
  <p>Any advise on how to find this setting would be helpful.</p>