From cbb9e13a459e2a4d6fb9b921e077d6d857a8c5f1 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 10:37:15 +0300 Subject: [PATCH 1/8] set model_number and min_amt --- SnipeitPS/Public/New-SnipeitAccessory.ps1 | 9 ++++-- SnipeitPS/Public/Set-SnipeitAccessory.ps1 | 6 +++- docs/New-SnipeitAccessory.md | 35 ++++++++++++++++------- docs/Set-SnipeitAccessory.md | 35 ++++++++++++++++------- 4 files changed, 62 insertions(+), 23 deletions(-) diff --git a/SnipeitPS/Public/New-SnipeitAccessory.ps1 b/SnipeitPS/Public/New-SnipeitAccessory.ps1 index df4663c..6b97a92 100644 --- a/SnipeitPS/Public/New-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/New-SnipeitAccessory.ps1 @@ -23,6 +23,9 @@ ID Number of the company the accessory is assigned to .PARAMETER manufacturer_id ID number of the manufacturer for this accessory. +.PARAMETER model_number +Model number for this accessory + .PARAMETER order_number Order number for this accessory. @@ -47,7 +50,7 @@ ID number of the supplier for this accessory .PARAMETER location_id ID number of the location the accessory is assigned to -.PARAMETER min_qty +.PARAMETER min_amt Min quantity of the accessory before alert is triggered .PARAMETER url @@ -86,11 +89,13 @@ function New-SnipeitAccessory() { [string]$order_number, + [string]$model_number, + [float]$purchase_cost, [datetime]$purchase_date, - [int]$min_qty, + [int]$min_amt, [ValidateRange(1, [int]::MaxValue)] [int]$supplier_id, diff --git a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 index 430176c..6fd29a9 100644 --- a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 @@ -26,6 +26,9 @@ ID Number of the company the accessory is assigned to .PARAMETER manufacturer_id ID number of the manufacturer for this accessory. +.PARAMETER model_number +Model number for this accessory + .PARAMETER order_number Order number for this accessory. @@ -85,6 +88,7 @@ function Set-SnipeitAccessory() { [Nullable[System.Int32]]$manufacturer_id, + [string]$model_number, [string]$order_number, @@ -120,7 +124,7 @@ function Set-SnipeitAccessory() { foreach($accessory_id in $id){ $Parameters = @{ Uri = "$url/api/v1/accessories/$accessory_id" - Method = 'Patch' + Method = 'Put' Body = $Body Token = $apiKey } diff --git a/docs/New-SnipeitAccessory.md b/docs/New-SnipeitAccessory.md index a9e27c1..de15744 100644 --- a/docs/New-SnipeitAccessory.md +++ b/docs/New-SnipeitAccessory.md @@ -14,8 +14,8 @@ Creates new accessory on Snipe-It system ``` New-SnipeitAccessory [-name] [-qty] [-category_id] [[-company_id] ] - [[-manufacturer_id] ] [[-order_number] ] [[-purchase_cost] ] - [[-purchase_date] ] [[-min_qty] ] [[-supplier_id] ] [[-location_id] ] + [[-manufacturer_id] ] [[-order_number] ] [[-model_number] ] [[-purchase_cost] ] + [[-purchase_date] ] [[-min_amt] ] [[-supplier_id] ] [[-location_id] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -40,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 13 +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -85,7 +85,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 11 +Position: 12 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -106,7 +106,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_qty +### -min_amt Min quantity of the accessory before alert is triggered ```yaml @@ -115,12 +115,27 @@ Parameter Sets: (All) Aliases: Required: False -Position: 9 +Position: 10 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` +### -model_number +Model number for this accessory + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -name Accessory name @@ -160,7 +175,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 7 +Position: 8 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -175,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -205,7 +220,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 10 +Position: 11 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -220,7 +235,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 12 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index 1f9ad25..9adeae2 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -14,9 +14,9 @@ Updates accessory on Snipe-It system ``` Set-SnipeitAccessory [-id] [[-name] ] [[-qty] ] [[-category_id] ] - [[-company_id] ] [[-manufacturer_id] ] [[-order_number] ] [[-purchase_cost] ] - [[-purchase_date] ] [[-min_amt] ] [[-supplier_id] ] [-url] [-apiKey] - [-WhatIf] [-Confirm] [] + [[-company_id] ] [[-manufacturer_id] ] [[-model_number] ] [[-order_number] ] + [[-purchase_cost] ] [[-purchase_date] ] [[-min_amt] ] [[-supplier_id] ] + [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -40,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 13 +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -115,7 +115,22 @@ Parameter Sets: (All) Aliases: Required: False -Position: 10 +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number for this accessory + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -145,7 +160,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 7 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -160,7 +175,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 9 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -175,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 9 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -205,7 +220,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 11 +Position: 12 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -220,7 +235,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 12 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False From baabd3eaa82f50465d8597a23d30d30842997cca Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 10:40:54 +0300 Subject: [PATCH 2/8] Added example how to checkin licenseseats --- SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 index 9dedbae..938da79 100644 --- a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 @@ -23,13 +23,17 @@ User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -assigned_id 3 -Verbose + Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -assigned_id 3 Checkout licence to user id 3 .EXAMPLE - Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id 3 -Verbose + Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id 3 Checkout licence to asset id 3 + .EXAMPLE + Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id $null -assigned_id 3 + Checkin licence seat id 1 of licence id 1 + #> function Set-SnipeitLicenseSeat() { From c7c349ca99077353b41e5387f97d7af086a4f224 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 10:42:34 +0300 Subject: [PATCH 3/8] Added example how to checkin licenseseats --- SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 index 938da79..a5dcbbf 100644 --- a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 @@ -31,7 +31,7 @@ Checkout licence to asset id 3 .EXAMPLE - Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id $null -assigned_id 3 + Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id $null -assigned_id $null Checkin licence seat id 1 of licence id 1 #> From 64fa3799fe5803913bd4aa236a0660381d8aa0d8 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 14:36:33 +0300 Subject: [PATCH 4/8] get assigned items with by user is or asset id --- SnipeitPS/Public/Get-SnipeitAccessory.ps1 | 20 +- SnipeitPS/Public/Get-SnipeitAsset.ps1 | 52 ++- SnipeitPS/Public/Get-SnipeitLicense.ps1 | 22 +- SnipeitPS/Public/Get-SnipeitUser.ps1 | 20 +- docs/Get-SnipeitAccessory.md | 204 ++++++----- docs/Get-SnipeitAccessoryOwner.md | 42 +-- docs/Get-SnipeitActivity.md | 126 +++---- docs/Get-SnipeitAsset.md | 398 +++++++++++++--------- docs/Get-SnipeitAssetMaintenance.md | 128 +++---- docs/Get-SnipeitCategory.md | 74 ++-- docs/Get-SnipeitCompany.md | 74 ++-- docs/Get-SnipeitComponent.md | 144 ++++---- docs/Get-SnipeitConsumable.md | 176 +++++----- docs/Get-SnipeitCustomField.md | 30 +- docs/Get-SnipeitDepartment.md | 74 ++-- docs/Get-SnipeitFieldset.md | 30 +- docs/Get-SnipeitLicense.md | 300 +++++++++------- docs/Get-SnipeitLicenseSeat.md | 70 ++-- docs/Get-SnipeitLocation.md | 74 ++-- docs/Get-SnipeitManufacturer.md | 76 ++--- docs/Get-SnipeitModel.md | 74 ++-- docs/Get-SnipeitStatus.md | 74 ++-- docs/Get-SnipeitSupplier.md | 76 ++--- docs/Get-SnipeitUser.md | 160 +++++---- docs/New-SnipeitAccessory.md | 126 +++---- docs/New-SnipeitAsset.md | 218 ++++++------ docs/New-SnipeitAssetMaintenance.md | 158 ++++----- docs/New-SnipeitAudit.md | 48 +-- docs/New-SnipeitCategory.md | 88 ++--- docs/New-SnipeitCompany.md | 42 +-- docs/New-SnipeitComponent.md | 108 +++--- docs/New-SnipeitConsumable.md | 342 +++++++++---------- docs/New-SnipeitCustomField.md | 144 ++++---- docs/New-SnipeitDepartment.md | 48 +-- docs/New-SnipeitLicense.md | 78 ++--- docs/New-SnipeitLocation.md | 164 ++++----- docs/New-SnipeitManufacturer.md | 42 +-- docs/New-SnipeitModel.md | 108 +++--- docs/New-SnipeitUser.md | 344 +++++++++---------- docs/Remove-SnipeitAccessory.md | 42 +-- docs/Remove-SnipeitAsset.md | 42 +-- docs/Remove-SnipeitAssetMaintenance.md | 42 +-- docs/Remove-SnipeitCategory.md | 42 +-- docs/Remove-SnipeitCompany.md | 42 +-- docs/Remove-SnipeitComponent.md | 42 +-- docs/Remove-SnipeitConsumable.md | 42 +-- docs/Remove-SnipeitCustomField.md | 42 +-- docs/Remove-SnipeitDepartment.md | 42 +-- docs/Remove-SnipeitLicense.md | 42 +-- docs/Remove-SnipeitLocation.md | 42 +-- docs/Remove-SnipeitManufacturer.md | 42 +-- docs/Remove-SnipeitModel.md | 42 +-- docs/Remove-SnipeitUser.md | 42 +-- docs/Reset-SnipeitAccessoryOwner.md | 42 +-- docs/Reset-SnipeitAssetOwner.md | 72 ++-- docs/Set-SnipeitAccessory.md | 118 +++---- docs/Set-SnipeitAccessoryOwner.md | 52 +-- docs/Set-SnipeitAsset.md | 224 ++++++------ docs/Set-SnipeitAssetOwner.md | 112 +++--- docs/Set-SnipeitCategory.md | 168 ++++----- docs/Set-SnipeitCompany.md | 42 +-- docs/Set-SnipeitComponent.md | 142 ++++---- docs/Set-SnipeitConsumable.md | 300 ++++++++-------- docs/Set-SnipeitCustomField.md | 224 ++++++------ docs/Set-SnipeitDepartment.md | 80 ++--- docs/Set-SnipeitInfo.md | 30 +- docs/Set-SnipeitLicense.md | 110 +++--- docs/Set-SnipeitLicenseSeat.md | 142 ++++---- docs/Set-SnipeitLocation.md | 170 ++++----- docs/Set-SnipeitModel.md | 128 +++---- docs/Set-SnipeitStatus.md | 114 +++---- docs/Set-SnipeitUser.md | 326 +++++++++--------- docs/SnipeitPS.md | 141 ++++---- docs/Update-SnipeitAlias.md | 30 +- 74 files changed, 4086 insertions(+), 3845 deletions(-) diff --git a/SnipeitPS/Public/Get-SnipeitAccessory.ps1 b/SnipeitPS/Public/Get-SnipeitAccessory.ps1 index 88d6429..1a84a71 100644 --- a/SnipeitPS/Public/Get-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/Get-SnipeitAccessory.ps1 @@ -32,6 +32,10 @@ Get-SnipeitAccessory -search Keyboard .EXAMPLE Get-SnipeitAccessory -id 1 +.EXAMPLE +Get-SnipeitAccessory -user_id 1 +Get accessories checked out to user ID 1 + #> function Get-SnipeitAccessory() { @@ -43,6 +47,9 @@ function Get-SnipeitAccessory() { [parameter(ParameterSetName='Get by ID')] [int]$id, + [parameter(ParameterSetName='Accessories checked out to user id')] + [int]$user_id, + [parameter(ParameterSetName='Search')] [int]$company_id, @@ -69,6 +76,7 @@ function Get-SnipeitAccessory() { [int]$offset, [parameter(ParameterSetName='Search')] + [parameter(ParameterSetName='Accessories checked out to user id')] [switch]$all = $false, [parameter(mandatory = $true)] @@ -79,23 +87,21 @@ function Get-SnipeitAccessory() { ) Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name - if ($id -and $search){ - throw "Please specify only one of -id or -search parameter" + switch($PsCmdlet.ParameterSetName) { + 'Search' {$apiurl = "$url/api/v1/accessories"} + 'Get by ID' {$apiurl= "$url/api/v1/accessories/$id"} + 'Accessories checked out to user id' {$apiurl = "$url/api/v1/users/$user_id/accessories"} } $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters $Parameters = @{ - Uri = "$url/api/v1/accessories" + Uri = $apiurl Method = 'Get' GetParameters = $SearchParameter Token = $apiKey } - if($id){ - $Parameters.Uri ="$url/api/v1/accessories/$id" - } - if ($all) { $offstart = $(if($offset){$offset} Else {0}) $callargs = $SearchParameter diff --git a/SnipeitPS/Public/Get-SnipeitAsset.ps1 b/SnipeitPS/Public/Get-SnipeitAsset.ps1 index 6f1e989..fe3c8f6 100644 --- a/SnipeitPS/Public/Get-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/Get-SnipeitAsset.ps1 @@ -66,16 +66,42 @@ URL of Snipeit system, can be set using Set-SnipeitInfo command Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeitAsset -url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -all -url "https://assets.example.com"-token "token..." +Returens all assets .EXAMPLE -Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -search "myMachine" +Search for specific asset .EXAMPLE -Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -id 3 +Get asset with id number 3 .EXAMPLE -Get-SnipeitAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -asset_tag snipe0003 +Get asset with asset tag snipe00033 + +.EXAMPLE +Get-SnipeitAsset -serial 1234 +Get asset with searial number 1234 + +.EXAMPLE +Get-SnipeitAsser -audit_due +Get Assets due auditing soon + +.EXAMPLE +Get-SnipeitAsser -audit_overdue +Get Assets overdue for auditing + +.EXAMPLE +Get-AnipeitAsset -user_id 4 +Get Assets checked out to user id 4 + +.EXAMPLE +Get-SnipeitAsset -component_id 5 +Get Assets with component id 5 + + #> function Get-SnipeitAsset() { @@ -100,6 +126,12 @@ function Get-SnipeitAsset() { [parameter(ParameterSetName='Assets overdue for auditing')] [switch]$audit_overdue, + [parameter(ParameterSetName='Assets checked out to user id')] + [int]$user_id, + + [parameter(ParameterSetName='Assets with component id')] + [int]$component_id, + [parameter(ParameterSetName='Search')] [string]$order_number, @@ -133,28 +165,38 @@ function Get-SnipeitAsset() { [parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Assets due auditing soon')] [parameter(ParameterSetName='Assets overdue for auditing')] + [parameter(ParameterSetName='Assets checked out to user id')] + [parameter(ParameterSetName='Assets with component id')] [ValidateSet('id','created_at','asset_tag','serial','order_number','model_id','category_id','manufacturer_id','company_id','location_id','status','status_id')] [string]$sort, [parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Assets due auditing soon')] [parameter(ParameterSetName='Assets overdue for auditing')] + [parameter(ParameterSetName='Assets checked out to user id')] + [parameter(ParameterSetName='Assets with component id')] [ValidateSet("asc", "desc")] [string]$order, [parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Assets due auditing soon')] [parameter(ParameterSetName='Assets overdue for auditing')] + [parameter(ParameterSetName='Assets checked out to user id')] + [parameter(ParameterSetName='Assets with component id')] [int]$limit = 50, [parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Assets due auditing soon')] [parameter(ParameterSetName='Assets overdue for auditing')] + [parameter(ParameterSetName='Assets checked out to user id')] + [parameter(ParameterSetName='Assets with component id')] [int]$offset, [parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Assets due auditing soon')] [parameter(ParameterSetName='Assets overdue for auditing')] + [parameter(ParameterSetName='Assets checked out to user id')] + [parameter(ParameterSetName='Assets with component id')] [switch]$all = $false, [parameter(mandatory = $true)] @@ -175,6 +217,8 @@ function Get-SnipeitAsset() { 'Get with serial' { $apiurl= "$url/api/v1/hardware/byserial/$serial"} 'Assets due auditing soon' {$apiurl = "$url/api/v1/hardware/audit/due"} 'Assets overdue for auditing' {$apiurl = "$url/api/v1/hardware/audit/overdue"} + 'Assets checked out to user id'{$apiurl = "$url/api/v1/users/$user_id/assets"} + 'Assets with component id' {$apiurl = "$url/api/v1/components/$component_id/assets"} } diff --git a/SnipeitPS/Public/Get-SnipeitLicense.ps1 b/SnipeitPS/Public/Get-SnipeitLicense.ps1 index 90a9b31..ba4a4d9 100644 --- a/SnipeitPS/Public/Get-SnipeitLicense.ps1 +++ b/SnipeitPS/Public/Get-SnipeitLicense.ps1 @@ -41,6 +41,12 @@ function Get-SnipeitLicense() { [parameter(ParameterSetName='Get with ID')] [int]$id, + [parameter(ParameterSetName='Get licenses checked out to user ID')] + [int]$user_id, + + [parameter(ParameterSetName='Get licenses checked out to asset ID')] + [int]$asset_id, + [parameter(ParameterSetName='Search')] [string]$name, @@ -87,7 +93,8 @@ function Get-SnipeitLicense() { [parameter(ParameterSetName='Search')] [int]$offset, - + [parameter(ParameterSetName='Get licenses checked out to user ID')] + [parameter(ParameterSetName='Get licenses checked out to asset ID')] [parameter(ParameterSetName='Search')] [switch]$all = $false, @@ -102,14 +109,11 @@ function Get-SnipeitLicense() { $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters - $apiurl = "$url/api/v1/licenses" - - if ($search -and $id ) { - Throw "[$($MyInvocation.MyCommand.Name)] Please specify only -search or -id parameter , not both " - } - - if ($id) { - $apiurl= "$url/api/v1/licenses/$id" + switch($PsCmdlet.ParameterSetName) { + 'Search' {$apiurl = "$url/api/v1/licenses"} + 'Get with ID' {$apiurl= "$url/api/v1/licenses/$id"} + 'Get licenses checked out to user ID' {$apiurl= "$url/api/v1/users/$user_id/licenses"} + 'Get licenses checked out to asset ID' {$apiurl= "$url/api/v1/hardware/$asset_id/licenses"} } $Parameters = @{ diff --git a/SnipeitPS/Public/Get-SnipeitUser.ps1 b/SnipeitPS/Public/Get-SnipeitUser.ps1 index 61e6e37..2d3381e 100644 --- a/SnipeitPS/Public/Get-SnipeitUser.ps1 +++ b/SnipeitPS/Public/Get-SnipeitUser.ps1 @@ -40,6 +40,10 @@ Get-SnipeitUser -username someuser .EXAMPLE Get-SnipeitUser -email user@somedomain.com + +.EXAMPLE +Get-SnipeitUser -accessory_id 3 +Get users with accessory id 3 has been checked out to #> function Get-SnipeitUser() { @@ -51,6 +55,9 @@ function Get-SnipeitUser() { [parameter(ParameterSetName='Get with ID')] [string]$id, + [parameter(ParameterSetName='Get users a specific accessory id has been checked out to')] + [string]$accessory_id, + [parameter(ParameterSetName='Search')] [int]$company_id, @@ -80,6 +87,7 @@ function Get-SnipeitUser() { [int]$offset, [parameter(ParameterSetName='Search')] + [parameter(ParameterSetName='Get users a specific accessory id has been checked out to')] [switch]$all = $false, [parameter(mandatory = $true)] @@ -92,16 +100,12 @@ function Get-SnipeitUser() { Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters - - $apiurl = "$url/api/v1/users" - - if ($search -and $id ) { - Throw "[$($MyInvocation.MyCommand.Name)] Please specify only -search or -id parameter , not both " + switch ($PsCmdlet.ParameterSetName) { + 'Search' { $apiurl = "$url/api/v1/users"} + 'Get with id' {$apiurl= "$url/api/v1/users/$id"} + 'Get users a specific accessory id has been checked out to' {$apiurl= "$url/api/v1/accessories/$accessory_id/checkedout"} } - if ($id) { - $apiurl= "$url/api/v1/users/$id" - } $Parameters = @{ Uri = $apiurl Method = 'Get' diff --git a/docs/Get-SnipeitAccessory.md b/docs/Get-SnipeitAccessory.md index 366aecc..dcf68d4 100644 --- a/docs/Get-SnipeitAccessory.md +++ b/docs/Get-SnipeitAccessory.md @@ -24,6 +24,11 @@ Get-SnipeitAccessory [-search ] [-company_id ] [-category_id ] -url -apiKey [] ``` +### Accessories checked out to user id +``` +Get-SnipeitAccessory [-user_id ] [-all] -url -apiKey [] +``` + ## DESCRIPTION Gets a list of Snipe-it Accessories @@ -39,44 +44,50 @@ Get-SnipeitAccessory -search Keyboard Get-SnipeitAccessory -id 1 ``` +### EXAMPLE 3 +``` +Get-SnipeitAccessory -user_id 1 +Get accessories checked out to user ID 1 +``` + ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Accessory data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -category_id -{{ Fill category_id Description }} +### -id +A id of specific Accessory ```yaml Type: Int32 -Parameter Sets: Search +Parameter Sets: Get by ID +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -user_id +{{ Fill user_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Accessories checked out to user id Aliases: Required: False @@ -101,12 +112,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -A id of specific Accessory +### -category_id +{{ Fill category_id Description }} ```yaml Type: Int32 -Parameter Sets: Get by ID +Parameter Sets: Search Aliases: Required: False @@ -116,6 +127,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -manufacturer_id +{{ Fill manufacturer_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -supplier_id +{{ Fill supplier_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -sort +{{ Fill sort Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Created_at +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -133,21 +204,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -{{ Fill manufacturer_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -offset Result offset to use @@ -163,62 +219,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String -Parameter Sets: Search +Type: SwitchParameter +Parameter Sets: Search, Accessories checked out to user id Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the Accessory data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -sort -{{ Fill sort Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Created_at -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -supplier_id -{{ Fill supplier_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -238,6 +249,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitAccessoryOwner.md b/docs/Get-SnipeitAccessoryOwner.md index 914d9ea..c40aa27 100644 --- a/docs/Get-SnipeitAccessoryOwner.md +++ b/docs/Get-SnipeitAccessoryOwner.md @@ -29,21 +29,6 @@ Get-SnipeitAccessoryOwner -id 1 ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For accessory to list @@ -74,16 +59,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,6 +90,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitActivity.md b/docs/Get-SnipeitActivity.md index 8e656b3..9e05221 100644 --- a/docs/Get-SnipeitActivity.md +++ b/docs/Get-SnipeitActivity.md @@ -35,9 +35,8 @@ Get-SnipeitAccessory -id 1 ## PARAMETERS -### -action_type -Type of action. -One from following list "add seats", "checkin from", 'checkout' or 'update' +### -search +A text string to search the Activity history ```yaml Type: String @@ -45,37 +44,54 @@ Parameter Sets: (All) Aliases: Required: False -Position: 6 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -target_type +Type of target. +One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 10 +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -target_id +Needed if target_type is specified + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -item_type +Type of target. +One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -96,9 +112,9 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -item_type -Type of target. -One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' +### -action_type +Type of action. +One from following list "add seats", "checkin from", 'checkout' or 'update' ```yaml Type: String @@ -106,7 +122,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 4 +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -142,48 +158,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -search -A text string to search the Activity history +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -target_id -Needed if target_type is specified - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -target_type -Type of target. -One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None +Position: Named +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -203,6 +188,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 10 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitAsset.md b/docs/Get-SnipeitAsset.md index 66e3724..0cd774b 100644 --- a/docs/Get-SnipeitAsset.md +++ b/docs/Get-SnipeitAsset.md @@ -47,6 +47,18 @@ Get-SnipeitAsset [-audit_overdue] [-sort ] [-order ] [-limit -apiKey [] ``` +### Assets checked out to user id +``` +Get-SnipeitAsset [-user_id ] [-sort ] [-order ] [-limit ] [-offset ] + [-all] -url -apiKey [] +``` + +### Assets with component id +``` +Get-SnipeitAsset [-component_id ] [-sort ] [-order ] [-limit ] [-offset ] + [-all] -url -apiKey [] +``` + ## DESCRIPTION {{ Fill in the Description }} @@ -54,52 +66,86 @@ Get-SnipeitAsset [-audit_overdue] [-sort ] [-order ] [-limit ] [-name ] [-company_id ] [-p Get-SnipeitLicense [-id ] -url -apiKey [] ``` +### Get licenses checked out to user ID +``` +Get-SnipeitLicense [-user_id ] [-all] -url -apiKey [] +``` + +### Get licenses checked out to asset ID +``` +Get-SnipeitLicense [-asset_id ] [-all] -url -apiKey [] +``` + ## DESCRIPTION {{ Fill in the Description }} @@ -43,81 +53,21 @@ Get-SnipeitLicense -id 1 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -search +A text string to search the Licenses data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -category_id -{{ Fill category_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -{{ Fill company_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -depreciation_id -{{ Fill depreciation_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id A id of specific License @@ -133,59 +83,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -license_email -{{ Fill license_email Description }} - -```yaml -Type: MailAddress -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -license_name -{{ Fill license_name Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -limit -Specify the number of results you wish to return. -Defaults to 50. -Defines batch size for -all +### -user_id +{{ Fill user_id Description }} ```yaml Type: Int32 -Parameter Sets: Search +Parameter Sets: Get licenses checked out to user ID Aliases: Required: False Position: Named -Default value: 50 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -{{ Fill manufacturer_id Description }} +### -asset_id +{{ Fill asset_id Description }} ```yaml Type: Int32 -Parameter Sets: Search +Parameter Sets: Get licenses checked out to asset ID Aliases: Required: False @@ -210,8 +128,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -offset -Offset to use +### -company_id +{{ Fill company_id Description }} ```yaml Type: Int32 @@ -225,23 +143,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order_number -{{ Fill order_number Description }} +### -product_key +{{ Fill product_key Description }} ```yaml Type: String @@ -255,8 +158,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -product_key -{{ Fill product_key Description }} +### -order_number +{{ Fill order_number Description }} ```yaml Type: String @@ -285,8 +188,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -search -A text string to search the Licenses data +### -license_name +{{ Fill license_name Description }} ```yaml Type: String @@ -300,17 +203,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -sort -{{ Fill sort Description }} +### -license_email +{{ Fill license_email Description }} ```yaml -Type: String +Type: MailAddress Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Created_at +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manufacturer_id +{{ Fill manufacturer_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -330,6 +248,113 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -depreciation_id +{{ Fill depreciation_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -category_id +{{ Fill category_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -sort +{{ Fill sort Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Created_at +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -limit +Specify the number of results you wish to return. +Defaults to 50. +Defines batch size for -all + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 50 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -offset +Offset to use + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -all +A return all results, works with -offset and other parameters + +```yaml +Type: SwitchParameter +Parameter Sets: Search, Get licenses checked out to user ID, Get licenses checked out to asset ID +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -345,6 +370,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitLicenseSeat.md b/docs/Get-SnipeitLicenseSeat.md index 7f74a74..4646dd1 100644 --- a/docs/Get-SnipeitLicenseSeat.md +++ b/docs/Get-SnipeitLicenseSeat.md @@ -29,36 +29,6 @@ Get-SnipeitLicenseSeat -id 1 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id A id of specific License @@ -74,6 +44,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -seat_id +A id of specific seat + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -106,17 +91,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -seat_id -A id of specific seat +### -all +A return all results, works with -offset and other parameters ```yaml -Type: Int32 +Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False -Position: 2 -Default value: 0 +Position: Named +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -136,6 +121,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitLocation.md b/docs/Get-SnipeitLocation.md index a45b9cd..36cb811 100644 --- a/docs/Get-SnipeitLocation.md +++ b/docs/Get-SnipeitLocation.md @@ -40,31 +40,16 @@ Get-SnipeitLocation -id 3 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Locations data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -85,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,32 +117,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the Locations data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -162,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitManufacturer.md b/docs/Get-SnipeitManufacturer.md index 533212a..cbc56d4 100644 --- a/docs/Get-SnipeitManufacturer.md +++ b/docs/Get-SnipeitManufacturer.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: @@ -42,31 +42,16 @@ Returns manufacturer with id 3 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Manufactures data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -87,6 +72,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -119,32 +119,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the Manufactures data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -164,6 +149,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitModel.md b/docs/Get-SnipeitModel.md index 0094e59..c7c1fee 100644 --- a/docs/Get-SnipeitModel.md +++ b/docs/Get-SnipeitModel.md @@ -40,31 +40,16 @@ Get-SnipeitModel -id 1 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Models data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -85,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,32 +117,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the Models data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -162,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitStatus.md b/docs/Get-SnipeitStatus.md index 9740cb4..d7a9ce6 100644 --- a/docs/Get-SnipeitStatus.md +++ b/docs/Get-SnipeitStatus.md @@ -40,31 +40,16 @@ Get-SnipeitStatus -id 3 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Status Labels data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -85,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,32 +117,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the Status Labels data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -162,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitSupplier.md b/docs/Get-SnipeitSupplier.md index 6b7be7b..997dc1c 100644 --- a/docs/Get-SnipeitSupplier.md +++ b/docs/Get-SnipeitSupplier.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: @@ -40,31 +40,16 @@ Get-SnipeitSupplier -id 2 ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Supliers data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -85,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order +{{ Fill order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,32 +117,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the Supliers data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -162,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitUser.md b/docs/Get-SnipeitUser.md index eecb667..e0bbeb5 100644 --- a/docs/Get-SnipeitUser.md +++ b/docs/Get-SnipeitUser.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: @@ -24,6 +24,11 @@ Get-SnipeitUser [-search ] [-company_id ] [-location_id ] Get-SnipeitUser [-id ] -url -apiKey [] ``` +### Get users a specific accessory id has been checked out to +``` +Get-SnipeitUser [-accessory_id ] [-all] -url -apiKey [] +``` + ## DESCRIPTION {{ Fill in the Description }} @@ -49,32 +54,53 @@ Get-SnipeitUser -username someuser Get-SnipeitUser -email user@somedomain.com ``` +### EXAMPLE 5 +``` +Get-SnipeitUser -accessory_id 3 +Get users with accessory id 3 has been checked out to +``` + ## PARAMETERS -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the User data ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -id +A id of specific User ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Get with ID Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -accessory_id +{{ Fill accessory_id Description }} + +```yaml +Type: String +Parameter Sets: Get users a specific accessory id has been checked out to +Aliases: + +Required: False Position: Named Default value: None Accept pipeline input: False @@ -96,6 +122,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -location_id +{{ Fill location_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -group_id +{{ Fill group_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -department_id {{ Fill department_id Description }} @@ -111,6 +167,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -username +Search string for username field + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -email Search string for email field @@ -126,32 +197,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -group_id -{{ Fill group_id Description }} +### -order +{{ Fill order Description }} ```yaml -Type: Int32 +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -id -A id of specific User - -```yaml -Type: String -Parameter Sets: Get with ID -Aliases: - -Required: False -Position: Named -Default value: None +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` @@ -173,21 +229,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -{{ Fill location_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -offset Offset to use @@ -203,32 +244,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String -Parameter Sets: Search +Type: SwitchParameter +Parameter Sets: Search, Get users a specific accessory id has been checked out to Aliases: Required: False Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -search -A text string to search the User data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -248,15 +274,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -username -Search string for username field +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String -Parameter Sets: Search +Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/docs/New-SnipeitAccessory.md b/docs/New-SnipeitAccessory.md index de15744..14c6023 100644 --- a/docs/New-SnipeitAccessory.md +++ b/docs/New-SnipeitAccessory.md @@ -31,8 +31,8 @@ New-SnipeitAccessory -name "Accessory" -qty 3 -category_id 1 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +Accessory name ```yaml Type: String @@ -40,12 +40,27 @@ Parameter Sets: (All) Aliases: Required: True -Position: 14 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -qty +Quantity of the accessory you have + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -category_id ID number of the category the accessory belongs to @@ -76,21 +91,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -ID number of the location the accessory is assigned to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -manufacturer_id ID number of the manufacturer for this accessory. @@ -106,17 +106,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_amt -Min quantity of the accessory before alert is triggered +### -order_number +Order number for this accessory. ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 10 -Default value: 0 +Position: 6 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -136,36 +136,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Accessory name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order_number -Order number for this accessory. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -purchase_cost Cost of item being purchased. @@ -196,16 +166,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Quantity of the accessory you have +### -min_amt +Min quantity of the accessory before alert is triggered ```yaml Type: Int32 Parameter Sets: (All) Aliases: -Required: True -Position: 2 +Required: False +Position: 10 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -226,6 +196,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -location_id +ID number of the location the accessory is assigned to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -241,16 +226,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -272,6 +257,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitAsset.md b/docs/New-SnipeitAsset.md index 34bef7c..29da9de 100644 --- a/docs/New-SnipeitAsset.md +++ b/docs/New-SnipeitAsset.md @@ -45,67 +45,21 @@ Using customfields when creating asset. ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 15 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -asset_tag -Asset Tag for the Asset, not required when snipe asset_tag autogeneration is on. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: tag - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -Optional Company id +### -status_id +Required Status ID of the asset, this can be got using Get-Status ```yaml Type: Int32 Parameter Sets: (All) Aliases: -Required: False -Position: 6 +Required: True +Position: 1 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` -### -customfields -Hastable of custom fields and extra fields that need passing through to Snipeit. -Use internal field names from snipeit .You can use Get-CustomField to get internal field names. - -```yaml -Type: Hashtable -Parameter Sets: (All) -Aliases: CustomValues - -Required: False -Position: 16 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -model_id Required Model ID of the asset, this can be got using Get-Model @@ -136,8 +90,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -notes -Optional Notes +### -asset_tag +Asset Tag for the Asset, not required when snipe asset_tag autogeneration is on. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: tag + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -serial +Optional Serial number of the Asset ```yaml Type: String @@ -145,12 +114,27 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -company_id +Optional Company id + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -order_number Optional Order number @@ -166,6 +150,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -notes +Optional Notes + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -warranty_months +{{ Fill warranty_months Description }} + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -purchase_cost Optional Purchase cost of the Asset @@ -196,51 +210,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -rtd_location_id -Optional Default location id for the asset - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 13 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -serial -Optional Serial number of the Asset - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -status_id -Required Status ID of the asset, this can be got using Get-Status - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -supplier_id {{ Fill supplier_id Description }} @@ -256,6 +225,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -rtd_location_id +Optional Default location id for the asset + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -271,31 +255,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -warranty_months -{{ Fill warranty_months Description }} +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 9 -Default value: 0 +Required: True +Position: 15 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -customfields +Hastable of custom fields and extra fields that need passing through to Snipeit. +Use internal field names from snipeit .You can use Get-CustomField to get internal field names. ```yaml -Type: SwitchParameter +Type: Hashtable Parameter Sets: (All) -Aliases: cf +Aliases: CustomValues Required: False -Position: Named +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -317,6 +302,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitAssetMaintenance.md b/docs/New-SnipeitAssetMaintenance.md index 9e047b9..b578d04 100644 --- a/docs/New-SnipeitAssetMaintenance.md +++ b/docs/New-SnipeitAssetMaintenance.md @@ -31,21 +31,6 @@ New-SnipeitAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -asset_id Required ID of the asset, this can be got using Get-Asset @@ -61,6 +46,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -supplier_id +Required maintenance supplier + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -asset_maintenance_type {{ Fill asset_maintenance_type Description }} @@ -76,61 +76,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -completion_date -{{ Fill completion_date Description }} - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -cost -Optional cost - -```yaml -Type: Decimal -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -is_warranty -Optional Maintenance done under warranty - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -notes -Optional cost +### -title +Required Title of maintenance ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 9 +Required: True +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -151,31 +106,61 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -supplier_id -Required maintenance supplier +### -completion_date +{{ Fill completion_date Description }} ```yaml -Type: Int32 +Type: DateTime Parameter Sets: (All) Aliases: -Required: True -Position: 2 +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -is_warranty +Optional Maintenance done under warranty + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -cost +Optional cost + +```yaml +Type: Decimal +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` -### -title -Required Title of maintenance +### -notes +Optional cost ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 4 +Required: False +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -196,16 +181,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -227,6 +212,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitAudit.md b/docs/New-SnipeitAudit.md index 5925779..0ab2054 100644 --- a/docs/New-SnipeitAudit.md +++ b/docs/New-SnipeitAudit.md @@ -29,8 +29,8 @@ New-SnipeitAudit -tag 1 -location_id 1 ## PARAMETERS -### -apiKey -{{ Fill apiKey Description }} +### -tag +The asset tag of the asset you wish to audit ```yaml Type: String @@ -38,7 +38,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 4 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -59,21 +59,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -tag -The asset tag of the asset you wish to audit - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url {{ Fill url Description }} @@ -89,16 +74,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +{{ Fill apiKey Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -120,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitCategory.md b/docs/New-SnipeitCategory.md index beaa7dc..24c219c 100644 --- a/docs/New-SnipeitCategory.md +++ b/docs/New-SnipeitCategory.md @@ -30,8 +30,8 @@ New-SnipeitCategory -name "Laptops" -category_type asset -url "Snipe-IT URL here ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +Name of new category to be created ```yaml Type: String @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 5 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,21 +60,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -checkin_email -If switch is present, send email to user on checkin/checkout - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -eula_text This allows you to customize your EULAs for specific types of assets @@ -90,17 +75,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Name of new category to be created +### -use_default_eula +If switch is present, use the primary default EULA ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) Aliases: -Required: True -Position: 1 -Default value: None +Required: False +Position: Named +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -120,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -checkin_email +If switch is present, send email to user on checkin/checkout + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -135,31 +135,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -use_default_eula -If switch is present, use the primary default EULA +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) Aliases: -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named +Required: True +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -181,6 +166,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitCompany.md b/docs/New-SnipeitCompany.md index 3d7a389..7d0bd5b 100644 --- a/docs/New-SnipeitCompany.md +++ b/docs/New-SnipeitCompany.md @@ -29,21 +29,6 @@ New-SnipeitCompany -name "Acme Company" ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -name Comapany name @@ -74,16 +59,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,6 +90,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitComponent.md b/docs/New-SnipeitComponent.md index 19a69e5..5d35311 100644 --- a/docs/New-SnipeitComponent.md +++ b/docs/New-SnipeitComponent.md @@ -30,8 +30,8 @@ An example ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +Component name ```yaml Type: String @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 10 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,6 +60,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -qty +Quantity of the components you have + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -company_id {{ Fill company_id Description }} @@ -90,21 +105,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Component name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -order_number Order number of the component @@ -120,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -purchase_date +Date accessory was purchased + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -purchase_cost Cost of item being purchased. @@ -135,36 +150,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -purchase_date -Date accessory was purchased - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -qty -Quantity of the components you have - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -180,16 +165,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -211,6 +196,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitConsumable.md b/docs/New-SnipeitConsumable.md index c030a82..c0620ee 100644 --- a/docs/New-SnipeitConsumable.md +++ b/docs/New-SnipeitConsumable.md @@ -33,126 +33,6 @@ Create consumable with stock count 20 , alert when stock is 5 or lower ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 15 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -category_id -Required Category ID of the Consumable, this can be got using Get-SnipeitCategory - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -Optional Company id - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -item_no -Item number for the consumable - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 13 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -location_id -Location id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manufacturer_id -Manufaturer id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -min_amt -Optional minimum quantity of comsumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the consumable in months - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -name Required Name of the Consumable @@ -168,51 +48,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order_number -Optional Order number - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -purchase_cost -Optional Purchase cost of the consumable - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -purchase_date -Optional Purchase cost of the consumable - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -qty Required Quantity of comsumable @@ -228,6 +63,96 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -category_id +Required Category ID of the Consumable, this can be got using Get-SnipeitCategory + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -min_amt +Optional minimum quantity of comsumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -company_id +Optional Company id + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order_number +Optional Order number + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manufacturer_id +Manufaturer id number of the consumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +Location id number of the consumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -requestable Is consumable requestable? @@ -243,6 +168,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -purchase_date +Optional Purchase cost of the consumable + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -purchase_cost +Optional Purchase cost of the consumable + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the consumable in months + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -item_no +Item number for the consumable + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -258,16 +243,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -289,6 +274,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitCustomField.md b/docs/New-SnipeitCustomField.md index e30a6ab..6702b24 100644 --- a/docs/New-SnipeitCustomField.md +++ b/docs/New-SnipeitCustomField.md @@ -30,8 +30,8 @@ New-SnipeitCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "I ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +The field's name, which is also the form label ```yaml Type: String @@ -39,14 +39,14 @@ Parameter Sets: (All) Aliases: Required: True -Position: 10 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -custom_format -In the case of format 'CUSTOM REGEX', this should be validation regex this field +### -help_text +Any additional text you wish to display under the new form field to make it clearer what the gauges should be. ```yaml Type: String @@ -54,7 +54,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,6 +75,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -format +How the field should be validated + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -field_values +In the case of list boxes, etc, this should be a list of the options available + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -field_encrypted Whether the field should be encrypted. (This can cause issues if you change it after the field was created.) @@ -91,66 +121,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -field_values -In the case of list boxes, etc, this should be a list of the options available - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -format -How the field should be validated - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -help_text -Any additional text you wish to display under the new form field to make it clearer what the gauges should be. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -name -The field's name, which is also the form label - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -show_in_email Whether or not to show the custom field in email notifications @@ -166,6 +136,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -custom_format +In the case of format 'CUSTOM REGEX', this should be validation regex this field + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -181,16 +166,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -212,6 +197,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitDepartment.md b/docs/New-SnipeitDepartment.md index a5a01b5..fa4e1c3 100644 --- a/docs/New-SnipeitDepartment.md +++ b/docs/New-SnipeitDepartment.md @@ -29,8 +29,8 @@ New-SnipeitDepartment -name "Department1" -company_id 1 -localtion_id 1 -manager ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +Department Name ```yaml Type: String @@ -38,7 +38,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 7 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -89,21 +89,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Department Name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -notes {{ Fill notes Description }} @@ -134,16 +119,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -165,6 +150,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitLicense.md b/docs/New-SnipeitLicense.md index 73f46b1..57264c2 100644 --- a/docs/New-SnipeitLicense.md +++ b/docs/New-SnipeitLicense.md @@ -33,8 +33,8 @@ New-SnipeitLicence -name "License" -seats 3 -company_id 1 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +Name of license being created ```yaml Type: String @@ -42,12 +42,27 @@ Parameter Sets: (All) Aliases: Required: True -Position: 19 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -seats +Number of license seats owned. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -category_id {{ Fill category_id Description }} @@ -153,21 +168,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Name of license being created - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -notes License Notes @@ -243,21 +243,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -seats -Number of license seats owned. - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -serial Serialnumber of license @@ -318,16 +303,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -349,6 +334,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitLocation.md b/docs/New-SnipeitLocation.md index 6b12649..791a248 100644 --- a/docs/New-SnipeitLocation.md +++ b/docs/New-SnipeitLocation.md @@ -31,6 +31,21 @@ New-SnipeitLocation -name "Room 1" -address "123 Asset Street" -parent_id 14 ## PARAMETERS +### -name +Name of the Location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -address Address line 1 of the location @@ -61,21 +76,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 13 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -city City of the location @@ -91,6 +91,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -state +Address State of the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -country Country of the location @@ -106,6 +121,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -zip +The zip code of the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -currency Currency used at the location @@ -121,51 +151,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ldap_ou -The LDAP OU of the location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manager_id -The manager ID of the location - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -name -Name of the Location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -parent_id Parent location ID for the location @@ -181,8 +166,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -state -Address State of the location +### -manager_id +The manager ID of the location + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ldap_ou +The LDAP OU of the location ```yaml Type: String @@ -190,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 5 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -211,31 +211,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -zip -The zip code of the location +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named +Required: True +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -257,6 +242,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitManufacturer.md b/docs/New-SnipeitManufacturer.md index 434bb49..2c96f52 100644 --- a/docs/New-SnipeitManufacturer.md +++ b/docs/New-SnipeitManufacturer.md @@ -29,21 +29,6 @@ New-SnipeitManufacturer -name "HP" ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name Name of the Manufacturer @@ -74,16 +59,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,6 +90,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitModel.md b/docs/New-SnipeitModel.md index ea055b5..806409d 100644 --- a/docs/New-SnipeitModel.md +++ b/docs/New-SnipeitModel.md @@ -30,8 +30,8 @@ New-SnipeitModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -name +Name of the Asset Model ```yaml Type: String @@ -39,7 +39,22 @@ Parameter Sets: (All) Aliases: Required: True -Position: 8 +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the Asset Model + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,6 +75,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -manufacturer_id +Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -eol {{ Fill eol Description }} @@ -90,51 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -name -Name of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -150,16 +135,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -181,6 +166,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitUser.md b/docs/New-SnipeitUser.md index 99a4cc0..d5ebfb9 100644 --- a/docs/New-SnipeitUser.md +++ b/docs/New-SnipeitUser.md @@ -33,96 +33,6 @@ Creates new a new user who can't login to system ## PARAMETERS -### -activated -{{ Fill activated Description }} - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 17 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -ID number of company users belogs to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -department_id -ID number of department - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -email -email address - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -employee_num -Employeenumber - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 14 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -first_name Users first name @@ -138,21 +48,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -jobtitle -Users job tittle - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -last_name Users last name @@ -168,61 +63,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ldap_import -Mark user as import from ldap - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 15 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -location_id -ID number of localtion - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manager_id -ID number of manager - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 13 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -notes -User Notes +### -username +Username for user ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 6 +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -243,6 +93,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -activated +{{ Fill activated Description }} + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -notes +User Notes + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -jobtitle +Users job tittle + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -email +email address + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -phone Phone number @@ -258,6 +168,96 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -company_id +ID number of company users belogs to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +ID number of localtion + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -department_id +ID number of department + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manager_id +ID number of manager + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -employee_num +Employeenumber + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ldap_import +Mark user as import from ldap + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 15 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -273,8 +273,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -username -Username for user +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -282,22 +282,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -319,6 +304,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitAccessory.md b/docs/Remove-SnipeitAccessory.md index 51ea7a9..7fabc47 100644 --- a/docs/Remove-SnipeitAccessory.md +++ b/docs/Remove-SnipeitAccessory.md @@ -34,21 +34,6 @@ Get-SnipeitAccessory -search needle | Remove-SnipeitAccessory ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For accessory to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitAsset.md b/docs/Remove-SnipeitAsset.md index 8ee957a..0ee9e28 100644 --- a/docs/Remove-SnipeitAsset.md +++ b/docs/Remove-SnipeitAsset.md @@ -34,21 +34,6 @@ Get-SnipeitAsset -serial 123456789 | Remove-SnipeitAsset ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For Asset to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitAssetMaintenance.md b/docs/Remove-SnipeitAssetMaintenance.md index 75f5e2f..94bb365 100644 --- a/docs/Remove-SnipeitAssetMaintenance.md +++ b/docs/Remove-SnipeitAssetMaintenance.md @@ -29,21 +29,6 @@ Remove-SnipeitAssetMaintenance -ID 44 -url $url -apiKey $secret -Verbose ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID of the asset maintenance to be removed @@ -74,16 +59,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,6 +90,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitCategory.md b/docs/Remove-SnipeitCategory.md index 34734d6..3609bb8 100644 --- a/docs/Remove-SnipeitCategory.md +++ b/docs/Remove-SnipeitCategory.md @@ -34,21 +34,6 @@ Get-SnipeitCategory -search something | Remove-SnipeitCategory ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For categoryto be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitCompany.md b/docs/Remove-SnipeitCompany.md index b1609af..8b29a3b 100644 --- a/docs/Remove-SnipeitCompany.md +++ b/docs/Remove-SnipeitCompany.md @@ -34,21 +34,6 @@ Get-SnipeitCompany | | Where-object {$_.name -like '*some*'} | Remove-SnipeitCom ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For Company to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitComponent.md b/docs/Remove-SnipeitComponent.md index 0e68c5a..9dab005 100644 --- a/docs/Remove-SnipeitComponent.md +++ b/docs/Remove-SnipeitComponent.md @@ -34,21 +34,6 @@ Get-SnipeitComponent -search 123456789 | Remove-SnipeitComponent ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id {{ Fill id Description }} @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitConsumable.md b/docs/Remove-SnipeitConsumable.md index 82a0e2d..ee11746 100644 --- a/docs/Remove-SnipeitConsumable.md +++ b/docs/Remove-SnipeitConsumable.md @@ -34,21 +34,6 @@ Get-SnipeitConsumable -search "paper" | Remove-Snipeitconsumable ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For consumable to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitCustomField.md b/docs/Remove-SnipeitCustomField.md index fa21c51..3e68616 100644 --- a/docs/Remove-SnipeitCustomField.md +++ b/docs/Remove-SnipeitCustomField.md @@ -34,21 +34,6 @@ Get-SnipeitCustomField | Where-object {$_.name -like '*address*'} | Remove-Snip ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For field to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitDepartment.md b/docs/Remove-SnipeitDepartment.md index a2f99e3..59c2dcf 100644 --- a/docs/Remove-SnipeitDepartment.md +++ b/docs/Remove-SnipeitDepartment.md @@ -34,21 +34,6 @@ Get-SnipeitDepartment | Where-object {$_.name -like '*head*'} | Remove-SnipeitDe ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For department to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitLicense.md b/docs/Remove-SnipeitLicense.md index e778b67..0c23d15 100644 --- a/docs/Remove-SnipeitLicense.md +++ b/docs/Remove-SnipeitLicense.md @@ -34,21 +34,6 @@ Get-SnipeitLicence -product_key 123456789 | Remove-SnipeitLicense ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For licence to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitLocation.md b/docs/Remove-SnipeitLocation.md index a7e8d11..af55635 100644 --- a/docs/Remove-SnipeitLocation.md +++ b/docs/Remove-SnipeitLocation.md @@ -34,21 +34,6 @@ Get-SnipeitLocation -city Arkham | Remove-SnipeitLocation ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For location to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitManufacturer.md b/docs/Remove-SnipeitManufacturer.md index ab0a019..a3f40e1 100644 --- a/docs/Remove-SnipeitManufacturer.md +++ b/docs/Remove-SnipeitManufacturer.md @@ -34,21 +34,6 @@ Get-SnipeitManufacturer | Where-object {$_.name -like '*something*'} | Remove-S ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For manufacturer to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitModel.md b/docs/Remove-SnipeitModel.md index 04592bd..6d54999 100644 --- a/docs/Remove-SnipeitModel.md +++ b/docs/Remove-SnipeitModel.md @@ -34,21 +34,6 @@ Get-SnipeitModel -search needle | Remove-SnipeitModel ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For Model to be removed @@ -79,16 +64,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -110,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitUser.md b/docs/Remove-SnipeitUser.md index 850d37f..8614a11 100644 --- a/docs/Remove-SnipeitUser.md +++ b/docs/Remove-SnipeitUser.md @@ -28,21 +28,6 @@ Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose ## PARAMETERS -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For User to be removed @@ -73,16 +58,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -104,6 +89,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Reset-SnipeitAccessoryOwner.md b/docs/Reset-SnipeitAccessoryOwner.md index 8d8e733..2095623 100644 --- a/docs/Reset-SnipeitAccessoryOwner.md +++ b/docs/Reset-SnipeitAccessoryOwner.md @@ -35,21 +35,6 @@ Get-SnipeitAccessoryOwner -assigned_pivot_id xxx ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -assigned_pivot_id This is the assigned_pivot_id of the accessory+user relationships in the accessories_users table Use Get-SnipeitAccessoryOwner to find out nooded value @@ -81,16 +66,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -112,6 +97,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Reset-SnipeitAssetOwner.md b/docs/Reset-SnipeitAssetOwner.md index f901aeb..d032424 100644 --- a/docs/Reset-SnipeitAssetOwner.md +++ b/docs/Reset-SnipeitAssetOwner.md @@ -29,21 +29,6 @@ Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For asset to checkin @@ -59,6 +44,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -status_id +Change asset status to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id Location id to change asset location to @@ -89,21 +89,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -status_id -Change asset status to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command @@ -119,16 +104,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -150,6 +135,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index 9adeae2..85225ef 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -31,21 +31,51 @@ Set-SnipeitAccessory -id 1 -qty 3 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfoeItInfo command +### -id +{{ Fill id Description }} + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -name +ID number of Accessory or array of IDs on Snipe-It system ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 14 +Required: False +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -qty +Quantity of the accessory you have + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -category_id ID number of the category the accessory belongs to @@ -76,21 +106,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -{{ Fill id Description }} - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -manufacturer_id ID number of the manufacturer for this accessory. @@ -106,21 +121,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_amt -Minimum amount of the accessory, before alert is triggered - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -model_number Model number for this accessory @@ -136,21 +136,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -ID number of Accessory or array of IDs on Snipe-It system - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -order_number Order number for this accessory. @@ -196,8 +181,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Quantity of the accessory you have +### -min_amt +Minimum amount of the accessory, before alert is triggered ```yaml Type: Int32 @@ -205,8 +190,8 @@ Parameter Sets: (All) Aliases: Required: False -Position: 3 -Default value: 0 +Position: 11 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -241,16 +226,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfoeItInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -272,6 +257,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAccessoryOwner.md b/docs/Set-SnipeitAccessoryOwner.md index 52f65bc..c9f2e03 100644 --- a/docs/Set-SnipeitAccessoryOwner.md +++ b/docs/Set-SnipeitAccessoryOwner.md @@ -29,18 +29,18 @@ Set-SnipeitAccessoryOwner -id 1 -assigned_id 1 -note "testing check out to user ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -id +Unique ID For accessory or array of IDs to checkout ```yaml -Type: String +Type: Int32[] Parameter Sets: (All) Aliases: Required: True -Position: 5 +Position: 1 Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -59,21 +59,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -Unique ID For accessory or array of IDs to checkout - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -note Notes about checkout @@ -104,16 +89,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -135,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAsset.md b/docs/Set-SnipeitAsset.md index 900e5da..c2f116a 100644 --- a/docs/Set-SnipeitAsset.md +++ b/docs/Set-SnipeitAsset.md @@ -43,33 +43,77 @@ Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated' ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command +### -id +ID of the Asset or array of IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -name +Asset name ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 19 +Required: False +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -archived -Whether or not the asset is archived. -Archived assets cannot be checked out and do not show up in the deployable asset screens +### -status_id +Status ID of the asset, this can be got using Get-Status ```yaml -Type: Boolean +Type: Int32 Parameter Sets: (All) Aliases: Required: False -Position: 14 -Default value: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_id +Model ID of the asset, this can be got using Get-Model + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -last_checkout +Date the asset was last checked out + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -104,68 +148,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -customfields -Hastable of custom fields and extra fields that need passing through to Snipeit - -```yaml -Type: Hashtable -Parameter Sets: (All) -Aliases: CustomValues - -Required: False -Position: 20 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -id -ID of the Asset or array of IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -last_checkout -Date the asset was last checked out - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_id -Model ID of the asset, this can be got using Get-Model - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -name -Asset name +### -serial +Serial number of the asset ```yaml Type: String @@ -173,22 +157,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -notes -Notes about asset - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 16 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -209,6 +178,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -warranty_months +Number of months for the asset warranty + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -purchase_cost Purchase cost of the asset, without a currency symbol @@ -254,18 +238,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -RequestType -Http request type to send Snipe IT system. -Defaults to Put youc use Patch if needed +### -archived +Whether or not the asset is archived. +Archived assets cannot be checked out and do not show up in the deployable asset screens ```yaml -Type: String +Type: Boolean Parameter Sets: (All) Aliases: Required: False -Position: 17 -Default value: Patch +Position: 14 +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -285,8 +269,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -serial -Serial number of the asset +### -notes +Notes about asset ```yaml Type: String @@ -294,23 +278,24 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -status_id -Status ID of the asset, this can be got using Get-Status +### -RequestType +Http request type to send Snipe IT system. +Defaults to Put youc use Patch if needed ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 3 -Default value: 0 +Position: 17 +Default value: Patch Accept pipeline input: False Accept wildcard characters: False ``` @@ -330,31 +315,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -warranty_months -Number of months for the asset warranty +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 10 +Required: True +Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -customfields +Hastable of custom fields and extra fields that need passing through to Snipeit ```yaml -Type: SwitchParameter +Type: Hashtable Parameter Sets: (All) -Aliases: cf +Aliases: CustomValues Required: False -Position: Named +Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -376,6 +361,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAssetOwner.md b/docs/Set-SnipeitAssetOwner.md index 5af3c6a..fd048f7 100644 --- a/docs/Set-SnipeitAssetOwner.md +++ b/docs/Set-SnipeitAssetOwner.md @@ -30,18 +30,18 @@ Set-SnipeitAssetOwner -id 1 -assigned_id 1 -checkout_to_type user -note "testing ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -id +Unique IDs For assets to checkout ```yaml -Type: String +Type: Int32[] Parameter Sets: (All) Aliases: Required: True -Position: 9 +Position: 1 Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -60,21 +60,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -checkout_at -Optional date to override the checkout time of now - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -checkout_to_type {{ Fill checkout_to_type Description }} @@ -90,36 +75,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -expected_checkin -Optional date the asset is expected to be checked in - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -id -Unique IDs For assets to checkout - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -name Optional new asset name. This is useful for changing the asset's name on new checkout, @@ -153,6 +108,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -expected_checkin +Optional date the asset is expected to be checked in + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -checkout_at +Optional date to override the checkout time of now + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -168,16 +153,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -199,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitCategory.md b/docs/Set-SnipeitCategory.md index a380ae5..b1f87f6 100644 --- a/docs/Set-SnipeitCategory.md +++ b/docs/Set-SnipeitCategory.md @@ -30,66 +30,6 @@ Set-SnipeitCategory -id 4 -name "Laptops" ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -category_type -{{ Fill category_type Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -checkin_email -Should the user be emailed the EULA and/or an acceptance confirmation email when this item is checked in? - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -eula_text -This allows you to customize your EULAs for specific types of assets - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id {{ Fill id Description }} @@ -120,31 +60,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -require_acceptance -If switch is present, require users to confirm acceptance of assets in this category - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command +### -category_type +{{ Fill category_type Description }} ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 8 +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -eula_text +This allows you to customize your EULAs for specific types of assets + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -165,16 +105,61 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -require_acceptance +If switch is present, require users to confirm acceptance of assets in this category ```yaml -Type: SwitchParameter +Type: Boolean Parameter Sets: (All) -Aliases: cf +Aliases: Required: False -Position: Named +Position: 6 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -checkin_email +Should the user be emailed the EULA and/or an acceptance confirmation email when this item is checked in? + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -196,6 +181,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitCompany.md b/docs/Set-SnipeitCompany.md index 53ee457..7e1470c 100644 --- a/docs/Set-SnipeitCompany.md +++ b/docs/Set-SnipeitCompany.md @@ -29,21 +29,6 @@ An example ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id ID number of company @@ -89,16 +74,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -120,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitComponent.md b/docs/Set-SnipeitComponent.md index 69b6a50..501bb38 100644 --- a/docs/Set-SnipeitComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -30,36 +30,6 @@ An example ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -{{ Fill company_id Description }} - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id ID number of name @@ -75,17 +45,17 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -location_id -ID number of the location the accessory is assigned to +### -qty +Quantity of the components you have ```yaml Type: Int32 Parameter Sets: (All) Aliases: -Required: False -Position: 6 -Default value: None +Required: True +Position: 2 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -120,6 +90,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -company_id +{{ Fill company_id Description }} + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +ID number of the location the accessory is assigned to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -order_number Order number for the accessory @@ -135,6 +135,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -purchase_date +Date accessory was purchased + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -purchase_cost Cost of item being purchased. @@ -150,36 +165,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -purchase_date -Date accessory was purchased - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -qty -Quantity of the components you have - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -195,16 +180,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -226,6 +211,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitConsumable.md b/docs/Set-SnipeitConsumable.md index 2379254..7b4e353 100644 --- a/docs/Set-SnipeitConsumable.md +++ b/docs/Set-SnipeitConsumable.md @@ -33,51 +33,6 @@ Create consumable with stock count 20 , alert when stock is 5 or lower ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 16 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -category_id -Required Category ID of the Consumable, this can be got using Get-SnipeitCategory - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -Optional Company id - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Optional id number of the Consumable @@ -93,81 +48,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -item_no -Item number for the consumable - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 14 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -location_id -Location id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manufacturer_id -Manufaturer id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -min_amt -Optional minimum quantity of comsumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the consumable in months - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 13 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -name Optional Name of the Consumable @@ -183,6 +63,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -qty +Optional Quantity of comsumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -category_id +Required Category ID of the Consumable, this can be got using Get-SnipeitCategory + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -min_amt +Optional minimum quantity of comsumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -company_id +Optional Company id + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -order_number Optional Order number @@ -198,6 +138,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -manufacturer_id +Manufaturer id number of the consumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +Location id number of the consumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -requestable +Is consumable requestable? + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -purchase_date +Optional Purchase cost of the consumable + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -purchase_cost Optional Purchase cost of the consumable @@ -213,47 +213,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -purchase_date -Optional Purchase cost of the consumable +### -model_number +Model number of the consumable in months ```yaml -Type: DateTime +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 11 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Optional Quantity of comsumable +### -item_no +Item number for the consumable ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -requestable -Is consumable requestable? - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: False +Position: 14 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -273,16 +258,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -304,6 +289,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitCustomField.md b/docs/Set-SnipeitCustomField.md index 78fe1f3..6c41097 100644 --- a/docs/Set-SnipeitCustomField.md +++ b/docs/Set-SnipeitCustomField.md @@ -30,112 +30,6 @@ New-SnipeitCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "I ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -custom_format -In the case of format 'CUSTOM REGEX', this should be validation regex this field - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -element -Form field type that should be displayed. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -field_encrypted -Whether the field should be encrypted. -(This can cause issues if you change it after the field was created.) - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -field_values -In the case of list boxes, etc, this should be a list of the options available - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -format -How the field should be validated - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -help_text -Any additional text you wish to display under the new form field to make it clearer what the gauges should be. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id {{ Fill id Description }} @@ -166,6 +60,82 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -help_text +Any additional text you wish to display under the new form field to make it clearer what the gauges should be. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -element +Form field type that should be displayed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -format +How the field should be validated + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -field_values +In the case of list boxes, etc, this should be a list of the options available + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -field_encrypted +Whether the field should be encrypted. +(This can cause issues if you change it after the field was created.) + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -show_in_email Whether or not to show the custom field in email notifications @@ -181,6 +151,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -custom_format +In the case of format 'CUSTOM REGEX', this should be validation regex this field + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -196,16 +181,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -227,6 +212,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitDepartment.md b/docs/Set-SnipeitDepartment.md index c701fc9..f0b2179 100644 --- a/docs/Set-SnipeitDepartment.md +++ b/docs/Set-SnipeitDepartment.md @@ -30,16 +30,31 @@ Set-SnipeitDepartment -id 4 -manager_id 3 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -id +Id number of Department + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -name +Department Name ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 8 +Required: False +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,21 +75,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -Id number of Department - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -location_id ID number of location @@ -105,21 +105,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Department Name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -notes {{ Fill notes Description }} @@ -150,16 +135,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -181,6 +166,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitInfo.md b/docs/Set-SnipeitInfo.md index cb41bfc..20c3bd9 100644 --- a/docs/Set-SnipeitInfo.md +++ b/docs/Set-SnipeitInfo.md @@ -28,21 +28,6 @@ Set-SnipeitInfo -url $url -apiKey -Verbose ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -58,6 +43,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitLicense.md b/docs/Set-SnipeitLicense.md index 8730895..95e2b09 100644 --- a/docs/Set-SnipeitLicense.md +++ b/docs/Set-SnipeitLicense.md @@ -33,21 +33,51 @@ Set-SnipeitLicence -name "License" -seats 3 -company_id 1 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -id +ID number of license or array of license IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -name +Name of license ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 20 +Required: False +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -seats +Number of license seats owned. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -category_id {{ Fill category_id Description }} @@ -93,21 +123,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -ID number of license or array of license IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -license_email Email address associated with license @@ -168,21 +183,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Name of license - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -notes License Notes @@ -258,21 +258,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -seats -Number of license seats owned. - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -serial Serialnumber of license @@ -333,16 +318,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -364,6 +349,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitLicenseSeat.md b/docs/Set-SnipeitLicenseSeat.md index e10f09f..889f518 100644 --- a/docs/Set-SnipeitLicenseSeat.md +++ b/docs/Set-SnipeitLicenseSeat.md @@ -24,63 +24,24 @@ Checkout specific license seat to user, asset or both ### EXAMPLE 1 ``` -Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -assigned_id 3 -Verbose +Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -assigned_id 3 Checkout licence to user id 3 ``` ### EXAMPLE 2 ``` -Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id 3 -Verbose +Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id 3 Checkout licence to asset id 3 ``` +### EXAMPLE 3 +``` +Set-SnipeitLicenceSeat -ID 1 -seat_id 1 -asset_id $null -assigned_id $null +Checkin licence seat id 1 of licence id 1 +``` + ## PARAMETERS -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -asset_id -Id of target asset - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -assigned_to -Id of target user - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: assigned_id - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id Unique ID For license to checkout or array of IDs @@ -96,21 +57,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -note -Notes about checkout - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -seat_id {{ Fill seat_id Description }} @@ -126,6 +72,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -assigned_to +Id of target user + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: assigned_id + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -asset_id +Id of target asset + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -note +Notes about checkout + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -141,16 +132,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -172,6 +163,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index f1fa607..598222f 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -31,6 +31,36 @@ Set-SnipeitLocation -id 123 -name "Some storage" -parent_id 100 ## PARAMETERS +### -id +ID number of location or array or IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -name +Name of Location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -address Address line 1 @@ -61,23 +91,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 14 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -city -City of the location +### -state +Address State ```yaml Type: String @@ -85,7 +100,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -106,6 +121,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -zip +Address zipcode + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -city +City of the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -currency Currency used at the location @@ -121,36 +166,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -ID number of location or array or IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -ldap_ou -LDAP OU of Location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -manager_id Location manager as id @@ -166,8 +181,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -Name of Location +### -ldap_ou +LDAP OU of Location ```yaml Type: String @@ -175,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 2 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -196,21 +211,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -state -Address State - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -226,31 +226,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -zip -Address zipcode +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named +Required: True +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -272,6 +257,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitModel.md b/docs/Set-SnipeitModel.md index 9397c5e..f233223 100644 --- a/docs/Set-SnipeitModel.md +++ b/docs/Set-SnipeitModel.md @@ -30,16 +30,46 @@ New-SnipeitModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -id +ID number of the Asset Model or array of IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -name +Name of the Asset Model ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 9 +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the Asset Model + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,17 +90,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -custom_fieldset_id -{{ Fill custom_fieldset_id Description }} +### -manufacturer_id +Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer ```yaml Type: Int32 Parameter Sets: (All) -Aliases: fieldset_id +Aliases: Required: False -Position: 7 -Default value: None +Position: 5 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -90,61 +120,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -id -ID number of the Asset Model or array of IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -manufacturer_id -Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer +### -custom_fieldset_id +{{ Fill custom_fieldset_id Description }} ```yaml Type: Int32 Parameter Sets: (All) -Aliases: +Aliases: fieldset_id Required: False -Position: 5 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -name -Name of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -165,16 +150,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -196,6 +181,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitStatus.md b/docs/Set-SnipeitStatus.md index 2e23b50..3dc7448 100644 --- a/docs/Set-SnipeitStatus.md +++ b/docs/Set-SnipeitStatus.md @@ -35,51 +35,6 @@ Set-SnipeitStatus -id 3 -name 'Waiting for arrival' -type pending ## PARAMETERS -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -color -Hex code showing what color the status label should be on the pie chart in the dashboard - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -default_label -1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id A id of specific Status Label @@ -110,6 +65,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -type +{{ Fill type Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -notes {{ Fill notes Description }} @@ -125,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -color +Hex code showing what color the status label should be on the pie chart in the dashboard + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -show_in_nav 1 or 0 - determine whether the status label should show in the left-side nav of the web GUI @@ -140,17 +125,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -type -{{ Fill type Description }} +### -default_label +1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses ```yaml -Type: String +Type: Boolean Parameter Sets: (All) Aliases: -Required: True -Position: 3 -Default value: None +Required: False +Position: 7 +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -170,16 +155,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) -Aliases: cf +Aliases: -Required: False -Position: Named +Required: True +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -201,6 +186,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitUser.md b/docs/Set-SnipeitUser.md index 1e52ef2..7e9bb14 100644 --- a/docs/Set-SnipeitUser.md +++ b/docs/Set-SnipeitUser.md @@ -33,111 +33,6 @@ Updates user with id 3 ## PARAMETERS -### -activated -Can user log in to snipe-it? - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 14 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 17 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -ID number of company users belogs to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -department_id -ID number of department - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -email -email address - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -employee_num -Employeenumber - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 13 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -first_name -Users first name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -id ID number of Snipe--It user or array of IDs @@ -153,8 +48,8 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -jobtitle -Users job tittle +### -first_name +Users first name ```yaml Type: String @@ -162,7 +57,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 5 +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -183,38 +78,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -ID number of localtion - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manager_id -ID number of manager - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -notes -User Notes +### -userName +Username for user ```yaml Type: String @@ -222,14 +87,14 @@ Parameter Sets: (All) Aliases: Required: False -Position: 15 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -password -Password for user +### -jobtitle +Users job tittle ```yaml Type: String @@ -237,7 +102,22 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -email +email address + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -258,6 +138,126 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -password +Password for user + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -company_id +ID number of company users belogs to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +ID number of localtion + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -department_id +ID number of department + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manager_id +ID number of manager + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -employee_num +Employeenumber + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -activated +Can user log in to snipe-it? + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -notes +User Notes + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 15 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -273,31 +273,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -userName -Username for user +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named +Required: True +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -319,6 +304,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/SnipeitPS.md b/docs/SnipeitPS.md index aba8a60..ed87ff5 100644 --- a/docs/SnipeitPS.md +++ b/docs/SnipeitPS.md @@ -12,200 +12,209 @@ Locale: en-US ## SnipeitPS Cmdlets ### [Get-SnipeitAccessory](Get-SnipeitAccessory.md) -Gets a list of Snipe-it Accessories +{{ Fill in the Description }} ### [Get-SnipeitAccessoryOwner](Get-SnipeitAccessoryOwner.md) -Get list of checked out accessories +{{ Fill in the Description }} ### [Get-SnipeitActivity](Get-SnipeitActivity.md) -Gets and search Snipe-it Activity history +{{ Fill in the Description }} ### [Get-SnipeitAsset](Get-SnipeitAsset.md) -Gets a list of Snipe-it Assets or specific asset +{{ Fill in the Description }} ### [Get-SnipeitAssetMaintenance](Get-SnipeitAssetMaintenance.md) -Lists Snipe-it Assets Maintenances +{{ Fill in the Description }} ### [Get-SnipeitCategory](Get-SnipeitCategory.md) -Gets a list of Snipe-it Categories +{{ Fill in the Description }} ### [Get-SnipeitCompany](Get-SnipeitCompany.md) -Gets a list of Snipe-it Companies +{{ Fill in the Description }} ### [Get-SnipeitComponent](Get-SnipeitComponent.md) -Gets a list of Snipe-it Components +{{ Fill in the Description }} ### [Get-SnipeitConsumable](Get-SnipeitConsumable.md) -Gets a list of Snipe-it consumables +{{ Fill in the Description }} ### [Get-SnipeitCustomField](Get-SnipeitCustomField.md) -Returns specific Snipe-IT custom field or a list of all custom field +{{ Fill in the Description }} ### [Get-SnipeitDepartment](Get-SnipeitDepartment.md) -Gets a list of Snipe-it Departments +{{ Fill in the Description }} ### [Get-SnipeitFieldset](Get-SnipeitFieldset.md) -Returns a fieldset or list of Snipe-it Fieldsets +{{ Fill in the Description }} ### [Get-SnipeitLicense](Get-SnipeitLicense.md) -Gets a list of Snipe-it Licenses +{{ Fill in the Description }} ### [Get-SnipeitLicenseSeat](Get-SnipeitLicenseSeat.md) -Gets a list of Snipe-it Licenses Seats or specific Seat +{{ Fill in the Description }} ### [Get-SnipeitLocation](Get-SnipeitLocation.md) -Gets a list of Snipe-it Locations +{{ Fill in the Description }} + +### [Get-SnipeitManufacturer](Get-SnipeitManufacturer.md) +{{ Fill in the Description }} ### [Get-SnipeitModel](Get-SnipeitModel.md) -Gets a list of Snipe-it Models +{{ Fill in the Description }} ### [Get-SnipeitStatus](Get-SnipeitStatus.md) -Gets a list of Snipe-it Status Labels +{{ Fill in the Description }} + +### [Get-SnipeitSupplier](Get-SnipeitSupplier.md) +{{ Fill in the Description }} + +### [Get-SnipeitUser](Get-SnipeitUser.md) +{{ Fill in the Description }} ### [New-SnipeitAccessory](New-SnipeitAccessory.md) -Creates new accessory on Snipe-It system +{{ Fill in the Description }} ### [New-SnipeitAsset](New-SnipeitAsset.md) -Add a new Asset to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitAssetMaintenance](New-SnipeitAssetMaintenance.md) -Add a new Asset maintenence to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitAudit](New-SnipeitAudit.md) -Add a new Audit to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitCategory](New-SnipeitCategory.md) -Create a new Snipe-IT Category +{{ Fill in the Description }} ### [New-SnipeitCompany](New-SnipeitCompany.md) -Creates a new Company +{{ Fill in the Description }} ### [New-SnipeitComponent](New-SnipeitComponent.md) -Create a new component +{{ Fill in the Description }} ### [New-SnipeitConsumable](New-SnipeitConsumable.md) -Add a new Consumable to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitCustomField](New-SnipeitCustomField.md) -Add a new Custom Field to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitDepartment](New-SnipeitDepartment.md) -Creates a department +{{ Fill in the Description }} ### [New-SnipeitLicense](New-SnipeitLicense.md) -Creates a licence +{{ Fill in the Description }} ### [New-SnipeitLocation](New-SnipeitLocation.md) -Add a new Location to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitManufacturer](New-SnipeitManufacturer.md) -Add a new Manufacturer to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitModel](New-SnipeitModel.md) -Add a new Model to Snipe-it asset system +{{ Fill in the Description }} ### [New-SnipeitUser](New-SnipeitUser.md) -Creates a new user +{{ Fill in the Description }} ### [Remove-SnipeitAccessory](Remove-SnipeitAccessory.md) -Removes Accessory from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitAsset](Remove-SnipeitAsset.md) -Removes Asset from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitAssetMaintenance](Remove-SnipeitAssetMaintenance.md) -Remove asset maintenance from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitCategory](Remove-SnipeitCategory.md) -Removes category from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitCompany](Remove-SnipeitCompany.md) -Removes Company from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitComponent](Remove-SnipeitComponent.md) -Removes component from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitConsumable](Remove-SnipeitConsumable.md) -Removes consumable from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitCustomField](Remove-SnipeitCustomField.md) -Removes custom field from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitDepartment](Remove-SnipeitDepartment.md) -Removes department from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitLicense](Remove-SnipeitLicense.md) -Removes licence from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitLocation](Remove-SnipeitLocation.md) -Removes Location from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitManufacturer](Remove-SnipeitManufacturer.md) -Removes manufacturer from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitModel](Remove-SnipeitModel.md) -Removes Asset model from Snipe-it asset system +{{ Fill in the Description }} ### [Remove-SnipeitUser](Remove-SnipeitUser.md) -Removes User from Snipe-it asset system +{{ Fill in the Description }} ### [Reset-SnipeitAccessoryOwner](Reset-SnipeitAccessoryOwner.md) -Checkin accessories +{{ Fill in the Description }} ### [Reset-SnipeitAssetOwner](Reset-SnipeitAssetOwner.md) -Checkin asset +{{ Fill in the Description }} ### [Set-SnipeitAccessory](Set-SnipeitAccessory.md) -Updates accessory on Snipe-It system +{{ Fill in the Description }} ### [Set-SnipeitAccessoryOwner](Set-SnipeitAccessoryOwner.md) -Checkout accessory +{{ Fill in the Description }} ### [Set-SnipeitAsset](Set-SnipeitAsset.md) -Update a specific Asset in the Snipe-it asset system +{{ Fill in the Description }} ### [Set-SnipeitAssetOwner](Set-SnipeitAssetOwner.md) -Checkout asset +{{ Fill in the Description }} ### [Set-SnipeitCategory](Set-SnipeitCategory.md) -Create a new Snipe-IT Category +{{ Fill in the Description }} ### [Set-SnipeitCompany](Set-SnipeitCompany.md) -Updates company name +{{ Fill in the Description }} ### [Set-SnipeitComponent](Set-SnipeitComponent.md) -Updates component +{{ Fill in the Description }} ### [Set-SnipeitConsumable](Set-SnipeitConsumable.md) -Add a new Consumable to Snipe-it asset system +{{ Fill in the Description }} ### [Set-SnipeitCustomField](Set-SnipeitCustomField.md) -Add a new Custom Field to Snipe-it asset system +{{ Fill in the Description }} ### [Set-SnipeitDepartment](Set-SnipeitDepartment.md) -Updates a department +{{ Fill in the Description }} ### [Set-SnipeitInfo](Set-SnipeitInfo.md) -Sets authetication information +{{ Fill in the Description }} ### [Set-SnipeitLicense](Set-SnipeitLicense.md) -Updates a licence +{{ Fill in the Description }} ### [Set-SnipeitLicenseSeat](Set-SnipeitLicenseSeat.md) -Set license seat or checkout license seat +{{ Fill in the Description }} ### [Set-SnipeitLocation](Set-SnipeitLocation.md) -Updates Location in Snipe-it asset system +{{ Fill in the Description }} ### [Set-SnipeitModel](Set-SnipeitModel.md) -Updates Model on Snipe-it asset system +{{ Fill in the Description }} ### [Set-SnipeitStatus](Set-SnipeitStatus.md) -Sets Snipe-it Status Labels +{{ Fill in the Description }} ### [Set-SnipeitUser](Set-SnipeitUser.md) -Creates a new user +{{ Fill in the Description }} ### [Update-SnipeitAlias](Update-SnipeitAlias.md) -Replaces old SnipeitPS commands with new ones +{{ Fill in the Description }} diff --git a/docs/Update-SnipeitAlias.md b/docs/Update-SnipeitAlias.md index 1dd3141..a107fba 100644 --- a/docs/Update-SnipeitAlias.md +++ b/docs/Update-SnipeitAlias.md @@ -46,21 +46,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. @@ -77,6 +62,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). From b337608d7bd39811335c41c21abd59c872fcb516 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 14:37:37 +0300 Subject: [PATCH 5/8] get assigned items with by user is or asset id --- docs/Get-SnipeitAccessory.md | 192 ++++++------- docs/Get-SnipeitAccessoryOwner.md | 42 +-- docs/Get-SnipeitActivity.md | 126 ++++----- docs/Get-SnipeitAsset.md | 374 ++++++++++++------------- docs/Get-SnipeitAssetMaintenance.md | 128 ++++----- docs/Get-SnipeitCategory.md | 56 ++-- docs/Get-SnipeitCompany.md | 56 ++-- docs/Get-SnipeitComponent.md | 144 +++++----- docs/Get-SnipeitConsumable.md | 176 ++++++------ docs/Get-SnipeitCustomField.md | 30 +- docs/Get-SnipeitDepartment.md | 74 ++--- docs/Get-SnipeitFieldset.md | 30 +- docs/Get-SnipeitLicense.md | 370 ++++++++++++------------ docs/Get-SnipeitLicenseSeat.md | 70 ++--- docs/Get-SnipeitLocation.md | 56 ++-- docs/Get-SnipeitManufacturer.md | 58 ++-- docs/Get-SnipeitModel.md | 56 ++-- docs/Get-SnipeitStatus.md | 56 ++-- docs/Get-SnipeitSupplier.md | 58 ++-- docs/Get-SnipeitUser.md | 178 ++++++------ docs/New-SnipeitAccessory.md | 126 ++++----- docs/New-SnipeitAsset.md | 222 +++++++-------- docs/New-SnipeitAssetMaintenance.md | 158 +++++------ docs/New-SnipeitAudit.md | 48 ++-- docs/New-SnipeitCategory.md | 88 +++--- docs/New-SnipeitCompany.md | 42 +-- docs/New-SnipeitComponent.md | 108 +++---- docs/New-SnipeitConsumable.md | 180 ++++++------ docs/New-SnipeitCustomField.md | 144 +++++----- docs/New-SnipeitDepartment.md | 48 ++-- docs/New-SnipeitLicense.md | 78 +++--- docs/New-SnipeitLocation.md | 164 +++++------ docs/New-SnipeitManufacturer.md | 42 +-- docs/New-SnipeitModel.md | 108 +++---- docs/New-SnipeitUser.md | 294 +++++++++---------- docs/Remove-SnipeitAccessory.md | 42 +-- docs/Remove-SnipeitAsset.md | 42 +-- docs/Remove-SnipeitAssetMaintenance.md | 42 +-- docs/Remove-SnipeitCategory.md | 42 +-- docs/Remove-SnipeitCompany.md | 42 +-- docs/Remove-SnipeitComponent.md | 42 +-- docs/Remove-SnipeitConsumable.md | 42 +-- docs/Remove-SnipeitCustomField.md | 42 +-- docs/Remove-SnipeitDepartment.md | 42 +-- docs/Remove-SnipeitLicense.md | 42 +-- docs/Remove-SnipeitLocation.md | 42 +-- docs/Remove-SnipeitManufacturer.md | 42 +-- docs/Remove-SnipeitModel.md | 42 +-- docs/Remove-SnipeitUser.md | 42 +-- docs/Reset-SnipeitAccessoryOwner.md | 42 +-- docs/Reset-SnipeitAssetOwner.md | 72 ++--- docs/Set-SnipeitAccessory.md | 118 ++++---- docs/Set-SnipeitAccessoryOwner.md | 52 ++-- docs/Set-SnipeitAsset.md | 224 +++++++-------- docs/Set-SnipeitAssetOwner.md | 112 ++++---- docs/Set-SnipeitCategory.md | 160 +++++------ docs/Set-SnipeitCompany.md | 42 +-- docs/Set-SnipeitComponent.md | 142 +++++----- docs/Set-SnipeitConsumable.md | 330 +++++++++++----------- docs/Set-SnipeitCustomField.md | 224 +++++++-------- docs/Set-SnipeitDepartment.md | 80 +++--- docs/Set-SnipeitInfo.md | 30 +- docs/Set-SnipeitLicense.md | 110 ++++---- docs/Set-SnipeitLicenseSeat.md | 110 ++++---- docs/Set-SnipeitLocation.md | 172 ++++++------ docs/Set-SnipeitModel.md | 128 ++++----- docs/Set-SnipeitStatus.md | 114 ++++---- docs/Set-SnipeitUser.md | 304 ++++++++++---------- docs/SnipeitPS.md | 141 +++++----- docs/Update-SnipeitAlias.md | 14 +- 70 files changed, 3740 insertions(+), 3749 deletions(-) diff --git a/docs/Get-SnipeitAccessory.md b/docs/Get-SnipeitAccessory.md index dcf68d4..680c5a1 100644 --- a/docs/Get-SnipeitAccessory.md +++ b/docs/Get-SnipeitAccessory.md @@ -52,42 +52,42 @@ Get accessories checked out to user ID 1 ## PARAMETERS -### -search -A text string to search the Accessory data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String -Parameter Sets: Search +Type: SwitchParameter +Parameter Sets: Search, Accessories checked out to user id Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -id -A id of specific Accessory +### -category_id +{{ Fill category_id Description }} ```yaml Type: Int32 -Parameter Sets: Get by ID -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -user_id -{{ Fill user_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Accessories checked out to user id +Parameter Sets: Search Aliases: Required: False @@ -112,12 +112,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -category_id -{{ Fill category_id Description }} +### -id +A id of specific Accessory ```yaml Type: Int32 -Parameter Sets: Search +Parameter Sets: Get by ID Aliases: Required: False @@ -127,66 +127,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -{{ Fill manufacturer_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -supplier_id -{{ Fill supplier_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -sort -{{ Fill sort Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Created_at -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -204,6 +144,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -manufacturer_id +{{ Fill manufacturer_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -offset Result offset to use @@ -219,17 +174,62 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter -Parameter Sets: Search, Accessories checked out to user id +Type: String +Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -search +A text string to search the Accessory data + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -sort +{{ Fill sort Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: Created_at +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -supplier_id +{{ Fill supplier_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -249,17 +249,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -user_id +{{ Fill user_id Description }} ```yaml -Type: String -Parameter Sets: (All) +Type: Int32 +Parameter Sets: Accessories checked out to user id Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/Get-SnipeitAccessoryOwner.md b/docs/Get-SnipeitAccessoryOwner.md index c40aa27..914d9ea 100644 --- a/docs/Get-SnipeitAccessoryOwner.md +++ b/docs/Get-SnipeitAccessoryOwner.md @@ -29,6 +29,21 @@ Get-SnipeitAccessoryOwner -id 1 ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For accessory to list @@ -59,16 +74,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,21 +105,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitActivity.md b/docs/Get-SnipeitActivity.md index 9e05221..8e656b3 100644 --- a/docs/Get-SnipeitActivity.md +++ b/docs/Get-SnipeitActivity.md @@ -35,8 +35,9 @@ Get-SnipeitAccessory -id 1 ## PARAMETERS -### -search -A text string to search the Activity history +### -action_type +Type of action. +One from following list "add seats", "checkin from", 'checkout' or 'update' ```yaml Type: String @@ -44,54 +45,37 @@ Parameter Sets: (All) Aliases: Required: False -Position: 1 +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -target_type -Type of target. -One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' +### -all +A return all results, works with -offset and other parameters + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -target_id -Needed if target_type is specified - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -item_type -Type of target. -One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 +Required: True +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -112,9 +96,9 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -action_type -Type of action. -One from following list "add seats", "checkin from", 'checkout' or 'update' +### -item_type +Type of target. +One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' ```yaml Type: String @@ -122,7 +106,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 6 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -158,17 +142,48 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -search +A text string to search the Activity history ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) Aliases: Required: False -Position: Named -Default value: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -target_id +Needed if target_type is specified + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -target_type +Type of target. +One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -188,21 +203,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 10 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitAsset.md b/docs/Get-SnipeitAsset.md index 0cd774b..db43ac2 100644 --- a/docs/Get-SnipeitAsset.md +++ b/docs/Get-SnipeitAsset.md @@ -120,32 +120,32 @@ Get Assets with component id 5 ## PARAMETERS -### -search -A text string to search the assets data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String -Parameter Sets: Search +Type: SwitchParameter +Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` -### -id -ID number of excact snipeit asset +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32 -Parameter Sets: Get with id +Type: String +Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -165,21 +165,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -serial -{{ Fill serial Description }} - -```yaml -Type: String -Parameter Sets: Get with serial -Aliases: asset_serial - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -audit_due Retrieve a list of assets that are due for auditing soon. @@ -210,66 +195,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -user_id -{{ Fill user_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Assets checked out to user id -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -component_id -{{ Fill component_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Assets with component id -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order_number -Optionally restrict asset results to this order number - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_id -Optionally restrict asset results to this asset model ID - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id Optionally restrict asset results to this category ID @@ -285,21 +210,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -Optionally restrict asset results to this manufacturer ID - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -company_id Optionally restrict asset results to this company ID @@ -315,12 +225,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -Optionally restrict asset results to this location ID +### -component_id +{{ Fill component_id Description }} ```yaml Type: Int32 -Parameter Sets: Search +Parameter Sets: Assets with component id Aliases: Required: False @@ -345,6 +255,128 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +ID number of excact snipeit asset + +```yaml +Type: Int32 +Parameter Sets: Get with id +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -limit +Specify the number of results you wish to return. +Defaults to 50. +Defines batch size for -all + +```yaml +Type: Int32 +Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id +Aliases: + +Required: False +Position: Named +Default value: 50 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +Optionally restrict asset results to this location ID + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manufacturer_id +Optionally restrict asset results to this manufacturer ID + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_id +Optionally restrict asset results to this asset model ID + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -offset +Offset to use + +```yaml +Type: Int32 +Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order +Specify the order (asc or desc) you wish to order by on your sort column + +```yaml +Type: String +Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order_number +Optionally restrict asset results to this order number + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -requestable {{ Fill requestable Description }} @@ -360,6 +392,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -search +A text string to search the assets data + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -serial +{{ Fill serial Description }} + +```yaml +Type: String +Parameter Sets: Get with serial +Aliases: asset_serial + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -sort +Specify the column name you wish to sort by + +```yaml +Type: String +Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -status Optionally restrict asset results to one of these status types: RTD, Deployed, Undeployable, Deleted, Archived, Requestable @@ -390,83 +467,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -sort -Specify the column name you wish to sort by - -```yaml -Type: String -Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order -Specify the order (asc or desc) you wish to order by on your sort column - -```yaml -Type: String -Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -limit -Specify the number of results you wish to return. -Defaults to 50. -Defines batch size for -all - -```yaml -Type: Int32 -Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id -Aliases: - -Required: False -Position: Named -Default value: 50 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -offset -Offset to use - -```yaml -Type: Int32 -Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: Search, Assets due auditing soon, Assets overdue for auditing, Assets checked out to user id, Assets with component id -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -482,17 +482,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -user_id +{{ Fill user_id Description }} ```yaml -Type: String -Parameter Sets: (All) +Type: Int32 +Parameter Sets: Assets checked out to user id Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/Get-SnipeitAssetMaintenance.md b/docs/Get-SnipeitAssetMaintenance.md index 8bcfcd3..8ca5d36 100644 --- a/docs/Get-SnipeitAssetMaintenance.md +++ b/docs/Get-SnipeitAssetMaintenance.md @@ -39,16 +39,31 @@ Get-SnipeitAssetMaintenances -search "myMachine" -url "https://assets.example.co ## PARAMETERS -### -search -Search string +### -all +A return all results, works with -offset and other parameters + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 1 +Required: True +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -69,36 +84,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -sort -Specify the column name you wish to sort by - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: Created_at -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order -Specify the order (asc or desc) you wish to order by on your sort column - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -116,21 +101,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -offset Offset to use @@ -146,6 +116,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order +Specify the order (asc or desc) you wish to order by on your sort column + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -search +Search string + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -sort +Specify the column name you wish to sort by + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: Created_at +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -161,21 +176,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitCategory.md b/docs/Get-SnipeitCategory.md index d476ba4..d430813 100644 --- a/docs/Get-SnipeitCategory.md +++ b/docs/Get-SnipeitCategory.md @@ -40,16 +40,31 @@ Get-SnipeitCategory -search "Laptop" ## PARAMETERS -### -search -A text string to search the Categories data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -70,21 +85,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,38 +117,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -Url of Snipeit system, can be set using Set-SnipeitInfo command +### -search +A text string to search the Categories data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +Url of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitCompany.md b/docs/Get-SnipeitCompany.md index 680eb3b..6f46298 100644 --- a/docs/Get-SnipeitCompany.md +++ b/docs/Get-SnipeitCompany.md @@ -42,16 +42,31 @@ Gets specific company ## PARAMETERS -### -search -A text string to search the Companies data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -72,21 +87,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -119,38 +119,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command +### -search +A text string to search the Companies data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitComponent.md b/docs/Get-SnipeitComponent.md index a273d60..c8a6cfe 100644 --- a/docs/Get-SnipeitComponent.md +++ b/docs/Get-SnipeitComponent.md @@ -49,32 +49,32 @@ Returns specific component ## PARAMETERS -### -search -A text string to search the Components data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` -### -id -A id of specific Component +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32 -Parameter Sets: Get with ID +Type: String +Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -109,6 +109,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +A id of specific Component + +```yaml +Type: Int32 +Parameter Sets: Get with ID +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -limit +Specify the number of results you wish to return. +Defaults to 50. +Defines batch size for -all + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 50 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id {{ Fill location_id Description }} @@ -124,6 +156,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -offset +Offset to use + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -order {{ Fill order Description }} @@ -139,6 +186,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -search +A text string to search the Components data + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -sort {{ Fill sort Description }} @@ -154,53 +216,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -limit -Specify the number of results you wish to return. -Defaults to 50. -Defines batch size for -all - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 50 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -offset -Offset to use - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system,can be set using Set-SnipeitInfo command @@ -216,21 +231,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitConsumable.md b/docs/Get-SnipeitConsumable.md index 647e6b4..5286b59 100644 --- a/docs/Get-SnipeitConsumable.md +++ b/docs/Get-SnipeitConsumable.md @@ -49,30 +49,30 @@ Returns specific consumable ## PARAMETERS -### -search -A text string to search the consumables +### -all +A return all results ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` -### -id -A id of specific consumable +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32[] -Parameter Sets: Get with ID +Type: String +Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -109,6 +109,68 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -expand +Whether to include detailed information on categories, etc (true) or just the text name (false) + +```yaml +Type: SwitchParameter +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +A id of specific consumable + +```yaml +Type: Int32[] +Parameter Sets: Get with ID +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -limit +Specify the number of results you wish to return. +Defaults to 50. +Defines batch size for -all + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 50 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +{{ Fill location_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -manufacturer_id Id number of manufacturer @@ -124,8 +186,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -{{ Fill location_id Description }} +### -offset +Offset to use ```yaml Type: Int32 @@ -154,6 +216,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -search +A text string to search the consumables + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -sort Sort results by column @@ -169,68 +246,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -expand -Whether to include detailed information on categories, etc (true) or just the text name (false) - -```yaml -Type: SwitchParameter -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -limit -Specify the number of results you wish to return. -Defaults to 50. -Defines batch size for -all - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 50 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -offset -Offset to use - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -all -A return all results - -```yaml -Type: SwitchParameter -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system,can be set using Set-SnipeitInfo command @@ -246,21 +261,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitCustomField.md b/docs/Get-SnipeitCustomField.md index 9c3311f..7e60a99 100644 --- a/docs/Get-SnipeitCustomField.md +++ b/docs/Get-SnipeitCustomField.md @@ -28,6 +28,21 @@ Get-SnipeitCustomField -url "https://assets.example.com" -token "token..." ## PARAMETERS +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id A id of specific field @@ -58,21 +73,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitDepartment.md b/docs/Get-SnipeitDepartment.md index c09a37f..4dab099 100644 --- a/docs/Get-SnipeitDepartment.md +++ b/docs/Get-SnipeitDepartment.md @@ -45,16 +45,31 @@ Get-SnipeitDepartment -id 1 ## PARAMETERS -### -search -A text string to search the Departments data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,21 +90,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -122,17 +122,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -search +A text string to search the Departments data + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -167,21 +182,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitFieldset.md b/docs/Get-SnipeitFieldset.md index 904a319..7e585c1 100644 --- a/docs/Get-SnipeitFieldset.md +++ b/docs/Get-SnipeitFieldset.md @@ -33,6 +33,21 @@ Get-SnipeitFieldset -url "https://assets.example.com" -token "token..." | Where- ## PARAMETERS +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id A id of specific fieldset @@ -63,21 +78,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitLicense.md b/docs/Get-SnipeitLicense.md index bc0ec29..c950521 100644 --- a/docs/Get-SnipeitLicense.md +++ b/docs/Get-SnipeitLicense.md @@ -53,51 +53,36 @@ Get-SnipeitLicense -id 1 ## PARAMETERS -### -search -A text string to search the Licenses data +### -all +A return all results, works with -offset and other parameters + +```yaml +Type: SwitchParameter +Parameter Sets: Search, Get licenses checked out to user ID, Get licenses checked out to asset ID +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String -Parameter Sets: Search +Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -id -A id of specific License - -```yaml -Type: Int32 -Parameter Sets: Get with ID -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -user_id -{{ Fill user_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Get licenses checked out to user ID -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -asset_id {{ Fill asset_id Description }} @@ -113,17 +98,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -name -{{ Fill name Description }} +### -category_id +{{ Fill category_id Description }} ```yaml -Type: String +Type: Int32 Parameter Sets: Search Aliases: Required: False Position: Named -Default value: None +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -143,111 +128,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -product_key -{{ Fill product_key Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order_number -{{ Fill order_number Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -purchase_order -{{ Fill purchase_order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -license_name -{{ Fill license_name Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -license_email -{{ Fill license_email Description }} - -```yaml -Type: MailAddress -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manufacturer_id -{{ Fill manufacturer_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -supplier_id -{{ Fill supplier_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -depreciation_id {{ Fill depreciation_id Description }} @@ -263,8 +143,100 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -category_id -{{ Fill category_id Description }} +### -id +A id of specific License + +```yaml +Type: Int32 +Parameter Sets: Get with ID +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -license_email +{{ Fill license_email Description }} + +```yaml +Type: MailAddress +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -license_name +{{ Fill license_name Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -limit +Specify the number of results you wish to return. +Defaults to 50. +Defines batch size for -all + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 50 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manufacturer_id +{{ Fill manufacturer_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +{{ Fill name Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -offset +Offset to use ```yaml Type: Int32 @@ -293,6 +265,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -order_number +{{ Fill order_number Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -product_key +{{ Fill product_key Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -purchase_order +{{ Fill purchase_order Description }} + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -search +A text string to search the Licenses data + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -sort {{ Fill sort Description }} @@ -308,25 +340,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -limit -Specify the number of results you wish to return. -Defaults to 50. -Defines batch size for -all - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 50 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -offset -Offset to use +### -supplier_id +{{ Fill supplier_id Description }} ```yaml Type: Int32 @@ -340,21 +355,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters - -```yaml -Type: SwitchParameter -Parameter Sets: Search, Get licenses checked out to user ID, Get licenses checked out to asset ID -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -370,17 +370,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -user_id +{{ Fill user_id Description }} ```yaml -Type: String -Parameter Sets: (All) +Type: Int32 +Parameter Sets: Get licenses checked out to user ID Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/Get-SnipeitLicenseSeat.md b/docs/Get-SnipeitLicenseSeat.md index 4646dd1..7f74a74 100644 --- a/docs/Get-SnipeitLicenseSeat.md +++ b/docs/Get-SnipeitLicenseSeat.md @@ -29,6 +29,36 @@ Get-SnipeitLicenseSeat -id 1 ## PARAMETERS +### -all +A return all results, works with -offset and other parameters + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id A id of specific License @@ -44,21 +74,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -seat_id -A id of specific seat - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -91,17 +106,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -seat_id +A id of specific seat ```yaml -Type: SwitchParameter +Type: Int32 Parameter Sets: (All) Aliases: Required: False -Position: Named -Default value: False +Position: 2 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -121,21 +136,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Get-SnipeitLocation.md b/docs/Get-SnipeitLocation.md index 36cb811..a45b9cd 100644 --- a/docs/Get-SnipeitLocation.md +++ b/docs/Get-SnipeitLocation.md @@ -40,16 +40,31 @@ Get-SnipeitLocation -id 3 ## PARAMETERS -### -search -A text string to search the Locations data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -70,21 +85,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,38 +117,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command +### -search +A text string to search the Locations data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitManufacturer.md b/docs/Get-SnipeitManufacturer.md index cbc56d4..533212a 100644 --- a/docs/Get-SnipeitManufacturer.md +++ b/docs/Get-SnipeitManufacturer.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: @@ -42,16 +42,31 @@ Returns manufacturer with id 3 ## PARAMETERS -### -search -A text string to search the Manufactures data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -72,21 +87,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -119,38 +119,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command +### -search +A text string to search the Manufactures data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitModel.md b/docs/Get-SnipeitModel.md index c7c1fee..0094e59 100644 --- a/docs/Get-SnipeitModel.md +++ b/docs/Get-SnipeitModel.md @@ -40,16 +40,31 @@ Get-SnipeitModel -id 1 ## PARAMETERS -### -search -A text string to search the Models data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -70,21 +85,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,38 +117,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command +### -search +A text string to search the Models data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitStatus.md b/docs/Get-SnipeitStatus.md index d7a9ce6..9740cb4 100644 --- a/docs/Get-SnipeitStatus.md +++ b/docs/Get-SnipeitStatus.md @@ -40,16 +40,31 @@ Get-SnipeitStatus -id 3 ## PARAMETERS -### -search -A text string to search the Status Labels data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -70,21 +85,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,38 +117,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command +### -search +A text string to search the Status Labels data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitSupplier.md b/docs/Get-SnipeitSupplier.md index 997dc1c..6b7be7b 100644 --- a/docs/Get-SnipeitSupplier.md +++ b/docs/Get-SnipeitSupplier.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: @@ -40,16 +40,31 @@ Get-SnipeitSupplier -id 2 ## PARAMETERS -### -search -A text string to search the Supliers data +### -all +A return all results, works with -offset and other parameters ```yaml -Type: String +Type: SwitchParameter Parameter Sets: Search Aliases: Required: False Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -70,21 +85,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: Desc -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -limit Specify the number of results you wish to return. Defaults to 50. @@ -117,38 +117,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter +Type: String Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc Accept pipeline input: False Accept wildcard characters: False ``` -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command +### -search +A text string to search the Supliers data ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitUser.md b/docs/Get-SnipeitUser.md index e0bbeb5..05e6766 100644 --- a/docs/Get-SnipeitUser.md +++ b/docs/Get-SnipeitUser.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: @@ -62,36 +62,6 @@ Get users with accessory id 3 has been checked out to ## PARAMETERS -### -search -A text string to search the User data - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -id -A id of specific User - -```yaml -Type: String -Parameter Sets: Get with ID -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -accessory_id {{ Fill accessory_id Description }} @@ -107,6 +77,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -all +A return all results, works with -offset and other parameters + +```yaml +Type: SwitchParameter +Parameter Sets: Search, Get users a specific accessory id has been checked out to +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -company_id {{ Fill company_id Description }} @@ -122,36 +122,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -{{ Fill location_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -group_id -{{ Fill group_id Description }} - -```yaml -Type: Int32 -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -department_id {{ Fill department_id Description }} @@ -167,21 +137,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -username -Search string for username field - -```yaml -Type: String -Parameter Sets: Search -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -email Search string for email field @@ -197,17 +152,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order -{{ Fill order Description }} +### -group_id +{{ Fill group_id Description }} ```yaml -Type: String +Type: Int32 Parameter Sets: Search Aliases: Required: False Position: Named -Default value: Desc +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +A id of specific User + +```yaml +Type: String +Parameter Sets: Get with ID +Aliases: + +Required: False +Position: Named +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -229,6 +199,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -location_id +{{ Fill location_id Description }} + +```yaml +Type: Int32 +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -offset Offset to use @@ -244,17 +229,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -all -A return all results, works with -offset and other parameters +### -order +{{ Fill order Description }} ```yaml -Type: SwitchParameter -Parameter Sets: Search, Get users a specific accessory id has been checked out to +Type: String +Parameter Sets: Search Aliases: Required: False Position: Named -Default value: False +Default value: Desc +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -search +A text string to search the User data + +```yaml +Type: String +Parameter Sets: Search +Aliases: + +Required: False +Position: Named +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -274,15 +274,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -username +Search string for username field ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: Search Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/docs/New-SnipeitAccessory.md b/docs/New-SnipeitAccessory.md index 14c6023..de15744 100644 --- a/docs/New-SnipeitAccessory.md +++ b/docs/New-SnipeitAccessory.md @@ -31,8 +31,8 @@ New-SnipeitAccessory -name "Accessory" -qty 3 -category_id 1 ## PARAMETERS -### -name -Accessory name +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -40,27 +40,12 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Quantity of the accessory you have - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id ID number of the category the accessory belongs to @@ -91,6 +76,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -location_id +ID number of the location the accessory is assigned to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -manufacturer_id ID number of the manufacturer for this accessory. @@ -106,17 +106,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order_number -Order number for this accessory. +### -min_amt +Min quantity of the accessory before alert is triggered ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Aliases: Required: False -Position: 6 -Default value: None +Position: 10 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -136,6 +136,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +Accessory name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order_number +Order number for this accessory. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -purchase_cost Cost of item being purchased. @@ -166,16 +196,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_amt -Min quantity of the accessory before alert is triggered +### -qty +Quantity of the accessory you have ```yaml Type: Int32 Parameter Sets: (All) Aliases: -Required: False -Position: 10 +Required: True +Position: 2 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -196,21 +226,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -ID number of the location the accessory is assigned to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -226,16 +241,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 14 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -257,21 +272,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitAsset.md b/docs/New-SnipeitAsset.md index 29da9de..34bef7c 100644 --- a/docs/New-SnipeitAsset.md +++ b/docs/New-SnipeitAsset.md @@ -45,21 +45,67 @@ Using customfields when creating asset. ## PARAMETERS -### -status_id -Required Status ID of the asset, this can be got using Get-Status +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 15 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -asset_tag +Asset Tag for the Asset, not required when snipe asset_tag autogeneration is on. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: tag + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -company_id +Optional Company id ```yaml Type: Int32 Parameter Sets: (All) Aliases: -Required: True -Position: 1 +Required: False +Position: 6 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` +### -customfields +Hastable of custom fields and extra fields that need passing through to Snipeit. +Use internal field names from snipeit .You can use Get-CustomField to get internal field names. + +```yaml +Type: Hashtable +Parameter Sets: (All) +Aliases: CustomValues + +Required: False +Position: 16 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -model_id Required Model ID of the asset, this can be got using Get-Model @@ -90,66 +136,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -asset_tag -Asset Tag for the Asset, not required when snipe asset_tag autogeneration is on. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: tag - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -serial -Optional Serial number of the Asset - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -company_id -Optional Company id - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -order_number -Optional Order number - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -notes Optional Notes @@ -165,17 +151,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -warranty_months -{{ Fill warranty_months Description }} +### -order_number +Optional Order number ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 9 -Default value: 0 +Position: 7 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -210,21 +196,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -supplier_id -{{ Fill supplier_id Description }} - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -rtd_location_id Optional Default location id for the asset @@ -240,6 +211,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -serial +Optional Serial number of the Asset + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -status_id +Required Status ID of the asset, this can be got using Get-Status + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -supplier_id +{{ Fill supplier_id Description }} + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -255,32 +271,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -warranty_months +{{ Fill warranty_months Description }} ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Aliases: -Required: True -Position: 15 -Default value: None +Required: False +Position: 9 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` -### -customfields -Hastable of custom fields and extra fields that need passing through to Snipeit. -Use internal field names from snipeit .You can use Get-CustomField to get internal field names. +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: Hashtable +Type: SwitchParameter Parameter Sets: (All) -Aliases: CustomValues +Aliases: cf Required: False -Position: 16 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -302,21 +317,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitAssetMaintenance.md b/docs/New-SnipeitAssetMaintenance.md index b578d04..9e047b9 100644 --- a/docs/New-SnipeitAssetMaintenance.md +++ b/docs/New-SnipeitAssetMaintenance.md @@ -31,6 +31,21 @@ New-SnipeitAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" ## PARAMETERS +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -asset_id Required ID of the asset, this can be got using Get-Asset @@ -46,21 +61,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -supplier_id -Required maintenance supplier - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -asset_maintenance_type {{ Fill asset_maintenance_type Description }} @@ -76,16 +76,61 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -title -Required Title of maintenance +### -completion_date +{{ Fill completion_date Description }} + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -cost +Optional cost + +```yaml +Type: Decimal +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -is_warranty +Optional Maintenance done under warranty + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -notes +Optional cost ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 4 +Required: False +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -106,61 +151,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -completion_date -{{ Fill completion_date Description }} +### -supplier_id +Required maintenance supplier ```yaml -Type: DateTime +Type: Int32 Parameter Sets: (All) Aliases: -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -is_warranty -Optional Maintenance done under warranty - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -cost -Optional cost - -```yaml -Type: Decimal -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 +Required: True +Position: 2 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` -### -notes -Optional cost +### -title +Required Title of maintenance ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 9 +Required: True +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -181,16 +196,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 11 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -212,21 +227,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitAudit.md b/docs/New-SnipeitAudit.md index 0ab2054..5925779 100644 --- a/docs/New-SnipeitAudit.md +++ b/docs/New-SnipeitAudit.md @@ -29,8 +29,8 @@ New-SnipeitAudit -tag 1 -location_id 1 ## PARAMETERS -### -tag -The asset tag of the asset you wish to audit +### -apiKey +{{ Fill apiKey Description }} ```yaml Type: String @@ -38,7 +38,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -59,6 +59,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -tag +The asset tag of the asset you wish to audit + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url {{ Fill url Description }} @@ -74,16 +89,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -{{ Fill apiKey Description }} +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 4 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,21 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitCategory.md b/docs/New-SnipeitCategory.md index 24c219c..beaa7dc 100644 --- a/docs/New-SnipeitCategory.md +++ b/docs/New-SnipeitCategory.md @@ -30,8 +30,8 @@ New-SnipeitCategory -name "Laptops" -category_type asset -url "Snipe-IT URL here ## PARAMETERS -### -name -Name of new category to be created +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,6 +60,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -checkin_email +If switch is present, send email to user on checkin/checkout + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -eula_text This allows you to customize your EULAs for specific types of assets @@ -75,17 +90,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -use_default_eula -If switch is present, use the primary default EULA +### -name +Name of new category to be created ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) Aliases: -Required: False -Position: Named -Default value: False +Required: True +Position: 1 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -105,21 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -checkin_email -If switch is present, send email to user on checkin/checkout - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -135,16 +135,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -use_default_eula +If switch is present, use the primary default EULA ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) Aliases: -Required: True -Position: 5 +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -166,21 +181,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitCompany.md b/docs/New-SnipeitCompany.md index 7d0bd5b..3d7a389 100644 --- a/docs/New-SnipeitCompany.md +++ b/docs/New-SnipeitCompany.md @@ -29,6 +29,21 @@ New-SnipeitCompany -name "Acme Company" ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -name Comapany name @@ -59,16 +74,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,21 +105,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitComponent.md b/docs/New-SnipeitComponent.md index 5d35311..19a69e5 100644 --- a/docs/New-SnipeitComponent.md +++ b/docs/New-SnipeitComponent.md @@ -30,8 +30,8 @@ An example ## PARAMETERS -### -name -Component name +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -60,21 +60,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Quantity of the components you have - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -company_id {{ Fill company_id Description }} @@ -105,6 +90,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +Component name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -order_number Order number of the component @@ -120,21 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -purchase_date -Date accessory was purchased - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -purchase_cost Cost of item being purchased. @@ -150,6 +135,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -purchase_date +Date accessory was purchased + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -qty +Quantity of the components you have + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -165,16 +180,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 10 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -196,21 +211,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitConsumable.md b/docs/New-SnipeitConsumable.md index c0620ee..c030a82 100644 --- a/docs/New-SnipeitConsumable.md +++ b/docs/New-SnipeitConsumable.md @@ -33,8 +33,8 @@ Create consumable with stock count 20 , alert when stock is 5 or lower ## PARAMETERS -### -name -Required Name of the Consumable +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -42,27 +42,12 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Required Quantity of comsumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id Required Category ID of the Consumable, this can be got using Get-SnipeitCategory @@ -78,21 +63,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_amt -Optional minimum quantity of comsumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -company_id Optional Company id @@ -108,8 +78,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order_number -Optional Order number +### -item_no +Item number for the consumable ```yaml Type: String @@ -117,27 +87,12 @@ Parameter Sets: (All) Aliases: Required: False -Position: 6 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -Manufaturer id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -location_id Location id number of the consumable @@ -153,31 +108,76 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -requestable -Is consumable requestable? +### -manufacturer_id +Manufaturer id number of the consumable ```yaml -Type: Boolean +Type: Int32 Parameter Sets: (All) Aliases: Required: False -Position: 9 -Default value: False +Position: 7 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` -### -purchase_date -Optional Purchase cost of the consumable +### -min_amt +Optional minimum quantity of comsumable ```yaml -Type: DateTime +Type: Int32 Parameter Sets: (All) Aliases: Required: False -Position: 10 +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the consumable in months + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +Required Name of the Consumable + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order_number +Optional Order number + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -198,32 +198,47 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -model_number -Model number of the consumable in months +### -purchase_date +Optional Purchase cost of the consumable ```yaml -Type: String +Type: DateTime Parameter Sets: (All) Aliases: Required: False -Position: 12 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -item_no -Item number for the consumable +### -qty +Required Quantity of comsumable ```yaml -Type: String +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -requestable +Is consumable requestable? + +```yaml +Type: Boolean Parameter Sets: (All) Aliases: Required: False -Position: 13 -Default value: None +Position: 9 +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -243,16 +258,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 15 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -274,21 +289,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitCustomField.md b/docs/New-SnipeitCustomField.md index 6702b24..e30a6ab 100644 --- a/docs/New-SnipeitCustomField.md +++ b/docs/New-SnipeitCustomField.md @@ -30,8 +30,8 @@ New-SnipeitCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "I ## PARAMETERS -### -name -The field's name, which is also the form label +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -39,14 +39,14 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -help_text -Any additional text you wish to display under the new form field to make it clearer what the gauges should be. +### -custom_format +In the case of format 'CUSTOM REGEX', this should be validation regex this field ```yaml Type: String @@ -54,7 +54,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 2 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,36 +75,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -format -How the field should be validated - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -field_values -In the case of list boxes, etc, this should be a list of the options available - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -field_encrypted Whether the field should be encrypted. (This can cause issues if you change it after the field was created.) @@ -121,6 +91,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -field_values +In the case of list boxes, etc, this should be a list of the options available + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -format +How the field should be validated + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -help_text +Any additional text you wish to display under the new form field to make it clearer what the gauges should be. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +The field's name, which is also the form label + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -show_in_email Whether or not to show the custom field in email notifications @@ -136,21 +166,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -custom_format -In the case of format 'CUSTOM REGEX', this should be validation regex this field - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -166,16 +181,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 10 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -197,21 +212,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitDepartment.md b/docs/New-SnipeitDepartment.md index fa4e1c3..a5a01b5 100644 --- a/docs/New-SnipeitDepartment.md +++ b/docs/New-SnipeitDepartment.md @@ -29,8 +29,8 @@ New-SnipeitDepartment -name "Department1" -company_id 1 -localtion_id 1 -manager ## PARAMETERS -### -name -Department Name +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -38,7 +38,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -89,6 +89,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +Department Name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -notes {{ Fill notes Description }} @@ -119,16 +134,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 7 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -150,21 +165,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitLicense.md b/docs/New-SnipeitLicense.md index 57264c2..73f46b1 100644 --- a/docs/New-SnipeitLicense.md +++ b/docs/New-SnipeitLicense.md @@ -33,8 +33,8 @@ New-SnipeitLicence -name "License" -seats 3 -company_id 1 ## PARAMETERS -### -name -Name of license being created +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -42,27 +42,12 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -seats -Number of license seats owned. - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id {{ Fill category_id Description }} @@ -168,6 +153,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +Name of license being created + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -notes License Notes @@ -243,6 +243,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -seats +Number of license seats owned. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -serial Serialnumber of license @@ -303,16 +318,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 19 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -334,21 +349,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitLocation.md b/docs/New-SnipeitLocation.md index 791a248..6b12649 100644 --- a/docs/New-SnipeitLocation.md +++ b/docs/New-SnipeitLocation.md @@ -31,21 +31,6 @@ New-SnipeitLocation -name "Room 1" -address "123 Asset Street" -parent_id 14 ## PARAMETERS -### -name -Name of the Location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -address Address line 1 of the location @@ -76,6 +61,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -city City of the location @@ -91,21 +91,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -state -Address State of the location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -country Country of the location @@ -121,21 +106,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -zip -The zip code of the location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -currency Currency used at the location @@ -151,6 +121,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ldap_ou +The LDAP OU of the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manager_id +The manager ID of the location + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +Name of the Location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -parent_id Parent location ID for the location @@ -166,23 +181,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manager_id -The manager ID of the location - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ldap_ou -The LDAP OU of the location +### -state +Address State of the location ```yaml Type: String @@ -190,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 11 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -211,16 +211,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -zip +The zip code of the location ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 13 +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -242,21 +257,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitManufacturer.md b/docs/New-SnipeitManufacturer.md index 2c96f52..434bb49 100644 --- a/docs/New-SnipeitManufacturer.md +++ b/docs/New-SnipeitManufacturer.md @@ -29,6 +29,21 @@ New-SnipeitManufacturer -name "HP" ## PARAMETERS +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the Manufacturer @@ -59,16 +74,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,21 +105,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitModel.md b/docs/New-SnipeitModel.md index 806409d..ea055b5 100644 --- a/docs/New-SnipeitModel.md +++ b/docs/New-SnipeitModel.md @@ -30,8 +30,8 @@ New-SnipeitModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 ## PARAMETERS -### -name -Name of the Asset Model +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -39,22 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,21 +60,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -eol {{ Fill eol Description }} @@ -120,6 +90,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -manufacturer_id +Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the Asset Model + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +Name of the Asset Model + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -135,16 +150,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 8 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -166,21 +181,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/New-SnipeitUser.md b/docs/New-SnipeitUser.md index d5ebfb9..99a4cc0 100644 --- a/docs/New-SnipeitUser.md +++ b/docs/New-SnipeitUser.md @@ -33,66 +33,6 @@ Creates new a new user who can't login to system ## PARAMETERS -### -first_name -Users first name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -last_name -Users last name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -username -Username for user - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -password -Password for user - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -activated {{ Fill activated Description }} @@ -108,61 +48,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -notes -User Notes +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -jobtitle -Users job tittle - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -email -email address - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -phone -Phone number - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 9 +Required: True +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -183,21 +78,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -ID number of localtion - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -department_id ID number of department @@ -213,17 +93,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manager_id -ID number of manager +### -email +email address ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 13 -Default value: 0 +Position: 8 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -243,6 +123,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -first_name +Users first name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -jobtitle +Users job tittle + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -last_name +Users last name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ldap_import Mark user as import from ldap @@ -258,6 +183,81 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -location_id +ID number of localtion + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manager_id +ID number of manager + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -notes +User Notes + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -password +Password for user + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -phone +Phone number + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -273,8 +273,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -username +Username for user ```yaml Type: String @@ -282,7 +282,22 @@ Parameter Sets: (All) Aliases: Required: True -Position: 17 +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -304,21 +319,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitAccessory.md b/docs/Remove-SnipeitAccessory.md index 7fabc47..51ea7a9 100644 --- a/docs/Remove-SnipeitAccessory.md +++ b/docs/Remove-SnipeitAccessory.md @@ -34,6 +34,21 @@ Get-SnipeitAccessory -search needle | Remove-SnipeitAccessory ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For accessory to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitAsset.md b/docs/Remove-SnipeitAsset.md index 0ee9e28..8ee957a 100644 --- a/docs/Remove-SnipeitAsset.md +++ b/docs/Remove-SnipeitAsset.md @@ -34,6 +34,21 @@ Get-SnipeitAsset -serial 123456789 | Remove-SnipeitAsset ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For Asset to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitAssetMaintenance.md b/docs/Remove-SnipeitAssetMaintenance.md index 94bb365..75f5e2f 100644 --- a/docs/Remove-SnipeitAssetMaintenance.md +++ b/docs/Remove-SnipeitAssetMaintenance.md @@ -29,6 +29,21 @@ Remove-SnipeitAssetMaintenance -ID 44 -url $url -apiKey $secret -Verbose ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID of the asset maintenance to be removed @@ -59,16 +74,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,21 +105,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitCategory.md b/docs/Remove-SnipeitCategory.md index 3609bb8..34734d6 100644 --- a/docs/Remove-SnipeitCategory.md +++ b/docs/Remove-SnipeitCategory.md @@ -34,6 +34,21 @@ Get-SnipeitCategory -search something | Remove-SnipeitCategory ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For categoryto be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitCompany.md b/docs/Remove-SnipeitCompany.md index 8b29a3b..b1609af 100644 --- a/docs/Remove-SnipeitCompany.md +++ b/docs/Remove-SnipeitCompany.md @@ -34,6 +34,21 @@ Get-SnipeitCompany | | Where-object {$_.name -like '*some*'} | Remove-SnipeitCom ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For Company to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitComponent.md b/docs/Remove-SnipeitComponent.md index 9dab005..0e68c5a 100644 --- a/docs/Remove-SnipeitComponent.md +++ b/docs/Remove-SnipeitComponent.md @@ -34,6 +34,21 @@ Get-SnipeitComponent -search 123456789 | Remove-SnipeitComponent ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id {{ Fill id Description }} @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitConsumable.md b/docs/Remove-SnipeitConsumable.md index ee11746..82a0e2d 100644 --- a/docs/Remove-SnipeitConsumable.md +++ b/docs/Remove-SnipeitConsumable.md @@ -34,6 +34,21 @@ Get-SnipeitConsumable -search "paper" | Remove-Snipeitconsumable ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For consumable to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitCustomField.md b/docs/Remove-SnipeitCustomField.md index 3e68616..fa21c51 100644 --- a/docs/Remove-SnipeitCustomField.md +++ b/docs/Remove-SnipeitCustomField.md @@ -34,6 +34,21 @@ Get-SnipeitCustomField | Where-object {$_.name -like '*address*'} | Remove-Snip ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For field to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitDepartment.md b/docs/Remove-SnipeitDepartment.md index 59c2dcf..a2f99e3 100644 --- a/docs/Remove-SnipeitDepartment.md +++ b/docs/Remove-SnipeitDepartment.md @@ -34,6 +34,21 @@ Get-SnipeitDepartment | Where-object {$_.name -like '*head*'} | Remove-SnipeitDe ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For department to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitLicense.md b/docs/Remove-SnipeitLicense.md index 0c23d15..e778b67 100644 --- a/docs/Remove-SnipeitLicense.md +++ b/docs/Remove-SnipeitLicense.md @@ -34,6 +34,21 @@ Get-SnipeitLicence -product_key 123456789 | Remove-SnipeitLicense ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For licence to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitLocation.md b/docs/Remove-SnipeitLocation.md index af55635..a7e8d11 100644 --- a/docs/Remove-SnipeitLocation.md +++ b/docs/Remove-SnipeitLocation.md @@ -34,6 +34,21 @@ Get-SnipeitLocation -city Arkham | Remove-SnipeitLocation ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For location to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitManufacturer.md b/docs/Remove-SnipeitManufacturer.md index a3f40e1..ab0a019 100644 --- a/docs/Remove-SnipeitManufacturer.md +++ b/docs/Remove-SnipeitManufacturer.md @@ -34,6 +34,21 @@ Get-SnipeitManufacturer | Where-object {$_.name -like '*something*'} | Remove-S ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For manufacturer to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitModel.md b/docs/Remove-SnipeitModel.md index 6d54999..04592bd 100644 --- a/docs/Remove-SnipeitModel.md +++ b/docs/Remove-SnipeitModel.md @@ -34,6 +34,21 @@ Get-SnipeitModel -search needle | Remove-SnipeitModel ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For Model to be removed @@ -64,16 +79,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -95,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Remove-SnipeitUser.md b/docs/Remove-SnipeitUser.md index 8614a11..850d37f 100644 --- a/docs/Remove-SnipeitUser.md +++ b/docs/Remove-SnipeitUser.md @@ -28,6 +28,21 @@ Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose ## PARAMETERS +### -APIKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For User to be removed @@ -58,16 +73,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -89,21 +104,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Reset-SnipeitAccessoryOwner.md b/docs/Reset-SnipeitAccessoryOwner.md index 2095623..8d8e733 100644 --- a/docs/Reset-SnipeitAccessoryOwner.md +++ b/docs/Reset-SnipeitAccessoryOwner.md @@ -35,6 +35,21 @@ Get-SnipeitAccessoryOwner -assigned_pivot_id xxx ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -assigned_pivot_id This is the assigned_pivot_id of the accessory+user relationships in the accessories_users table Use Get-SnipeitAccessoryOwner to find out nooded value @@ -66,16 +81,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 3 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -97,21 +112,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Reset-SnipeitAssetOwner.md b/docs/Reset-SnipeitAssetOwner.md index d032424..f901aeb 100644 --- a/docs/Reset-SnipeitAssetOwner.md +++ b/docs/Reset-SnipeitAssetOwner.md @@ -29,6 +29,21 @@ Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id Unique ID For asset to checkin @@ -44,21 +59,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -status_id -Change asset status to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -location_id Location id to change asset location to @@ -89,6 +89,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -status_id +Change asset status to + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command @@ -104,16 +119,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 6 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -135,21 +150,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index 85225ef..9adeae2 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -31,51 +31,21 @@ Set-SnipeitAccessory -id 1 -qty 3 ## PARAMETERS -### -id -{{ Fill id Description }} - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -name -ID number of Accessory or array of IDs on Snipe-It system +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfoeItInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 2 +Required: True +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Quantity of the accessory you have - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id ID number of the category the accessory belongs to @@ -106,6 +76,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +{{ Fill id Description }} + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -manufacturer_id ID number of the manufacturer for this accessory. @@ -121,6 +106,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -min_amt +Minimum amount of the accessory, before alert is triggered + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -model_number Model number for this accessory @@ -136,6 +136,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +ID number of Accessory or array of IDs on Snipe-It system + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -order_number Order number for this accessory. @@ -181,8 +196,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_amt -Minimum amount of the accessory, before alert is triggered +### -qty +Quantity of the accessory you have ```yaml Type: Int32 @@ -190,8 +205,8 @@ Parameter Sets: (All) Aliases: Required: False -Position: 11 -Default value: None +Position: 3 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -226,16 +241,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfoeItInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 14 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -257,21 +272,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAccessoryOwner.md b/docs/Set-SnipeitAccessoryOwner.md index c9f2e03..52f65bc 100644 --- a/docs/Set-SnipeitAccessoryOwner.md +++ b/docs/Set-SnipeitAccessoryOwner.md @@ -29,18 +29,18 @@ Set-SnipeitAccessoryOwner -id 1 -assigned_id 1 -note "testing check out to user ## PARAMETERS -### -id -Unique ID For accessory or array of IDs to checkout +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32[] +Type: String Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 5 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -59,6 +59,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +Unique ID For accessory or array of IDs to checkout + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -note Notes about checkout @@ -89,16 +104,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 5 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -120,21 +135,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAsset.md b/docs/Set-SnipeitAsset.md index c2f116a..900e5da 100644 --- a/docs/Set-SnipeitAsset.md +++ b/docs/Set-SnipeitAsset.md @@ -43,77 +43,33 @@ Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated' ## PARAMETERS -### -id -ID of the Asset or array of IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -name -Asset name +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 2 +Required: True +Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -status_id -Status ID of the asset, this can be got using Get-Status +### -archived +Whether or not the asset is archived. +Archived assets cannot be checked out and do not show up in the deployable asset screens ```yaml -Type: Int32 +Type: Boolean Parameter Sets: (All) Aliases: Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_id -Model ID of the asset, this can be got using Get-Model - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -last_checkout -Date the asset was last checked out - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None +Position: 14 +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -148,8 +104,68 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -serial -Serial number of the asset +### -customfields +Hastable of custom fields and extra fields that need passing through to Snipeit + +```yaml +Type: Hashtable +Parameter Sets: (All) +Aliases: CustomValues + +Required: False +Position: 20 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +ID of the Asset or array of IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -last_checkout +Date the asset was last checked out + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_id +Model ID of the asset, this can be got using Get-Model + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +Asset name ```yaml Type: String @@ -157,7 +173,22 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -notes +Notes about asset + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -178,21 +209,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -warranty_months -Number of months for the asset warranty - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -purchase_cost Purchase cost of the asset, without a currency symbol @@ -238,18 +254,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -archived -Whether or not the asset is archived. -Archived assets cannot be checked out and do not show up in the deployable asset screens +### -RequestType +Http request type to send Snipe IT system. +Defaults to Put youc use Patch if needed ```yaml -Type: Boolean +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 14 -Default value: False +Position: 17 +Default value: Patch Accept pipeline input: False Accept wildcard characters: False ``` @@ -269,8 +285,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -notes -Notes about asset +### -serial +Serial number of the asset ```yaml Type: String @@ -278,24 +294,23 @@ Parameter Sets: (All) Aliases: Required: False -Position: 16 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -RequestType -Http request type to send Snipe IT system. -Defaults to Put youc use Patch if needed +### -status_id +Status ID of the asset, this can be got using Get-Status ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Aliases: Required: False -Position: 17 -Default value: Patch +Position: 3 +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` @@ -315,31 +330,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command +### -warranty_months +Number of months for the asset warranty ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Aliases: -Required: True -Position: 19 +Required: False +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -customfields -Hastable of custom fields and extra fields that need passing through to Snipeit +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: Hashtable +Type: SwitchParameter Parameter Sets: (All) -Aliases: CustomValues +Aliases: cf Required: False -Position: 20 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -361,21 +376,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitAssetOwner.md b/docs/Set-SnipeitAssetOwner.md index fd048f7..5af3c6a 100644 --- a/docs/Set-SnipeitAssetOwner.md +++ b/docs/Set-SnipeitAssetOwner.md @@ -30,18 +30,18 @@ Set-SnipeitAssetOwner -id 1 -assigned_id 1 -checkout_to_type user -note "testing ## PARAMETERS -### -id -Unique IDs For assets to checkout +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32[] +Type: String Parameter Sets: (All) Aliases: Required: True -Position: 1 +Position: 9 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -60,6 +60,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -checkout_at +Optional date to override the checkout time of now + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -checkout_to_type {{ Fill checkout_to_type Description }} @@ -75,6 +90,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -expected_checkin +Optional date the asset is expected to be checked in + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +Unique IDs For assets to checkout + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -name Optional new asset name. This is useful for changing the asset's name on new checkout, @@ -108,36 +153,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -expected_checkin -Optional date the asset is expected to be checked in - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -checkout_at -Optional date to override the checkout time of now - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -153,16 +168,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 9 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -184,21 +199,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitCategory.md b/docs/Set-SnipeitCategory.md index b1f87f6..a380ae5 100644 --- a/docs/Set-SnipeitCategory.md +++ b/docs/Set-SnipeitCategory.md @@ -30,6 +30,66 @@ Set-SnipeitCategory -id 4 -name "Laptops" ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -category_type +{{ Fill category_type Description }} + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -checkin_email +Should the user be emailed the EULA and/or an acceptance confirmation email when this item is checked in? + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -eula_text +This allows you to customize your EULAs for specific types of assets + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id {{ Fill id Description }} @@ -60,51 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -category_type -{{ Fill category_type Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -eula_text -This allows you to customize your EULAs for specific types of assets - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -use_default_eula -If switch is present, use the primary default EULA - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -require_acceptance If switch is present, require users to confirm acceptance of assets in this category @@ -120,21 +135,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -checkin_email -Should the user be emailed the EULA and/or an acceptance confirmation email when this item is checked in? - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -150,16 +150,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -use_default_eula +If switch is present, use the primary default EULA ```yaml -Type: String +Type: Boolean Parameter Sets: (All) Aliases: -Required: True -Position: 9 +Required: False +Position: 5 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -181,21 +196,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitCompany.md b/docs/Set-SnipeitCompany.md index 7e1470c..53ee457 100644 --- a/docs/Set-SnipeitCompany.md +++ b/docs/Set-SnipeitCompany.md @@ -29,6 +29,21 @@ An example ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id ID number of company @@ -74,16 +89,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 4 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,21 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitComponent.md b/docs/Set-SnipeitComponent.md index 501bb38..69b6a50 100644 --- a/docs/Set-SnipeitComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -30,6 +30,36 @@ An example ## PARAMETERS +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -company_id +{{ Fill company_id Description }} + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id ID number of name @@ -45,17 +75,17 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -qty -Quantity of the components you have +### -location_id +ID number of the location the accessory is assigned to ```yaml Type: Int32 Parameter Sets: (All) Aliases: -Required: True -Position: 2 -Default value: 0 +Required: False +Position: 6 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -90,36 +120,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -company_id -{{ Fill company_id Description }} - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -location_id -ID number of the location the accessory is assigned to - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -order_number Order number for the accessory @@ -135,21 +135,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -purchase_date -Date accessory was purchased - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -purchase_cost Cost of item being purchased. @@ -165,6 +150,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -purchase_date +Date accessory was purchased + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -qty +Quantity of the components you have + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -180,16 +195,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 11 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -211,21 +226,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitConsumable.md b/docs/Set-SnipeitConsumable.md index 7b4e353..2379254 100644 --- a/docs/Set-SnipeitConsumable.md +++ b/docs/Set-SnipeitConsumable.md @@ -33,51 +33,21 @@ Create consumable with stock count 20 , alert when stock is 5 or lower ## PARAMETERS -### -id -Optional id number of the Consumable - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -name -Optional Name of the Consumable +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 2 +Required: True +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -qty -Optional Quantity of comsumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id Required Category ID of the Consumable, this can be got using Get-SnipeitCategory @@ -93,21 +63,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -min_amt -Optional minimum quantity of comsumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -company_id Optional Company id @@ -123,106 +78,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -order_number -Optional Order number +### -id +Optional id number of the Consumable ```yaml -Type: String +Type: Int32[] Parameter Sets: (All) Aliases: -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -manufacturer_id -Manufaturer id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -location_id -Location id number of the consumable - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -requestable -Is consumable requestable? - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -purchase_date -Optional Purchase cost of the consumable - -```yaml -Type: DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: 11 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -purchase_cost -Optional Purchase cost of the consumable - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 12 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the consumable in months - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 13 +Required: True +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -243,6 +108,156 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -location_id +Location id number of the consumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manufacturer_id +Manufaturer id number of the consumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -min_amt +Optional minimum quantity of comsumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the consumable in months + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +Optional Name of the Consumable + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -order_number +Optional Order number + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -purchase_cost +Optional Purchase cost of the consumable + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -purchase_date +Optional Purchase cost of the consumable + +```yaml +Type: DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -qty +Optional Quantity of comsumable + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -requestable +Is consumable requestable? + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -258,16 +273,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 16 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -289,21 +304,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitCustomField.md b/docs/Set-SnipeitCustomField.md index 6c41097..78fe1f3 100644 --- a/docs/Set-SnipeitCustomField.md +++ b/docs/Set-SnipeitCustomField.md @@ -30,6 +30,112 @@ New-SnipeitCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "I ## PARAMETERS +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -custom_format +In the case of format 'CUSTOM REGEX', this should be validation regex this field + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -element +Form field type that should be displayed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -field_encrypted +Whether the field should be encrypted. +(This can cause issues if you change it after the field was created.) + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -field_values +In the case of list boxes, etc, this should be a list of the options available + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -format +How the field should be validated + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -help_text +Any additional text you wish to display under the new form field to make it clearer what the gauges should be. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id {{ Fill id Description }} @@ -60,82 +166,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -help_text -Any additional text you wish to display under the new form field to make it clearer what the gauges should be. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -element -Form field type that should be displayed. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -format -How the field should be validated - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -field_values -In the case of list boxes, etc, this should be a list of the options available - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -field_encrypted -Whether the field should be encrypted. -(This can cause issues if you change it after the field was created.) - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -show_in_email Whether or not to show the custom field in email notifications @@ -151,21 +181,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -custom_format -In the case of format 'CUSTOM REGEX', this should be validation regex this field - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 9 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -181,16 +196,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 11 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -212,21 +227,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitDepartment.md b/docs/Set-SnipeitDepartment.md index f0b2179..c701fc9 100644 --- a/docs/Set-SnipeitDepartment.md +++ b/docs/Set-SnipeitDepartment.md @@ -30,31 +30,16 @@ Set-SnipeitDepartment -id 4 -manager_id 3 ## PARAMETERS -### -id -Id number of Department - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -name -Department Name +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 2 +Required: True +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,6 +60,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +Id number of Department + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -location_id ID number of location @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +Department Name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -notes {{ Fill notes Description }} @@ -135,16 +150,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 8 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -166,21 +181,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitInfo.md b/docs/Set-SnipeitInfo.md index 20c3bd9..cb41bfc 100644 --- a/docs/Set-SnipeitInfo.md +++ b/docs/Set-SnipeitInfo.md @@ -28,21 +28,6 @@ Set-SnipeitInfo -url $url -apiKey -Verbose ## PARAMETERS -### -url -URL of Snipeit system, can be set using Set-SnipeitInfo command - -```yaml -Type: Uri -Parameter Sets: (All) -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -apiKey User's API Key for Snipeit, can be set using Set-SnipeitInfo command @@ -58,6 +43,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command + +```yaml +Type: Uri +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitLicense.md b/docs/Set-SnipeitLicense.md index 95e2b09..8730895 100644 --- a/docs/Set-SnipeitLicense.md +++ b/docs/Set-SnipeitLicense.md @@ -33,51 +33,21 @@ Set-SnipeitLicence -name "License" -seats 3 -company_id 1 ## PARAMETERS -### -id -ID number of license or array of license IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -name -Name of license +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 2 +Required: True +Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -seats -Number of license seats owned. - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -category_id {{ Fill category_id Description }} @@ -123,6 +93,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +ID number of license or array of license IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -license_email Email address associated with license @@ -183,6 +168,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -name +Name of license + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -notes License Notes @@ -258,6 +258,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -seats +Number of license seats owned. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -serial Serialnumber of license @@ -318,16 +333,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 20 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -349,21 +364,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitLicenseSeat.md b/docs/Set-SnipeitLicenseSeat.md index 889f518..7f53a74 100644 --- a/docs/Set-SnipeitLicenseSeat.md +++ b/docs/Set-SnipeitLicenseSeat.md @@ -42,46 +42,16 @@ Checkin licence seat id 1 of licence id 1 ## PARAMETERS -### -id -Unique ID For license to checkout or array of IDs +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32[] +Type: String Parameter Sets: (All) Aliases: Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -seat_id -{{ Fill seat_id Description }} - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: True -Position: 2 -Default value: 0 -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -assigned_to -Id of target user - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: assigned_id - -Required: False -Position: 3 +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -102,6 +72,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -assigned_to +Id of target user + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: assigned_id + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +Unique ID For license to checkout or array of IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -note Notes about checkout @@ -117,6 +117,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -seat_id +{{ Fill seat_id Description }} + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -132,16 +147,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 7 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -163,21 +178,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index 598222f..f1fa607 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -31,36 +31,6 @@ Set-SnipeitLocation -id 123 -name "Some storage" -parent_id 100 ## PARAMETERS -### -id -ID number of location or array or IDs - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -name -Name of Location - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -address Address line 1 @@ -91,46 +61,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -state -Address State +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -country -Address Contry - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -zip -Address zipcode - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 +Required: True +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -151,6 +91,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -country +Address Contry + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -currency Currency used at the location @@ -166,6 +121,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -id +ID number of location or array or IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ldap_ou +LDAP OU of Location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -manager_id Location manager as id @@ -181,8 +166,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ldap_ou -LDAP OU of Location +### -name +Name of Location ```yaml Type: String @@ -190,7 +175,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 11 +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -211,6 +196,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -state +Address State + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -226,16 +226,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -zip +Address zipcode ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 14 +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -257,21 +272,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitModel.md b/docs/Set-SnipeitModel.md index f233223..9397c5e 100644 --- a/docs/Set-SnipeitModel.md +++ b/docs/Set-SnipeitModel.md @@ -30,46 +30,16 @@ New-SnipeitModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 ## PARAMETERS -### -id -ID number of the Asset Model or array of IDs +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml -Type: Int32[] +Type: String Parameter Sets: (All) Aliases: Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -name -Name of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -model_number -Model number of the Asset Model - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,17 +60,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manufacturer_id -Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer +### -custom_fieldset_id +{{ Fill custom_fieldset_id Description }} ```yaml Type: Int32 Parameter Sets: (All) -Aliases: +Aliases: fieldset_id Required: False -Position: 5 -Default value: 0 +Position: 7 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -120,16 +90,61 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -custom_fieldset_id -{{ Fill custom_fieldset_id Description }} +### -id +ID number of the Asset Model or array of IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -manufacturer_id +Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer ```yaml Type: Int32 Parameter Sets: (All) -Aliases: fieldset_id +Aliases: Required: False -Position: 7 +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -model_number +Model number of the Asset Model + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -name +Name of the Asset Model + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -150,16 +165,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 9 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -181,21 +196,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitStatus.md b/docs/Set-SnipeitStatus.md index 3dc7448..2e23b50 100644 --- a/docs/Set-SnipeitStatus.md +++ b/docs/Set-SnipeitStatus.md @@ -35,6 +35,51 @@ Set-SnipeitStatus -id 3 -name 'Waiting for arrival' -type pending ## PARAMETERS +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -color +Hex code showing what color the status label should be on the pie chart in the dashboard + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -default_label +1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id A id of specific Status Label @@ -65,21 +110,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -type -{{ Fill type Description }} - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -notes {{ Fill notes Description }} @@ -95,21 +125,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -color -Hex code showing what color the status label should be on the pie chart in the dashboard - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -show_in_nav 1 or 0 - determine whether the status label should show in the left-side nav of the web GUI @@ -125,17 +140,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -default_label -1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses +### -type +{{ Fill type Description }} ```yaml -Type: Boolean +Type: String Parameter Sets: (All) Aliases: -Required: False -Position: 7 -Default value: False +Required: True +Position: 3 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -155,16 +170,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeitInfo command +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Aliases: +Aliases: cf -Required: True -Position: 9 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -186,21 +201,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/Set-SnipeitUser.md b/docs/Set-SnipeitUser.md index 7e9bb14..1e52ef2 100644 --- a/docs/Set-SnipeitUser.md +++ b/docs/Set-SnipeitUser.md @@ -33,121 +33,31 @@ Updates user with id 3 ## PARAMETERS -### -id -ID number of Snipe--It user or array of IDs +### -activated +Can user log in to snipe-it? ```yaml -Type: Int32[] +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String Parameter Sets: (All) Aliases: Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -first_name -Users first name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -last_name -Users last name - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 3 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -userName -Username for user - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 4 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -jobtitle -Users job tittle - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 5 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -email -email address - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 6 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -phone -Phone number - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 7 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -password -Password for user - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 8 +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -168,21 +78,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -location_id -ID number of localtion - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 10 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -department_id ID number of department @@ -198,16 +93,16 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -manager_id -ID number of manager +### -email +email address ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 12 +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -228,17 +123,92 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -activated -Can user log in to snipe-it? +### -first_name +Users first name ```yaml -Type: Boolean +Type: String Parameter Sets: (All) Aliases: Required: False -Position: 14 -Default value: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +ID number of Snipe--It user or array of IDs + +```yaml +Type: Int32[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -jobtitle +Users job tittle + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -last_name +Users last name + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -location_id +ID number of localtion + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -manager_id +ID number of manager + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -258,6 +228,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -password +Password for user + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -phone +Phone number + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -273,16 +273,31 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command +### -userName +Username for user ```yaml Type: String Parameter Sets: (All) Aliases: -Required: True -Position: 17 +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -304,21 +319,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/docs/SnipeitPS.md b/docs/SnipeitPS.md index ed87ff5..aba8a60 100644 --- a/docs/SnipeitPS.md +++ b/docs/SnipeitPS.md @@ -12,209 +12,200 @@ Locale: en-US ## SnipeitPS Cmdlets ### [Get-SnipeitAccessory](Get-SnipeitAccessory.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Accessories ### [Get-SnipeitAccessoryOwner](Get-SnipeitAccessoryOwner.md) -{{ Fill in the Description }} +Get list of checked out accessories ### [Get-SnipeitActivity](Get-SnipeitActivity.md) -{{ Fill in the Description }} +Gets and search Snipe-it Activity history ### [Get-SnipeitAsset](Get-SnipeitAsset.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Assets or specific asset ### [Get-SnipeitAssetMaintenance](Get-SnipeitAssetMaintenance.md) -{{ Fill in the Description }} +Lists Snipe-it Assets Maintenances ### [Get-SnipeitCategory](Get-SnipeitCategory.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Categories ### [Get-SnipeitCompany](Get-SnipeitCompany.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Companies ### [Get-SnipeitComponent](Get-SnipeitComponent.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Components ### [Get-SnipeitConsumable](Get-SnipeitConsumable.md) -{{ Fill in the Description }} +Gets a list of Snipe-it consumables ### [Get-SnipeitCustomField](Get-SnipeitCustomField.md) -{{ Fill in the Description }} +Returns specific Snipe-IT custom field or a list of all custom field ### [Get-SnipeitDepartment](Get-SnipeitDepartment.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Departments ### [Get-SnipeitFieldset](Get-SnipeitFieldset.md) -{{ Fill in the Description }} +Returns a fieldset or list of Snipe-it Fieldsets ### [Get-SnipeitLicense](Get-SnipeitLicense.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Licenses ### [Get-SnipeitLicenseSeat](Get-SnipeitLicenseSeat.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Licenses Seats or specific Seat ### [Get-SnipeitLocation](Get-SnipeitLocation.md) -{{ Fill in the Description }} - -### [Get-SnipeitManufacturer](Get-SnipeitManufacturer.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Locations ### [Get-SnipeitModel](Get-SnipeitModel.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Models ### [Get-SnipeitStatus](Get-SnipeitStatus.md) -{{ Fill in the Description }} - -### [Get-SnipeitSupplier](Get-SnipeitSupplier.md) -{{ Fill in the Description }} - -### [Get-SnipeitUser](Get-SnipeitUser.md) -{{ Fill in the Description }} +Gets a list of Snipe-it Status Labels ### [New-SnipeitAccessory](New-SnipeitAccessory.md) -{{ Fill in the Description }} +Creates new accessory on Snipe-It system ### [New-SnipeitAsset](New-SnipeitAsset.md) -{{ Fill in the Description }} +Add a new Asset to Snipe-it asset system ### [New-SnipeitAssetMaintenance](New-SnipeitAssetMaintenance.md) -{{ Fill in the Description }} +Add a new Asset maintenence to Snipe-it asset system ### [New-SnipeitAudit](New-SnipeitAudit.md) -{{ Fill in the Description }} +Add a new Audit to Snipe-it asset system ### [New-SnipeitCategory](New-SnipeitCategory.md) -{{ Fill in the Description }} +Create a new Snipe-IT Category ### [New-SnipeitCompany](New-SnipeitCompany.md) -{{ Fill in the Description }} +Creates a new Company ### [New-SnipeitComponent](New-SnipeitComponent.md) -{{ Fill in the Description }} +Create a new component ### [New-SnipeitConsumable](New-SnipeitConsumable.md) -{{ Fill in the Description }} +Add a new Consumable to Snipe-it asset system ### [New-SnipeitCustomField](New-SnipeitCustomField.md) -{{ Fill in the Description }} +Add a new Custom Field to Snipe-it asset system ### [New-SnipeitDepartment](New-SnipeitDepartment.md) -{{ Fill in the Description }} +Creates a department ### [New-SnipeitLicense](New-SnipeitLicense.md) -{{ Fill in the Description }} +Creates a licence ### [New-SnipeitLocation](New-SnipeitLocation.md) -{{ Fill in the Description }} +Add a new Location to Snipe-it asset system ### [New-SnipeitManufacturer](New-SnipeitManufacturer.md) -{{ Fill in the Description }} +Add a new Manufacturer to Snipe-it asset system ### [New-SnipeitModel](New-SnipeitModel.md) -{{ Fill in the Description }} +Add a new Model to Snipe-it asset system ### [New-SnipeitUser](New-SnipeitUser.md) -{{ Fill in the Description }} +Creates a new user ### [Remove-SnipeitAccessory](Remove-SnipeitAccessory.md) -{{ Fill in the Description }} +Removes Accessory from Snipe-it asset system ### [Remove-SnipeitAsset](Remove-SnipeitAsset.md) -{{ Fill in the Description }} +Removes Asset from Snipe-it asset system ### [Remove-SnipeitAssetMaintenance](Remove-SnipeitAssetMaintenance.md) -{{ Fill in the Description }} +Remove asset maintenance from Snipe-it asset system ### [Remove-SnipeitCategory](Remove-SnipeitCategory.md) -{{ Fill in the Description }} +Removes category from Snipe-it asset system ### [Remove-SnipeitCompany](Remove-SnipeitCompany.md) -{{ Fill in the Description }} +Removes Company from Snipe-it asset system ### [Remove-SnipeitComponent](Remove-SnipeitComponent.md) -{{ Fill in the Description }} +Removes component from Snipe-it asset system ### [Remove-SnipeitConsumable](Remove-SnipeitConsumable.md) -{{ Fill in the Description }} +Removes consumable from Snipe-it asset system ### [Remove-SnipeitCustomField](Remove-SnipeitCustomField.md) -{{ Fill in the Description }} +Removes custom field from Snipe-it asset system ### [Remove-SnipeitDepartment](Remove-SnipeitDepartment.md) -{{ Fill in the Description }} +Removes department from Snipe-it asset system ### [Remove-SnipeitLicense](Remove-SnipeitLicense.md) -{{ Fill in the Description }} +Removes licence from Snipe-it asset system ### [Remove-SnipeitLocation](Remove-SnipeitLocation.md) -{{ Fill in the Description }} +Removes Location from Snipe-it asset system ### [Remove-SnipeitManufacturer](Remove-SnipeitManufacturer.md) -{{ Fill in the Description }} +Removes manufacturer from Snipe-it asset system ### [Remove-SnipeitModel](Remove-SnipeitModel.md) -{{ Fill in the Description }} +Removes Asset model from Snipe-it asset system ### [Remove-SnipeitUser](Remove-SnipeitUser.md) -{{ Fill in the Description }} +Removes User from Snipe-it asset system ### [Reset-SnipeitAccessoryOwner](Reset-SnipeitAccessoryOwner.md) -{{ Fill in the Description }} +Checkin accessories ### [Reset-SnipeitAssetOwner](Reset-SnipeitAssetOwner.md) -{{ Fill in the Description }} +Checkin asset ### [Set-SnipeitAccessory](Set-SnipeitAccessory.md) -{{ Fill in the Description }} +Updates accessory on Snipe-It system ### [Set-SnipeitAccessoryOwner](Set-SnipeitAccessoryOwner.md) -{{ Fill in the Description }} +Checkout accessory ### [Set-SnipeitAsset](Set-SnipeitAsset.md) -{{ Fill in the Description }} +Update a specific Asset in the Snipe-it asset system ### [Set-SnipeitAssetOwner](Set-SnipeitAssetOwner.md) -{{ Fill in the Description }} +Checkout asset ### [Set-SnipeitCategory](Set-SnipeitCategory.md) -{{ Fill in the Description }} +Create a new Snipe-IT Category ### [Set-SnipeitCompany](Set-SnipeitCompany.md) -{{ Fill in the Description }} +Updates company name ### [Set-SnipeitComponent](Set-SnipeitComponent.md) -{{ Fill in the Description }} +Updates component ### [Set-SnipeitConsumable](Set-SnipeitConsumable.md) -{{ Fill in the Description }} +Add a new Consumable to Snipe-it asset system ### [Set-SnipeitCustomField](Set-SnipeitCustomField.md) -{{ Fill in the Description }} +Add a new Custom Field to Snipe-it asset system ### [Set-SnipeitDepartment](Set-SnipeitDepartment.md) -{{ Fill in the Description }} +Updates a department ### [Set-SnipeitInfo](Set-SnipeitInfo.md) -{{ Fill in the Description }} +Sets authetication information ### [Set-SnipeitLicense](Set-SnipeitLicense.md) -{{ Fill in the Description }} +Updates a licence ### [Set-SnipeitLicenseSeat](Set-SnipeitLicenseSeat.md) -{{ Fill in the Description }} +Set license seat or checkout license seat ### [Set-SnipeitLocation](Set-SnipeitLocation.md) -{{ Fill in the Description }} +Updates Location in Snipe-it asset system ### [Set-SnipeitModel](Set-SnipeitModel.md) -{{ Fill in the Description }} +Updates Model on Snipe-it asset system ### [Set-SnipeitStatus](Set-SnipeitStatus.md) -{{ Fill in the Description }} +Sets Snipe-it Status Labels ### [Set-SnipeitUser](Set-SnipeitUser.md) -{{ Fill in the Description }} +Creates a new user ### [Update-SnipeitAlias](Update-SnipeitAlias.md) -{{ Fill in the Description }} +Replaces old SnipeitPS commands with new ones diff --git a/docs/Update-SnipeitAlias.md b/docs/Update-SnipeitAlias.md index a107fba..1dd3141 100644 --- a/docs/Update-SnipeitAlias.md +++ b/docs/Update-SnipeitAlias.md @@ -46,14 +46,13 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. +### -Confirm +Prompts you for confirmation before running the cmdlet. ```yaml Type: SwitchParameter Parameter Sets: (All) -Aliases: wi +Aliases: cf Required: False Position: Named @@ -62,13 +61,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. ```yaml Type: SwitchParameter Parameter Sets: (All) -Aliases: cf +Aliases: wi Required: False Position: Named From d5c25e2bdc7121fe641e4165944152af424b2252 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 15:22:55 +0300 Subject: [PATCH 6/8] release version v.1.8 --- SnipeitPS/SnipeitPS.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SnipeitPS/SnipeitPS.psd1 b/SnipeitPS/SnipeitPS.psd1 index f5c1113..dbbb9ef 100644 --- a/SnipeitPS/SnipeitPS.psd1 +++ b/SnipeitPS/SnipeitPS.psd1 @@ -12,7 +12,7 @@ RootModule = 'SnipeitPS' # Version number of this module. -ModuleVersion = '1.7' +ModuleVersion = '1.8' # Supported PSEditions # CompatiblePSEditions = @() From 6099ab7eea61ffa08934dfbd0cb2652c453654ff Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 15:52:20 +0300 Subject: [PATCH 7/8] release version v.1.8 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ appveyor.yml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91fc4d9..14b5a73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/), and this project adheres to [Semantic Versioning](http://semver.org/). + +# [v.1.8.x] - 2021-06-17 + +## Support for new Snipe it endpoints + +## New features + +Get-SnipeitAccessories -user id +returns accessories checked out to user id + +Get-SnipeitAsset -user_id +Return Assets checked out to user id + +Get-SnipeitAsset -component_id +Returns assets with specific component id + +Get-SnipeitLicense -user_id +Get licenses checked out to user ID + +Get-SnipeitLicense -asset_id +Get licenses checked out to asset ID + +Get-SnipeitUser -accessory_id +Get users that have specific accessory id checked out + # [v.1.7.x] - 2021-06-14 ## Consumables diff --git a/appveyor.yml b/appveyor.yml index 0fb5249..a316978 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,7 +17,7 @@ environment: secure: UdM6qhf5B0G8liHhUrwWERCZr44iSqmg4jUq0lwlTjZs4KyeoiwnBzdej0phqIAm PShell: '5' -version: 1.7.{build} +version: 1.8.{build} # Don't rebuild when I tag a release on GitHub skip_tags: true From 0759f0b6b3d1ac28ef7b85a3a402ecc1cc4c3925 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Thu, 17 Jun 2021 15:53:42 +0300 Subject: [PATCH 8/8] release version v.1.8 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14b5a73..b27a3c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## New features -Get-SnipeitAccessories -user id +Get-SnipeitAccessories -user_id returns accessories checked out to user id Get-SnipeitAsset -user_id