title: Unable to access jar file azure devops
body: <p>I am tryting to launch a ZAP scan from Azure devops with the following code</p>
  <pre><code>trigger:
  - main
  
  pool:
   name: Owasp-Zap Agent
    
  steps:
  - task: CmdLine@2
    inputs:
      script: 'cd C:\Program Files\OWASP\Zed Attack Proxy'
  - task: CmdLine@2
    inputs:
      script: 'java -jar zap-2.11.1.jar -cmd -quickurl https://example.com/ -quickout owaspreport.html'
  </code></pre>
  <p>I have tried all the variations from <a href="https://stackoverflow.com/questions/11943948/what-causes-unable-to-access-jarfile-error">here</a> , none of them work. I have made the azure agent logon as the only admin account on the VM as well. Doesn't seem to work.</p>
  <p>This is the error I keep getting</p>
  <blockquote>
  <p>&quot;C:\Windows\system32\cmd.exe&quot; /D /E:ON /V:OFF /S /C &quot;CALL
  &quot;C:\agent_work_temp\1466a487-8040-4394-970e-ac3ba154a3d6.cmd&quot;&quot;
  Error: Unable to access jarfile zap-2.11.1.jar</p>
  </blockquote>
  <p>even when it is in the same folder.</p>