PSDuo

https://github.com/jyates2006/PSDuo

PSDuo - A Duo module for PowerShell

I have started creating a PowerShell module for Duo administration. I want to add full functionality to it, and follow the proper verb-noun format. 

Current Features

Duo Global Functions

Duo User Functions

Duo Group Functions

Duo Phone Functions


Duo Device Functions

Duo Token Functions


Duo Integration Functions

Duo Administrator Functions

PSDuo Examples

To install

Install-Module -Name PowerDuo

Start by creating a config

New-DUOConfig -IntergrationKey SDFJASKLDFJASLKDJ -SecretKey ASDKLFJSMNVCIWJRFKSDMSMVNFNSKLF -apiHost api-###XXX###.duosecurity.com

Optionally save the config for use with the same user later on

New-DUOConfig -IntergrationKey SDFJASKLDFJASLKDJ -SecretKey ASDKLFJSMNVCIWJRFKSDMSMVNFNSKLF -apiHost api-###XXX###.duosecurity.com -SaveConfig -Path C:\Duo\DuoConfig.clixml

You can load a saved config. Useful for automation scripting.

Import-DuoConfig -Path C:\Duo\DuoConfig.clixml

The Duo API doesn't support pulling the Directories and their names, so I have added the option to add it to the config for later use.

Add-DuoDirectoryKeys -KeyName DuoDirectory -KeyValue 7908DDFD890