[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"/2025/10/06-invoke-webrequest-powershell-command-through-aws-system-manager":3},{"id":4,"title":5,"body":6,"date":67,"description":49,"extension":68,"meta":69,"navigation":70,"path":71,"robots":72,"seo":73,"stem":74,"__hash__":75},"posts/2025/10/06 Invoke-WebRequest-PowerShell-command-through-AWS-System-Manager.md","06 Invoke WebRequest PowerShell Command Through AWS System Manager",{"type":7,"value":8,"toc":64},"minimark",[9,18,25,28,31,33,36,50,53,61],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"invoke-webrequest-powershell-command-through-aws-system-manager","Invoke-WebRequest PowerShell Command through AWS System Manager",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 10/25/2018.",[26,27],"br",{},[22,29,30],{},"I had a small issue with running Invoke-WebRequest through Amazon AWS System Manager. Somehow it doesn't seem to load the module properly.",[26,32],{},[22,34,35],{},"I ended up replacing:",[37,38,39],"code-block",{},[40,41,46],"pre",{"className":42,"code":44,"language":45},[43],"language-text","Invoke-WebRequest -Uri \u003Curl>\n","text",[47,48,44],"code",{"__ignoreMap":49},"",[22,51,52],{},"with:",[37,54,55],{},[40,56,59],{"className":57,"code":58,"language":45},[43],"$WebClient = New-Object System.Net.WebClient\n$WebClient.DownloadString(\u003Curi>)\n",[47,60,58],{"__ignoreMap":49},[22,62,63],{},"which works perfectly for my case.",{"title":49,"searchDepth":65,"depth":65,"links":66},2,[],"2025-10-06T00:00:00.000Z","md",{},true,"/2025/10/06-invoke-webrequest-powershell-command-through-aws-system-manager",null,{"title":5,"description":49},"2025/10/06 Invoke-WebRequest-PowerShell-command-through-AWS-System-Manager","qp4sNBphTg9yOk6ia-fBHqXBqzzCnEv99LW2MpKDqLc",1785167452966]