title: Executing yara with powershell on domain computers
body: <p>I'm having issues with running executing Yara with Powershell on domain computers.</p>
  
  <p>Transfer Yara to computer:</p>
  
  <pre><code>PS&gt; copy yara.exe \\PC1-PC.mydomain.com\C$\TEMP\yara.exe
  </code></pre>
  
  <p>Transfer rules:</p>
  
  <pre><code>PS&gt; copy rules.yara \\PC1-PC\C$\TEMP\rules.yara
  </code></pre>
  
  <p>Execute scan using Invoke-Command:</p>
  
  <pre><code>PS&gt; Invoke-Command -ComputerName PC1-PC -ScriptBlock { c:\TEMP\yara.exe c:\TEMP\rules.yara c:\TEMP\ } -credential USER
  </code></pre>
  
  <p>Now it transfer the Yara exe and rules to the remote computer. When executing with the invoke command, nothing returns, it just returns back to the original prompt in Powershell (ver 2.0)</p>
  
  <p>The Yara rule works completely fine on standalone and does return an alert on a standalone computer. However, nothing returns when I'm using this on a remote computer that is on the domain. </p>