title: How to run ansible playbook on a remote windows machine as administrator and have the log output
body: <p>I have the following playbook:  </p>
  
  <pre><code>---
  - name: Install winlogbeat
    hosts: windows
    tasks:
      - name: run winlogbeatinstall
        win_shell: |
          ((New-Object Net.WebClient -Property @{Proxy = [Net.GlobalProxySelection]::GetEmptyWebProxy()}).DownloadFile('https://github/install.ps1','C:\ABCD\winlogbeatinstall.ps1'))
          Start-Process powershell.exe -Verb Runas -ArgumentList "-File C:\ABCD\winlogbeatinstall.ps1"
        register: out
      - debug: var=out.stdout_lines  
  </code></pre>
  
  <p>If I run these commands on the remote machine NOT as administrator it works.<br>
  If I run it from the playbook with the same NOT administrator domain user, only the download file works (1st command), the installing (2nd command) doesn't.<br>
  How can I make it work?  </p>
  
  <p>2nd question, when it runs as admin it opens a subshell and close it, so I don't have any output. Is it possible to somehow see the output?  </p>
  
  <p>Any suggestion is welcome how can I make this work?</p>