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:
macaddict89 2019-04-29 10:16:30 -04:00
parent 393c6c9f49
commit 3844e1823f

View file

@ -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)]