title: Creating screenshot with AutoIt _ScreenCapture_Capture in remote server does not work
body: <p>I have a farm of virtual windows servers and they are autonomously running various desktop applications and I want to have easy way to see what's going on on each server without connecting through RDP. So I have created a simple AutoIt script which automatically runs every minute and creates a screenshot of <strong>virtual servers desktop</strong>:</p>
  
  <pre><code>#NoTrayIcon
  #include &lt;WinAPI.au3&gt;
  #include &lt;ScreenCapture.au3&gt;
  #include &lt;WindowsConstants.au3&gt;
  
  $LocalIP = _getLocalIP()
  _ScreenCapture_Capture($CmdLine[1] &amp; "\network\shared\screenshot_" &amp; $LocalIP &amp; ".jpg")
  </code></pre>
  
  <p>...</p>
  
  <p>The problem I am having is that screenshot only displays desktop with apps when I am connected to it through RDP, once I close it - screenshot will appear black and only <strong>mouse pointer is visible</strong>.</p>
  
  <p><strong>Is there any way I can create screenshot even if RDP session is closed? Is that possible?</strong></p>