### Install PSWarranty Module Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Installs the PSWarranty module from the PowerShell Gallery. This is the primary method for obtaining the module. ```powershell install-module PSWarranty ``` -------------------------------- ### Update BluetraitIO Devices Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Executes an update of all devices in BluetraitIO by syncing warranty data from the API. Requires API key and URL. ```powershell update-warrantyinfo -BluetraitIO -BTAPIKEY "your_api_key" -BTAPIURL "https://example.bluetrait.io/api/" -SyncWithSource -OverwriteWarranty ``` -------------------------------- ### Update All Devices in Autotask Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Executes a full update of all devices in Autotask, syncing warranty data from APIs and overwriting existing information if the new data is valid. Use -GenerateReports to create HTML reports instead. ```powershell $Creds = get-credential update-warrantyinfo -Autotask -AutotaskCredentials $creds -AutotaskAPIKey 'APIINTEGRATIONKEY' -SyncWithSource -OverwriteWarranty ``` -------------------------------- ### Update NinjaOne Devices Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Updates devices in NinjaOne by syncing warranty data. Requires a Global Custom Field for expiry dates and Ninja API credentials. Excludes Apple devices by default. ```powershell update-warrantyinfo -Ninja -NinjaClientID "YourAPIClientID" -NinjaSecret "YourAPISecret" -NinjaURL "https://eu.ninjarmm.com" -NinjaFieldName "warrantyExpiry" -SyncWithSource -OverwriteWarranty -ExcludeApple ``` -------------------------------- ### Generate Autotask HTML Reports Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Generates HTML reports for devices in Autotask. The reports are saved to C:\Temp by default, but a custom location can be specified using -ReportsLocation. ```powershell $Creds = get-credential update-warrantyinfo -Autotask -AutotaskCredentials $creds -AutotaskAPIKey 'APIINTEGRATIONKEY' -GenerateReports ``` ```powershell update-warrantyinfo -Autotask -AutotaskCredentials $creds -AutotaskAPIKey 'APIINTEGRATIONKEY' -GenerateReports -ReportsLocation "C:\OtherFolder" ``` -------------------------------- ### Update Hudu Devices Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Updates devices in Hudu by syncing warranty data. Requires configuring an asset layout with a date field for expirations or a string field for non-expiring Apple devices. ```powershell update-warrantyinfo -Hudu -HuduAPIKey "YourAPIKey" -HuduBaseURL "YourHuduDomain" -HuduDeviceAssetLayout "Desktops / Laptops" -HuduWarrantyField "Warranty Expiry" -SyncWithSource -OverwriteWarranty -ExcludeApple ``` -------------------------------- ### Update Halo PSA Devices Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md Updates devices in Halo PSA by syncing warranty data. Requires Halo API credentials and the specific field name used for serial numbers in Halo. ```powershell update-warrantyinfo -Halo -HaloClientID "YourAPIAppClientID" -HaloClientSecret "YourHaloAPIAppSecret" -HaloURL "YourHaloURL" -HaloSerialField "Halo Serial Field Name" -SyncWithSource -OverwriteWarranty -ExcludeApple ``` -------------------------------- ### Exclude Apple Devices from Warranty Update Source: https://github.com/kelvintegelaar/powershellwarrantyreports/blob/master/README.md This switch can be added to any update command to exclude Apple devices from the warranty update process. This is recommended due to recent changes in Apple's serial number generation affecting warranty expiry accuracy. ```powershell update-warrantyinfo -ExcludeApple ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.