Hello,
I am attempting to create a script that creates/updates a policy and then uploads a file to the policy. So far, so good, but….
While referencing these scripts, in order:
Automox Console API Documentation | Create a New Policy
Automox Console API Documentation | Retrieve a Specific Policy
Automox Console API Docs | Upload Installation File,
and using Powershell (version 5.1.19041.1320) I am bumping into Parameter issues where...the last line of Upload Installation FIle.:
$response = (Invoke-WebRequest -Method Post -Uri $url -Headers $headers -Form $form).Content
Generates this error code:
Invoke-WebRequest : A paramenter cannot be found that matches parameter name ‘Form’
I’m attempting for use the ‘Try It’ selection, the file uploads with no issue. So I am thinking there’s an issue with the command syntax itself. Any help?