UseDefaultCredentials option is not working powershell 4.0

Welcome Forums General PowerShell Q&A UseDefaultCredentials option is not working powershell 4.0

Viewing 0 reply threads
  • Author
    Posts
    • #241295
      Participant
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      Hi,

      I’m trying to invoke API call with below command but getting unauthorized error 401 in one of the server.  it’s working in another server with same configuration. is there any way to debug why windows not able to use default credentials

      Invoke-RestMethod -uri "http://site" -UseDefaultCredential
Viewing 0 reply threads
  • You must be logged in to reply to this topic.