Examples/04-Get-StrongAccountInventory.ps1

<#
    Exports Windows and database strong account inventories to CSV. Secret
    values are never included in strong account listings - only metadata.
#>


Get-SIAWindowsStrongAccount -All |
    Select-Object secret_id, secret_name, secret_type |
    Export-Csv -Path './windows-strong-accounts.csv' -NoTypeInformation

Get-SIADatabaseStrongAccount |
    Export-Csv -Path './database-strong-accounts.csv' -NoTypeInformation

Write-Host 'Strong account inventory exported to ./windows-strong-accounts.csv and ./database-strong-accounts.csv'