Mike Smith

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mike Smith

  • Rank
    Member
  1. Just to close the loop on this, the Invoke-RestMethod with the correct contenttype and outfile did the trick. WebRequest still left me with an unexecutable file. Thanks Mike!
  2. I've been working on a Powershell method to download a collector. I'm to the point where I've got content, but no matter how I write the file ($content > "lm.exe", $content | Out-File "lm.exe" (tried all the encoding options), or $content | Set-Content lm.exe) the resulting file will not execute. https://XXXX.logicmonitor.com/santaba/rest/setting/collectors/1005/installers/Win64?collectorSize=small $i = Get-LMCollectorInstaller -Account "XXXX" -CollectorId 1005 -CollectorSize small -Platform Win64 -Verbose VERBOSE: Verb:GET Epoch:1578077331506 Data: resourcePath:/setting/