cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5023
Views
0
Helpful
5
Replies

Using Powershell to Access the Duo Admin API

Corey_Crossman
Level 1
Level 1

Has anyone had any luck getting powershell to work. with the API. The documenation is horrid and i don’t want to go through the hassle of the module that i found on github. If anyone has any scripts to connect to it with powershell, that would be awesmoe if you can share.

Thanks!

5 Replies 5

kabuchan15
Level 1
Level 1

now Have you got the solution?

kabuchan15
Level 1
Level 1

how do you call API with powershell?

lkeyes1
Level 1
Level 1

May be old news by this point…however, after futzing around for a couple hours trying to get Powershell Invoke-RestMethod to work… (that encrypting passwod thing is a bear) I went for the GitHub module, and had it up and running in about 10 minutes.

Same here…
mbegan (Matt Egan) (github.com)
That module seems to be the only thing that works.

Michael_Maher
Level 1
Level 1

Hi,

If you still need it, here is some sample code to work with authenticating to the REST API in PowerShell.

I agree that the documentation is lacking.

Regards,

Michael

Quick Links