Audit Company Assets by Leveraging the HuduAPI PowerShell Module

Did you know that there's a PowerShell Module for the HuduAPI created by the community? You can find details on the PowerShell Module here: https://github.com/Hudu-Technologies-Inc/HuduAPI

Partners have asked us for a way to audit their companies to determine which companies have little to no assets within them. Attached is an example script for doing just that.

What it does

  • Prompts you for your API Key and URL

  • Generates a CSV file with the following data:

    • Company ID

    • Company Name

    • Number of Assets

    • Number of Passwords

    • Number of Articles

Running the Script

  1. Download the .ps1 file

  2. Run it, that's it!

    1. The script will prompt you for your API key and Hudu URL

      1. Once the script finishes, it will clear your API Key and URL information from your PowerShell session

Considerations

The PowerShell module does require PowerShell 7+ (pwsh.exe) to run properly, so the script will attempt to install/use PowerShell 7 if it can, it will error-out otherwise.

If you have a lot of companies (1000+), it may take a while for the script to run and generate the CSV file, it's likely not stuck!

companyaudit.ps1
2.19KB
2