Comments (3)
You can do this which is what I currently do in my PS script
The variables with _ in them are custom fields but you can put any field type in there
$CustomValues = @{
_snipeit_cpu_2 = $CPUInfo.NumberOfCores
_snipeit_memory_gb_3 = $PhysicalMemory
_snipeit_os_5 = $OSInfo.Caption
serial = $bios.SerialNumber
warranty_months = $warrantyMonths
}
$asset = New-Asset -status_id 2 -model_id $model.id
-name $machine.Name `
-customfields $CustomValues
from snipeitps.
This is very important.
Im stuck here too.
from snipeitps.
I can confirm this works. This should be added to the readme.
from snipeitps.
Related Issues (20)
- Set-SnipeitAsset? HOT 3
- Set-SnipeITAsset Feature Update HOT 2
- Unable to connect via Connect-SnipeitPS HOT 7
- Moved Snipe-IT to https:// and now API doesn't work HOT 4
- Issues with Set-SnipeITAsset HOT 2
- Set-SnipeitConsumable HOT 2
- Password required when making new user HOT 3
- Script stops before for loop is completed. Limit exceeded? HOT 3
- Using v1.10.222 with Snipe-IT v6.0.1 HOT 1
- Unable to access server once moved to https HOT 3
- Will not connect to on-prem non-SSL setup? HOT 1
- API Request throttling HOT 1
- Unable to Connect to SnipeItPS HOT 1
- Connect-SnipeitPS is erroring out HOT 1
- New-SnipeITuser returns 422 HOT 4
- Licence Checkout without specifying the seat id. HOT 3
- Update Status ID on Set-SnipeITAssetOwner HOT 1
- Create Functionality to Create and Modify Fieldsets
- Return MAC Address (custom fieldset) with "Get-SnipeITAsset -status 'Deployed'" HOT 1
- New-SnipeitUser -deleted param
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snipeitps.