examples/Get-ActiveUsers.ps1
|
param( [Parameter()] [ValidateSet('US', 'EU', 'CA', 'UK', 'DE')] [string] $Region = 'US' ) $modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\Module\PSKB4Reporting\PSKB4Reporting.psd1' Import-Module $modulePath -Force Connect-KB4Reporting -ApiToken $env:KB4_REPORTING_API_TOKEN -Region $Region Get-KB4User -Status Active -All -PageSize 500 |