none
"Command line option syntax error" trying to install OMS agent with PowerShell RRS feed

  • Question

  • Using the script provided here by Daniel Omeling's, "Install OMS Agent with PowerShell"

    I'm getting the error above while trying to add the Proxy URL, as a test:
    $ArgumentList = '/C:"setup.exe /qn ADD_OPINSIGHTS_WORKSPACE=1 OPINSIGHTS_PROXY_URL=https://proxy.com ' + "OPINSIGHTS_WORKSPACE_ID=$WorkspaceID " + "OPINSIGHTS_WORKSPACE_KEY=$WorkSpaceKey " + 'AcceptEndUserLicenseAgreement=1"'  

    Removing the OPINSIGHTS_PROXY_URL will make the script successfully run.

    I have the same problem trying to add "OPINSIGHTS_WORKSPACE_AZURE_CLOUD_TYPE" parameter.

    Any idea who, what am I missing here? Thanks


    Thursday, October 3, 2019 8:43 PM

All replies

  • Please post issues to the author of the script. We do not support fixing or explaining scripts that you have not written.


    \_(ツ)_/

    Thursday, October 3, 2019 8:51 PM