mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-16 03:05:48 +00:00
Update Set-Asset.ps1
Fields are required. If name is not set the name in blank. Staus and Model id will return error that they are required.
This commit is contained in:
parent
393c6c9f49
commit
3844e1823f
1 changed files with 3 additions and 0 deletions
|
|
@ -44,10 +44,13 @@ function Set-Asset()
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[int]$id,
|
[int]$id,
|
||||||
|
|
||||||
|
[parameter(mandatory = $true)]
|
||||||
[string]$Name,
|
[string]$Name,
|
||||||
|
|
||||||
|
[parameter(mandatory = $true)]
|
||||||
[string]$Status_id,
|
[string]$Status_id,
|
||||||
|
|
||||||
|
[parameter(mandatory = $true)]
|
||||||
[string]$Model_id,
|
[string]$Model_id,
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue