I've had some significant difficulties figuring out how exactly to download a file with PowerShell under Nano Server.
The challenge is the following:
-
There is no Invoke-WebRequest
-
There is no System.Net.WebClient
-
There is no Start-BitsTransfer
-
There is no bitsadmin
Does anyone know how to do this (seemingly simple) task?
Best Answer
There is an example here of downloading a zip file using PowerShell on Nano, you might have to modify it a bit for your purposes;
(from here: https://docs.asp.net/en/latest/tutorials/nano-server.html#installing-the-asp-net-core-module-ancm)