title: Exchange Powershell - Check if a user is in a specific mailbox database
body: <p>I am trying to writing a script to move a user to a new database and then export their  mailbox to pst, but I need to verify if the user is in the correct database to begin with from a user input. </p>
  
  <p>I am trying a command like:<pre><code>Get-Mailbox -Database "Archive Mailbox Database" -Identity Fbloggs
  </code></pre>
  Then I would error trap if the user is not found. This line does not work however with error:</p>
  
  <pre>Parameter set cannot be resolved using the specified named parameters.
      + CategoryInfo          : InvalidArgument: (:) [Get-Mailbox], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameterSet,Get-Mailbox
  </pre>
  
  <p>Many thanks for any help.</p>
  
  <p>NA</p>