<p>Installation on windows should be very simple from the docs <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tools/install-kubectl</a> but mine fails at second step</p>
<pre><code>Install-Script -Name 'install-kubectl' -Scope CurrentUser -Force
install-kubectl.ps1 [-DownloadLocation &lt;path&gt;]


install-kubectl.ps1 c:\kubectl
==&gt;Getting download link from  https://kubernetes.io/docs/tasks/tools/install-kubectl/
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At C:\Program Files\PowerShell\Scripts\install-kubectl.ps1:31 char:8
+ $req = Invoke-WebRequest -UseBasicParsing -Uri $uri
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
</code></pre>
<p>It seems like it is trying to download something from <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tools/install-kubectl/</a> but it can not.</p>
<p>I succeeded to check that connection, I do have access to internet from that Windows Server:</p>
<pre><code>PS C:\Users\e561&gt; Test-NetConnection -ComputerName &quot;kubernetes.io&quot; -Port 443


ComputerName     : kubernetes.io
RemoteAddress    : 147.75.40.148
RemotePort       : 443
InterfaceAlias   : Ethernet 2
SourceAddress    : 10.7.147.211
TcpTestSucceeded : True
</code></pre>

vel
<p>As mentioned in the comments :</p>
<p>You can download <code>kubectl.exe</code> from <a href="https://dl.k8s.io/release/v1.20.0/bin/windows/amd64/kubectl.exe" rel="nofollow noreferrer">here</a> - and later add the path <code>kubectl.exe</code> located to environment variables.</p>
