skalg / Snipe-IT-PSAgent

Snipe-IT Asset Agent in Powershell
GNU General Public License v3.0
8 stars 1 forks source link

Adding new PC to assets #1

Open nomish00 opened 2 days ago

nomish00 commented 2 days ago

Hi, I had some problems adding new PC into assets to my snipe-it server. After configuration and starting agent some of the fields appears in the db but only as a custom fields, models, manufactures etc. Is there any possibility to add complete asset?

skalg commented 1 day ago

Hello, Yes it's supposed to add the asset completely. If it's only creating the model but not the asset, it may have something to do with the $status_id variable. Be sure to assign a valid status id, you can test them with : http://snipeiturl/hardware/?status_id=5

nomish00 commented 1 day ago

Status id is correct. For now it only fill out asset model in Settings>Assets Models. After starting agent I've got only "New Asset ID:" displayed but nothing more. Is it necessary to create additional client user in snipeit? I have clean install of latest version of snipeit.

skalg commented 14 hours ago

You'll have to adjust the $dbFields variables to match the one from your models. The $dbFields are the custom fields names associated to your computer model. https://snipe-it.readme.io/reference/updating-custom-fields