1
1
In previous versions of PowerShell, I used Invoke-WebRequest
to download files from HTTP. While using Server 2016 Nano with PowerShell 5.1, I found out that this command has been removed!
How am I supposed to download files from the internet in a virtually PowerShell only OS? Have I missed something? Why did Microsoft remove this?
I understand that I can use .NET commands, but that's a lot more effort than one command.
$PSVersionTable:
Name Value
---- -----
PSEdition Core
PSVersion 5.1.14284.1000
WSManStackVersion 3.0
BuildVersion 10.0.14284.1000
SerializationVersion 1.1.0.1
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
CLRVersion 4.0.30319.34011
1
Also see http://serverfault.com/questions/788949/download-a-file-with-powershell-on-nano-server
– DeepSpace101 – 2016-11-30T05:27:24.987