Forum Discussion
cgaines22_14499
Nimbostratus
This Works [example](Invoke-WebRequest -Method GET -URI 'https://10.5.183.4/mgmt/tm/ltm/pool/?$filter=partition eq Certlab' -Credential $mycreds)
Brad_Parker
Mar 23, 2016Cirrus
For what its worth I would recommend using Invoke-RestMethod rather than Invoke-WebRequest. As for your question about getting a 401. You will need to authenticate with a get request before you send a PUT or POST. I'm not sure why this is the case, but it works.