title: PVS Machine Account Reset command showing error
body: <pre><code>$ResetBlock=
  {
  param($VDIName)
  Add-PSSnapin citrix*
  Get-PvsDevice -DeviceName $VDIName -ErrorAction Stop|Reset-PvsDeviceForDomain -ErrorAction Stop
  }
  Invoke-Command -ComputerName &quot;PVS001&quot; -ScriptBlock $ResetBlock -ErrorAction Stop -ArgumentList &quot;Dev001&quot;
  </code></pre>
  <p>I want to reset PVS Machine account password, I am using Invoke command against the Citrix PVS server (PVS001). unfortunately I am getting the below error, when I ran the command inside the PVS server &quot;Smart Card authentication Popup&quot; occurring I need to click on ok then the reset was successful.</p>
  <blockquote>
  <p>The following items failed:   Dev001: Unable to perform the requested
  Search. Error code: 0,  message: , provider: LDAP Provider. At line:7
  char:100</p>
  <ul>
  <li>... ock $ResetBlock -ErrorAction Stop -ArgumentList &quot;Dev001&quot;</li>
  </ul>
  </blockquote>