Skip to main content
Question

Powershell Script to Generate FME Token

  • June 9, 2018
  • 0 replies
  • 16 views

I have a powershell script that uses Invoke-RestMethod to generate an FME token. It's using -UseDefaultCredentials to run the Web call because I don't want to hardcode the user/password information in the -Uri request. I get an exception from the FME web service saying that I haven't provided the user/password information, BUT it still works and retrieves the token using UseDefaultCredentials. Is there a way that those parameters can be made optional for the web request so that I don't get an error?

Thank you,

Susan

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.