I have been trying to set the Snipe-IT Asset purchase_date so that I can properly define when these machines will be EOL. I have that set for each model at 72 months and it used to work where I could set the purchase_date and the EOL date would automatically adjust.
Your Environment
SnipeitPS Module version used: 1.10.227
Operating System and PowerShell version: Windows 10 22H2 - Powershell v5.1.19041.2673
Snipe It version: v6.1.1-pre - build 10653
Expected Behavior
Set-SnipeITAsset -id $id -purchase_date $newpurchasedate
Should give me an updated EOL Date, but I get the old EOL date
If I go into and Edit the item and clear the EOL date > Save and then Edit it again, it will show the correct EOL date and then I can save and it sticks.
That has been the only way I can make that piece work.
I have been trying to set the Snipe-IT Asset purchase_date so that I can properly define when these machines will be EOL. I have that set for each model at 72 months and it used to work where I could set the purchase_date and the EOL date would automatically adjust.
Your Environment
Expected Behavior
Set-SnipeITAsset -id $id -purchase_date $newpurchasedate
Should give me an updated EOL Date, but I get the old EOL dateIf I go into and Edit the item and clear the EOL date > Save and then Edit it again, it will show the correct EOL date and then I can save and it sticks.
That has been the only way I can make that piece work.
Thanks!