Invoke-WebRequest PowerShell Command through Amazon AWS System Manager

I had a small issue with running Invoke-WebRequest through Amazon AWS System Manager. Somehow it doesn't seem to load the module properly.

I ended up replacing:

Invoke-WebRequest -Uri <url>

with:

$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadString(<uri>)

which works perfectly for my case.

Comments

Popular posts from this blog

AWS EC2 Can't Reach EC2 Metadata Service After Subnet Change

A2 Hosting with .NET Core 2.1

Xcode CodeSign Incorrectly States Password is Incorrect