Skip to main content
Question

Powershell Script to Generate FME Token


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

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings