Skip to content

linn/Asset-Self-Reporting-SnipeIT

 
 

Repository files navigation

Asset Self Reporting SnipeIT

A script to compile an assets information and update SnipeIT inventory system.

This is a script I use in my environment to automatically update all domain assets daily to my SnipeIT Inventory System and manage certain aspects of the assets based on information the script finds in the inventory system.

Sensitive information and some functions have been removed which may cause some errors in a few functions. You will need to modify this for you environment.

Releases are managed by incrementing the $ScriptVersion value as part of your pull request. This will trigger the pipeline to create a new release zip file for subsequent deployment.

Recent Updates

Script Version Tracking

The script now reports its own version number to Snipe-IT, allowing you to track which version of the asset collection script last reported data for each asset. This helps with troubleshooting and ensuring all systems are running the latest version.

New Information Collected:

  • Script Version - Version of the asset collection script that last reported

See SNIPEIT_FIELDS_REFERENCE.md for instructions on adding the required custom field (Field 90).

Secure Boot and BIOS Information Collection

The script now collects Secure Boot status, certificate expiry information, and BIOS release dates to help identify systems affected by the Microsoft Secure Boot certificate expiration issue.

New Information Collected:

  • Secure Boot Status - Whether Secure Boot is enabled, disabled, or not supported
  • Secure Boot Certificate Expiry - Expiration dates of certificates with status indicators (EXPIRED, EXPIRING SOON, Valid)
  • BIOS Release Date - When the current BIOS firmware was released

See SECURE_BOOT_SETUP.md for detailed setup instructions and required Snipe-IT custom fields.

Customization

Place config.ps1 in the same directory as this script, with the following parameters completed.

$snipeiturl = "https://your.snipeit.url" $snipeitapi = "your.snipeit.apikey"

About

A script to compile an assets information and update SnipeIT inventory system.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PowerShell 100.0%