Skip to content

Issue with Set-SnipeITAsset #300

@Christopheric1

Description

@Christopheric1

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
2023-06-06_8-26-47

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.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions