From 92d67895df735a5c61879dcad507e86bb6dc9325 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Tue, 8 Jun 2021 20:23:32 +0300 Subject: [PATCH] Function rename for case sensitivity --- CHANGELOG.md | 26 +++--- SnipeitPS/Private/Get-SnipeitAlias.ps1 | 74 +++++++-------- SnipeitPS/Private/Set-SnipeitAlias.ps1 | 4 +- SnipeitPS/Private/Test-SnipeitAlias.ps1 | 6 +- SnipeitPS/Public/Get-SnipeitAccessory.ps1 | 14 +-- .../Public/Get-SnipeitAccessoryOwner.ps1 | 8 +- SnipeitPS/Public/Get-SnipeitActivity.ps1 | 12 +-- SnipeitPS/Public/Get-SnipeitAsset.ps1 | 18 ++-- .../Public/Get-SnipeitAssetMaintenance.ps1 | 16 ++-- SnipeitPS/Public/Get-SnipeitCategory.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitCompany.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitComponent.ps1 | 16 ++-- SnipeitPS/Public/Get-SnipeitCustomField.ps1 | 10 +-- SnipeitPS/Public/Get-SnipeitDepartment.ps1 | 16 ++-- SnipeitPS/Public/Get-SnipeitFieldset.ps1 | 12 +-- SnipeitPS/Public/Get-SnipeitLicense.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitLicenseSeat.ps1 | 12 +-- SnipeitPS/Public/Get-SnipeitLocation.ps1 | 10 +-- SnipeitPS/Public/Get-SnipeitManufacturer.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitModel.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitStatus.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitSupplier.ps1 | 14 +-- SnipeitPS/Public/Get-SnipeitUser.ps1 | 18 ++-- SnipeitPS/Public/New-SnipeitAccessory.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitAsset.ps1 | 14 +-- .../Public/New-SnipeitAssetMaintenance.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitAudit.ps1 | 6 +- SnipeitPS/Public/New-SnipeitCategory.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitCompany.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitComponent.ps1 | 8 +- SnipeitPS/Public/New-SnipeitCustomField.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitDepartment.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitLicense.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitLocation.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitManufacturer.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitModel.ps1 | 10 +-- SnipeitPS/Public/New-SnipeitUser.ps1 | 10 +-- SnipeitPS/Public/Remove-SnipeitAsset.ps1 | 10 +-- .../Public/Remove-SnipeitAssetMaintenance.ps1 | 10 +-- SnipeitPS/Public/Remove-SnipeitUser.ps1 | 10 +-- .../Public/Reset-SnipeitAccessoryOwner.ps1 | 12 +-- SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 | 10 +-- SnipeitPS/Public/Set-SnipeitAccessory.ps1 | 10 +-- .../Public/Set-SnipeitAccessoryOwner.ps1 | 8 +- SnipeitPS/Public/Set-SnipeitAsset.ps1 | 14 +-- SnipeitPS/Public/Set-SnipeitAssetOwner.ps1 | 10 +-- SnipeitPS/Public/Set-SnipeitComponents.ps1 | 8 +- SnipeitPS/Public/Set-SnipeitInfo.ps1 | 10 +-- SnipeitPS/Public/Set-SnipeitLicense.ps1 | 10 +-- SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 | 10 +-- SnipeitPS/Public/Set-SnipeitLocation.ps1 | 6 +- SnipeitPS/Public/Set-SnipeitModel.ps1 | 10 +-- SnipeitPS/Public/Set-SnipeitUser.ps1 | 10 +-- SnipeitPS/Public/Update-SnipeitAlias.ps1 | 6 +- SnipeitPS/SnipeitPS.psd1 | 90 +++++++++---------- SnipeitPS/SnipeitPS.psm1 | 2 +- docs/Get-SnipeitAccessory.md | 12 +-- docs/Get-SnipeitAccessoryOwner.md | 10 +-- docs/Get-SnipeitActivity.md | 12 +-- docs/Get-SnipeitAsset.md | 16 ++-- docs/Get-SnipeitAssetMaintenance.md | 14 +-- docs/Get-SnipeitCategory.md | 12 +-- docs/Get-SnipeitCompany.md | 12 +-- docs/Get-SnipeitComponent.md | 14 +-- docs/Get-SnipeitCustomField.md | 10 +-- docs/Get-SnipeitDepartment.md | 14 +-- docs/Get-SnipeitFieldset.md | 12 +-- docs/Get-SnipeitLicense.md | 12 +-- docs/Get-SnipeitLicenseSeat.md | 10 +-- docs/Get-SnipeitLocation.md | 8 +- docs/Get-SnipeitManufacturer.md | 12 +-- docs/Get-SnipeitModel.md | 12 +-- docs/Get-SnipeitStatus.md | 12 +-- docs/Get-SnipeitSupplier.md | 12 +-- docs/Get-SnipeitUser.md | 16 ++-- docs/New-SnipeitAsset.md | 14 +-- docs/New-SnipeitAssetMaintenance.md | 10 +-- docs/New-SnipeitCategory.md | 10 +-- docs/New-SnipeitComponent.md | 8 +- docs/New-SnipeitCustomField.md | 10 +-- docs/New-SnipeitDepartment.md | 10 +-- docs/New-SnipeitLicense.md | 10 +-- docs/New-SnipeitLocation.md | 10 +-- docs/New-SnipeitManufacturer.md | 10 +-- docs/New-SnipeitModel.md | 10 +-- docs/New-SnipeitUser.md | 10 +-- docs/Remove-SnipeitAsset.md | 10 +-- docs/Remove-SnipeitUser.md | 10 +-- docs/Reset-SnipeitAccessoryOwner.md | 14 +-- docs/Set-SnipeitAccessory.md | 10 +-- docs/Set-SnipeitAccessoryOwner.md | 10 +-- docs/Set-SnipeitAsset.md | 12 +-- docs/Set-SnipeitAssetOwner.md | 10 +-- docs/Set-SnipeitComponent.md | 8 +- docs/Set-SnipeitInfo.md | 10 +-- docs/Set-SnipeitLicense.md | 10 +-- docs/Set-SnipeitLicenseSeat.md | 12 +-- docs/Set-SnipeitLocation.md | 4 +- docs/Set-SnipeitModel.md | 10 +-- docs/Set-SnipeitUser.md | 10 +-- docs/SnipeitPS.md | 80 ++++++++--------- docs/Update-SnipeitAlias.md | 4 +- 102 files changed, 666 insertions(+), 666 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68bf514..a32ef80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance' ### New Functions -- Get-SnipeItActivity Get and search Snipe-It change history. +- Get-SnipeitActivity Get and search Snipe-It change history. # [v1.3.x] - 2021-05-27 @@ -27,16 +27,16 @@ be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance' ## Checking out accessories ### New features -You can specify Put or Patch for Set-SnipeItAsset when updating assets. -Set-SnipeItLocation new -city parameter +You can specify Put or Patch for Set-SnipeitAsset when updating assets. +Set-SnipeitLocation new -city parameter ### New Functions -- Set-SnipeItAccessoryOwner checkout accessory -- Get-SnipeItAccessoryOwner list checkedout accessories -- Reset-SnipeItAccessoryOwner checkin accessory +- Set-SnipeitAccessoryOwner checkout accessory +- Get-SnipeitAccessoryOwner list checkedout accessories +- Reset-SnipeitAccessoryOwner checkin accessory ### Fixes -- Set-SnipeItAsset fixed datetime and name inputs #126,128 +- Set-SnipeitAsset fixed datetime and name inputs #126,128 - # [v1.2.x] - 2021-05-24 @@ -44,19 +44,19 @@ Set-SnipeItLocation new -city parameter ## Prefixing SnipeitPS ### New Features -All commands are now prefixed like Set-Info -> Set-SnipeItInfo. +All commands are now prefixed like Set-Info -> Set-SnipeitInfo. To keep compatibility all old commands are available as aliases. -To update existing scripts theres Update-SnipeItAlias command. +To update existing scripts theres Update-SnipeitAlias command. ### New fuctions - Update-SnipeitAlias Tool to update existing scripts -- Get-SnipeItLicenceSeat lists license seats -- Set-SnipeItLicenseSeat Set and checkouts/in license seats +- Get-SnipeitLicenceSeat lists license seats +- Set-SnipeitLicenseSeat Set and checkouts/in license seats Licenseseat api is supported from Snipe-It release => v5.1.5 ### New fixes -Added -id parameter support to support Get-SnipeItCustomField and -Get-SnipeItFieldSet commands +Added -id parameter support to support Get-SnipeitCustomField and +Get-SnipeitFieldSet commands # [v1.1.x] - 2021-05-18 diff --git a/SnipeitPS/Private/Get-SnipeitAlias.ps1 b/SnipeitPS/Private/Get-SnipeitAlias.ps1 index 08218d6..498e640 100644 --- a/SnipeitPS/Private/Get-SnipeitAlias.ps1 +++ b/SnipeitPS/Private/Get-SnipeitAlias.ps1 @@ -1,38 +1,38 @@ - Function Get-SnipeItAlias(){ - @{'Get-Asset' = 'Get-SnipeItAsset'; - 'Get-AssetMaintenance' = 'Get-SnipeItAssetMaintenance'; - 'Get-Category' = 'Get-SnipeItCategory'; - 'Get-Company' = 'Get-SnipeItCompany'; - 'Get-Component' = 'Get-SnipeItCompany'; - 'Get-CustomField' = 'Get-SnipeItCustomField'; - 'Get-Department' = 'Get-SnipeItDepartment'; - 'Get-Fieldset' = 'Get-SnipeItFieldset'; - 'Get-Manufacturer' = 'Get-SnipeItManufacturer'; - 'Get-Model' = 'Get-SnipeItModel'; - 'Get-Status' = 'Get-SnipeItStatus'; - 'Get-Supplier' = 'Get-SnipeItSupplier'; - 'Get-User' = 'Get-SnipeItUser'; - 'New-Asset' = 'New-SnipeItAsset'; - 'New-AssetMaintenance' = 'New-SnipeItAssetMaintenance'; - 'New-Category' = 'New-SnipeItCategory'; - 'New-Component' = 'New-SnipeItComponent'; - 'New-CustomField' = 'New-SnipeItCustomField'; - 'New-Department' = 'New-SnipeItDepartment'; - 'New-License' = 'New-SnipeItLicense'; - 'Set-License' = 'Set-SnipeItLicense'; - 'New-Location' = 'New-SnipeItLocation'; - 'New-Manufacturer' = 'New-SnipeItManufacturer'; - 'New-Model' = 'New-SnipeItModel'; - 'New-User' = 'New-SnipeItUser'; - 'Set-Asset' = 'Set-SnipeItAsset'; - 'Set-AssetOwner' = 'Set-SnipeItAssetOwner'; - 'Set-Component' = 'Set-SnipeItComponent'; - 'Set-Model' = 'Set-SnipeItModel'; - 'Set-Info' = 'Set-SnipeItInfo'; - 'Set-User' = 'Set-SnipeItUser'; - 'New-Accessory' = 'New-SnipeItAccessory'; - 'Set-Accessory' = 'Set-SnipeItAccessory'; - 'Get-Accessory' = 'Get-SnipeItAccessory'; - 'Remove-Asset' = 'Remove-SnipeItAsset'; - 'Remove-User' = 'Remove-SnipeItUser';} + Function Get-SnipeitAlias(){ + @{'Get-Asset' = 'Get-SnipeitAsset'; + 'Get-AssetMaintenance' = 'Get-SnipeitAssetMaintenance'; + 'Get-Category' = 'Get-SnipeitCategory'; + 'Get-Company' = 'Get-SnipeitCompany'; + 'Get-Component' = 'Get-SnipeitCompany'; + 'Get-CustomField' = 'Get-SnipeitCustomField'; + 'Get-Department' = 'Get-SnipeitDepartment'; + 'Get-Fieldset' = 'Get-SnipeitFieldset'; + 'Get-Manufacturer' = 'Get-SnipeitManufacturer'; + 'Get-Model' = 'Get-SnipeitModel'; + 'Get-Status' = 'Get-SnipeitStatus'; + 'Get-Supplier' = 'Get-SnipeitSupplier'; + 'Get-User' = 'Get-SnipeitUser'; + 'New-Asset' = 'New-SnipeitAsset'; + 'New-AssetMaintenance' = 'New-SnipeitAssetMaintenance'; + 'New-Category' = 'New-SnipeitCategory'; + 'New-Component' = 'New-SnipeitComponent'; + 'New-CustomField' = 'New-SnipeitCustomField'; + 'New-Department' = 'New-SnipeitDepartment'; + 'New-License' = 'New-SnipeitLicense'; + 'Set-License' = 'Set-SnipeitLicense'; + 'New-Location' = 'New-SnipeitLocation'; + 'New-Manufacturer' = 'New-SnipeitManufacturer'; + 'New-Model' = 'New-SnipeitModel'; + 'New-User' = 'New-SnipeitUser'; + 'Set-Asset' = 'Set-SnipeitAsset'; + 'Set-AssetOwner' = 'Set-SnipeitAssetOwner'; + 'Set-Component' = 'Set-SnipeitComponent'; + 'Set-Model' = 'Set-SnipeitModel'; + 'Set-Info' = 'Set-SnipeitInfo'; + 'Set-User' = 'Set-SnipeitUser'; + 'New-Accessory' = 'New-SnipeitAccessory'; + 'Set-Accessory' = 'Set-SnipeitAccessory'; + 'Get-Accessory' = 'Get-SnipeitAccessory'; + 'Remove-Asset' = 'Remove-SnipeitAsset'; + 'Remove-User' = 'Remove-SnipeitUser';} } diff --git a/SnipeitPS/Private/Set-SnipeitAlias.ps1 b/SnipeitPS/Private/Set-SnipeitAlias.ps1 index bc55940..30a1ff6 100644 --- a/SnipeitPS/Private/Set-SnipeitAlias.ps1 +++ b/SnipeitPS/Private/Set-SnipeitAlias.ps1 @@ -1,4 +1,4 @@ -function Set-SnipeItAlias() +function Set-SnipeitAlias() { [CmdletBinding( SupportsShouldProcess = $true, @@ -7,7 +7,7 @@ function Set-SnipeItAlias() param() Write-Verbose "Setting compatibility aliases.. " Write-Verbose "All aliases are deprediated." - $SnipeItAliases = get-SnipeItAlias + $SnipeItAliases = get-SnipeitAlias ForEach ($key in $SnipeItAliases.Keys ) { New-Alias -Name $key -Value $($SnipeItAliases[$key]) -Scope 1 Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeItAliases[$key])) diff --git a/SnipeitPS/Private/Test-SnipeitAlias.ps1 b/SnipeitPS/Private/Test-SnipeitAlias.ps1 index 0664cb7..4f5ef2b 100644 --- a/SnipeitPS/Private/Test-SnipeitAlias.ps1 +++ b/SnipeitPS/Private/Test-SnipeitAlias.ps1 @@ -1,4 +1,4 @@ -function Test-SnipeItAlias() +function Test-SnipeitAlias() { [CmdletBinding()] param( @@ -9,7 +9,7 @@ function Test-SnipeItAlias() ) if($invocationName -ne $commandName) { Write-Warning "$invocationName is still working, but it has been superceded by $commandName, please use it instead." - Write-Warning 'To update your scripts you can use Update-SnipeItAlias helper function: ' - Write-Warning '"Get-Content [your-script.ps1] | Update-SnipeItAlias | Out-File [new-script-name.ps1]"' + Write-Warning 'To update your scripts you can use Update-SnipeitAlias helper function: ' + Write-Warning '"Get-Content [your-script.ps1] | Update-SnipeitAlias | Out-File [new-script-name.ps1]"' } } diff --git a/SnipeitPS/Public/Get-SnipeitAccessory.ps1 b/SnipeitPS/Public/Get-SnipeitAccessory.ps1 index fbbe131..7f5ec2b 100644 --- a/SnipeitPS/Public/Get-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/Get-SnipeitAccessory.ps1 @@ -21,20 +21,20 @@ Result offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItAccessory -search Keyboard +Get-SnipeitAccessory -search Keyboard .EXAMPLE -Get-SnipeItAccessory -id 1 +Get-SnipeitAccessory -id 1 #> -function Get-SnipeItAccessory() { +function Get-SnipeitAccessory() { Param( [parameter(ParameterSetName='Search')] [string]$search, @@ -76,7 +76,7 @@ function Get-SnipeItAccessory() { [parameter(mandatory = $true)] [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name if ($id -and $search){ throw "Please specify only one of -id or -search parameter" @@ -103,7 +103,7 @@ function Get-SnipeItAccessory() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItAccessory @callargs + $res=Get-SnipeitAccessory @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitAccessoryOwner.ps1 b/SnipeitPS/Public/Get-SnipeitAccessoryOwner.ps1 index cc4c9de..b9a8177 100644 --- a/SnipeitPS/Public/Get-SnipeitAccessoryOwner.ps1 +++ b/SnipeitPS/Public/Get-SnipeitAccessoryOwner.ps1 @@ -8,15 +8,15 @@ Unique ID For accessory to list .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Get-SnipeItAccessoryOwner -id 1 + Get-SnipeitAccessoryOwner -id 1 #> -function Get-SnipeItAccessoryOwner() +function Get-SnipeitAccessoryOwner() { [CmdletBinding( SupportsShouldProcess = $true, diff --git a/SnipeitPS/Public/Get-SnipeitActivity.ps1 b/SnipeitPS/Public/Get-SnipeitActivity.ps1 index ae84259..5a6806a 100644 --- a/SnipeitPS/Public/Get-SnipeitActivity.ps1 +++ b/SnipeitPS/Public/Get-SnipeitActivity.ps1 @@ -30,20 +30,20 @@ Result offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItAccessory -search Keyboard +Get-SnipeitAccessory -search Keyboard .EXAMPLE -Get-SnipeItAccessory -id 1 +Get-SnipeitAccessory -id 1 #> -function Get-SnipeItActivity() { +function Get-SnipeitActivity() { Param( [string]$search, @@ -106,7 +106,7 @@ function Get-SnipeItActivity() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItActivity @callargs + $res=Get-SnipeitActivity @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitAsset.ps1 b/SnipeitPS/Public/Get-SnipeitAsset.ps1 index 069b324..35f5c5b 100644 --- a/SnipeitPS/Public/Get-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/Get-SnipeitAsset.ps1 @@ -54,25 +54,25 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, 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 -url "https://assets.example.com"-token "token..." .EXAMPLE -Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..." .EXAMPLE -Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..." .EXAMPLE -Get-SnipeItAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..." #> -function Get-SnipeItAsset() { +function Get-SnipeitAsset() { Param( [parameter(ParameterSetName='Search')] [string]$search, @@ -138,7 +138,7 @@ function Get-SnipeItAsset() { [parameter(mandatory = $true)] [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -185,7 +185,7 @@ function Get-SnipeItAsset() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItAsset @callargs + $res=Get-SnipeitAsset @callargs $res if ( $res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitAssetMaintenance.ps1 b/SnipeitPS/Public/Get-SnipeitAssetMaintenance.ps1 index b7ee638..9476f51 100644 --- a/SnipeitPS/Public/Get-SnipeitAssetMaintenance.ps1 +++ b/SnipeitPS/Public/Get-SnipeitAssetMaintenance.ps1 @@ -24,21 +24,21 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItAssetMaintenances -url "https://assets.example.com" -token "token..." +Get-SnipeitAssetMaintenances -url "https://assets.example.com" -token "token..." .EXAMPLE -Get-SnipeItAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." +Get-SnipeitAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." .EXAMPLE -Get-SnipeItAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." +Get-SnipeitAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." #> -function Get-SnipeItAssetMaintenance() { +function Get-SnipeitAssetMaintenance() { Param( [string]$search, @@ -62,7 +62,7 @@ function Get-SnipeItAssetMaintenance() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -81,7 +81,7 @@ function Get-SnipeItAssetMaintenance() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItAssetMaintenance @callargs + $res=Get-SnipeitAssetMaintenance @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitCategory.ps1 b/SnipeitPS/Public/Get-SnipeitCategory.ps1 index 3aeba40..1a61c64 100644 --- a/SnipeitPS/Public/Get-SnipeitCategory.ps1 +++ b/SnipeitPS/Public/Get-SnipeitCategory.ps1 @@ -18,20 +18,20 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -Url of Snipeit system, can be set using Set-SnipeItInfo command +Url of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItCategory -id 1 +Get-SnipeitCategory -id 1 .EXAMPLE -Get-SnipeItCategory -search "Laptop" +Get-SnipeitCategory -search "Laptop" #> -function Get-SnipeItCategory() +function Get-SnipeitCategory() { Param( [parameter(ParameterSetName='Search')] @@ -59,7 +59,7 @@ function Get-SnipeItCategory() [parameter(mandatory = $true)] [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -88,7 +88,7 @@ function Get-SnipeItCategory() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItCategory @callargs + $res=Get-SnipeitCategory @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitCompany.ps1 b/SnipeitPS/Public/Get-SnipeitCompany.ps1 index 06aa0ad..c3f19ac 100644 --- a/SnipeitPS/Public/Get-SnipeitCompany.ps1 +++ b/SnipeitPS/Public/Get-SnipeitCompany.ps1 @@ -17,22 +17,22 @@ Offset to use .PARAMETER all A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItCompany +Get-SnipeitCompany Gets all companies .EXAMPLE -Get-SnipeItCompany -id 1 +Get-SnipeitCompany -id 1 Gets specific company #> -function Get-SnipeItCompany() +function Get-SnipeitCompany() { Param( [parameter(ParameterSetName='Search')] @@ -61,7 +61,7 @@ function Get-SnipeItCompany() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -90,7 +90,7 @@ function Get-SnipeItCompany() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItCompany @callargs + $res=Get-SnipeitCompany @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitComponent.ps1 b/SnipeitPS/Public/Get-SnipeitComponent.ps1 index 78c2750..66d1f85 100644 --- a/SnipeitPS/Public/Get-SnipeitComponent.ps1 +++ b/SnipeitPS/Public/Get-SnipeitComponent.ps1 @@ -18,26 +18,26 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system,can be set using Set-SnipeItInfo command +URL of Snipeit system,can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItComponent +Get-SnipeitComponent Returns all components .EXAMPLE -Get-SnipeItComponent -search display +Get-SnipeitComponent -search display Returns search results containeing string display .EXAMPLE -Get-SnipeItComponent -id +Get-SnipeitComponent -id Returns specific component #> -function Get-SnipeItComponent() { +function Get-SnipeitComponent() { Param( [parameter(ParameterSetName='Search')] [string]$search, @@ -78,7 +78,7 @@ function Get-SnipeItComponent() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -107,7 +107,7 @@ function Get-SnipeItComponent() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItComponent @callargs + $res=Get-SnipeitComponent @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitCustomField.ps1 b/SnipeitPS/Public/Get-SnipeitCustomField.ps1 index 276b7bf..f15db57 100644 --- a/SnipeitPS/Public/Get-SnipeitCustomField.ps1 +++ b/SnipeitPS/Public/Get-SnipeitCustomField.ps1 @@ -6,17 +6,17 @@ A id of specific field .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Get-SnipeItCustomField -url "https://assets.example.com" -token "token..." + Get-SnipeitCustomField -url "https://assets.example.com" -token "token..." #> -function Get-SnipeItCustomField() +function Get-SnipeitCustomField() { Param( [int]$id, @@ -28,7 +28,7 @@ function Get-SnipeItCustomField() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name if ($id) { $apiurl= "$url/api/v1/fields/$id" diff --git a/SnipeitPS/Public/Get-SnipeitDepartment.ps1 b/SnipeitPS/Public/Get-SnipeitDepartment.ps1 index 9cb5413..5c29a40 100644 --- a/SnipeitPS/Public/Get-SnipeitDepartment.ps1 +++ b/SnipeitPS/Public/Get-SnipeitDepartment.ps1 @@ -18,23 +18,23 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItDepartment -url "https://assets.example.com" -token "token..." +Get-SnipeitDepartment -url "https://assets.example.com" -token "token..." .EXAMPLE -Get-SnipeItDepartment -search Department1 +Get-SnipeitDepartment -search Department1 .EXAMPLE -Get-SnipeItDepartment -id 1 +Get-SnipeitDepartment -id 1 #> -function Get-SnipeItDepartment() +function Get-SnipeitDepartment() { Param( [parameter(ParameterSetName='Search')] @@ -67,7 +67,7 @@ function Get-SnipeItDepartment() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -96,7 +96,7 @@ function Get-SnipeItDepartment() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItDepartment @callargs + $res=Get-SnipeitDepartment @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitFieldset.ps1 b/SnipeitPS/Public/Get-SnipeitFieldset.ps1 index 33d0252..3ab6f03 100644 --- a/SnipeitPS/Public/Get-SnipeitFieldset.ps1 +++ b/SnipeitPS/Public/Get-SnipeitFieldset.ps1 @@ -6,20 +6,20 @@ Returns a fieldset or list of Snipe-it Fieldsets A id of specific fieldset .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItFieldset -url "https://assets.example.com" -token "token..." +Get-SnipeitFieldset -url "https://assets.example.com" -token "token..." .EXAMPLE -Get-SnipeItFieldset -url "https://assets.example.com" -token "token..." | Where-Object {$_.name -eq "Windows" } +Get-SnipeitFieldset -url "https://assets.example.com" -token "token..." | Where-Object {$_.name -eq "Windows" } #> -function Get-SnipeItFieldset() { +function Get-SnipeitFieldset() { Param( [int]$id, @@ -30,7 +30,7 @@ function Get-SnipeItFieldset() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name if ($id) { $apiurl = "$url/api/v1/fieldsets/$id" diff --git a/SnipeitPS/Public/Get-SnipeitLicense.ps1 b/SnipeitPS/Public/Get-SnipeitLicense.ps1 index a0ff09a..a1a1448 100644 --- a/SnipeitPS/Public/Get-SnipeitLicense.ps1 +++ b/SnipeitPS/Public/Get-SnipeitLicense.ps1 @@ -19,20 +19,20 @@ A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItLicense -search SomeLicense +Get-SnipeitLicense -search SomeLicense .EXAMPLE -Get-SnipeItLicense -id 1 +Get-SnipeitLicense -id 1 #> -function Get-SnipeItLicense() { +function Get-SnipeitLicense() { Param( [parameter(ParameterSetName='Search')] [string]$search, @@ -97,7 +97,7 @@ function Get-SnipeItLicense() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -126,7 +126,7 @@ function Get-SnipeItLicense() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItLicense @callargs + $res=Get-SnipeitLicense @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitLicenseSeat.ps1 b/SnipeitPS/Public/Get-SnipeitLicenseSeat.ps1 index 2005d61..ce9fd15 100644 --- a/SnipeitPS/Public/Get-SnipeitLicenseSeat.ps1 +++ b/SnipeitPS/Public/Get-SnipeitLicenseSeat.ps1 @@ -22,18 +22,18 @@ A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItLicenseSeat -id 1 +Get-SnipeitLicenseSeat -id 1 #> -function Get-SnipeItLicenseSeat() { +function Get-SnipeitLicenseSeat() { Param( [parameter(mandatory = $true)] @@ -54,7 +54,7 @@ function Get-SnipeItLicenseSeat() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -80,7 +80,7 @@ function Get-SnipeItLicenseSeat() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItLicenseSeat @callargs + $res=Get-SnipeitLicenseSeat @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitLocation.ps1 b/SnipeitPS/Public/Get-SnipeitLocation.ps1 index e669da1..782cfe2 100644 --- a/SnipeitPS/Public/Get-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/Get-SnipeitLocation.ps1 @@ -18,16 +18,16 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItLocation -search Location1 +Get-SnipeitLocation -search Location1 .EXAMPLE -Get-SnipeItLocation -id 3 +Get-SnipeitLocation -id 3 #> @@ -60,7 +60,7 @@ function Get-SnipeitLocation() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Get-SnipeitManufacturer.ps1 b/SnipeitPS/Public/Get-SnipeitManufacturer.ps1 index 8c465a3..0fe3e24 100644 --- a/SnipeitPS/Public/Get-SnipeitManufacturer.ps1 +++ b/SnipeitPS/Public/Get-SnipeitManufacturer.ps1 @@ -18,22 +18,22 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItManufacturer -search HP +Get-SnipeitManufacturer -search HP Search all manufacturers for string HP .EXAMPLE -Get-SnipeItManufacturer -id 3 +Get-SnipeitManufacturer -id 3 Returns manufacturer with id 3 #> -function Get-SnipeItManufacturer() +function Get-SnipeitManufacturer() { Param( [parameter(ParameterSetName='Search')] @@ -62,7 +62,7 @@ function Get-SnipeItManufacturer() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -91,7 +91,7 @@ function Get-SnipeItManufacturer() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItManufacturer @callargs + $res=Get-SnipeitManufacturer @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitModel.ps1 b/SnipeitPS/Public/Get-SnipeitModel.ps1 index bc19108..748582c 100644 --- a/SnipeitPS/Public/Get-SnipeitModel.ps1 +++ b/SnipeitPS/Public/Get-SnipeitModel.ps1 @@ -18,20 +18,20 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItModel -search "DL380" +Get-SnipeitModel -search "DL380" .EXAMPLE -Get-SnipeItModel -id 1 +Get-SnipeitModel -id 1 #> -function Get-SnipeItModel() +function Get-SnipeitModel() { Param( [parameter(ParameterSetName='Search')] @@ -60,7 +60,7 @@ function Get-SnipeItModel() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -89,7 +89,7 @@ function Get-SnipeItModel() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItModel @callargs + $res=Get-SnipeitModel @callargs $res if ($res.count -ne $limit ) { break diff --git a/SnipeitPS/Public/Get-SnipeitStatus.ps1 b/SnipeitPS/Public/Get-SnipeitStatus.ps1 index bca89f5..47e0de7 100644 --- a/SnipeitPS/Public/Get-SnipeitStatus.ps1 +++ b/SnipeitPS/Public/Get-SnipeitStatus.ps1 @@ -18,20 +18,20 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItStatus -search "Ready to Deploy" +Get-SnipeitStatus -search "Ready to Deploy" .EXAMPLE -Get-SnipeItStatus -id 3 +Get-SnipeitStatus -id 3 #> -function Get-SnipeItStatus() +function Get-SnipeitStatus() { Param( [parameter(ParameterSetName='Search')] @@ -60,7 +60,7 @@ function Get-SnipeItStatus() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -89,7 +89,7 @@ function Get-SnipeItStatus() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItStatus @callargs + $res=Get-SnipeitStatus @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitSupplier.ps1 b/SnipeitPS/Public/Get-SnipeitSupplier.ps1 index 84ee531..9c8b6bd 100644 --- a/SnipeitPS/Public/Get-SnipeitSupplier.ps1 +++ b/SnipeitPS/Public/Get-SnipeitSupplier.ps1 @@ -18,20 +18,20 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItSupplier -search MySupplier +Get-SnipeitSupplier -search MySupplier .EXAMPLE -Get-SnipeItSupplier -id 2 +Get-SnipeitSupplier -id 2 #> -function Get-SnipeItSupplier() +function Get-SnipeitSupplier() { Param( [parameter(ParameterSetName='Search')] @@ -60,7 +60,7 @@ function Get-SnipeItSupplier() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -89,7 +89,7 @@ function Get-SnipeItSupplier() while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItSupplier @callargs + $res=Get-SnipeitSupplier @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/Get-SnipeitUser.ps1 b/SnipeitPS/Public/Get-SnipeitUser.ps1 index b35f837..92cd44a 100644 --- a/SnipeitPS/Public/Get-SnipeitUser.ps1 +++ b/SnipeitPS/Public/Get-SnipeitUser.ps1 @@ -24,25 +24,25 @@ Offset to use A return all results, works with -offset and other parameters .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -Get-SnipeItUser -search SomeSurname +Get-SnipeitUser -search SomeSurname .EXAMPLE -Get-SnipeItUser -id 3 +Get-SnipeitUser -id 3 .EXAMPLE -Get-SnipeItUser -username someuser +Get-SnipeitUser -username someuser .EXAMPLE -Get-SnipeItUser -email user@somedomain.com +Get-SnipeitUser -email user@somedomain.com #> -function Get-SnipeItUser() { +function Get-SnipeitUser() { Param( [parameter(ParameterSetName='Search')] [string]$search, @@ -88,7 +88,7 @@ function Get-SnipeItUser() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters @@ -116,7 +116,7 @@ function Get-SnipeItUser() { while ($true) { $callargs['offset'] = $offstart $callargs['limit'] = $limit - $res=Get-SnipeItUser @callargs + $res=Get-SnipeitUser @callargs $res if ($res.count -lt $limit) { break diff --git a/SnipeitPS/Public/New-SnipeitAccessory.ps1 b/SnipeitPS/Public/New-SnipeitAccessory.ps1 index 6a1b1bd..df4663c 100644 --- a/SnipeitPS/Public/New-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/New-SnipeitAccessory.ps1 @@ -51,16 +51,16 @@ ID number of the location the accessory is assigned to Min quantity of the accessory before alert is triggered .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -New-SnipeItAccessory -name "Accessory" -qty 3 -category_id 1 +New-SnipeitAccessory -name "Accessory" -qty 3 -category_id 1 #> -function New-SnipeItAccessory() { +function New-SnipeitAccessory() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -105,7 +105,7 @@ function New-SnipeItAccessory() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitAsset.ps1 b/SnipeitPS/Public/New-SnipeitAsset.ps1 index 6a70c29..66054ee 100644 --- a/SnipeitPS/Public/New-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/New-SnipeitAsset.ps1 @@ -43,29 +43,29 @@ Optional Purchase cost of the Asset Optional Default location id for the asset .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .PARAMETER 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. .EXAMPLE -New-SnipeItAsset -status_id 1 -model_id 1 -name "Machine1" +New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" Create asset with automatic tag if tag genaration is enabled on snipe-it, other wise without tag .EXAMPLE -New-SnipeItAsset -status_id 1 -model_id 1 -name "Machine1" -asset_tag "DEV123" +New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -asset_tag "DEV123" Specifying asset tag when creating asset .EXAMPLE -New-SnipeItAsset -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5" = "Windows 10 Pro" } +New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5" = "Windows 10 Pro" } Using customfields when creating asset. #> -function New-SnipeItAsset() +function New-SnipeitAsset() { [CmdletBinding( SupportsShouldProcess = $true, @@ -123,7 +123,7 @@ function New-SnipeItAsset() [hashtable] $customfields ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitAssetMaintenance.ps1 b/SnipeitPS/Public/New-SnipeitAssetMaintenance.ps1 index 9f5ff18..2115539 100644 --- a/SnipeitPS/Public/New-SnipeitAssetMaintenance.ps1 +++ b/SnipeitPS/Public/New-SnipeitAssetMaintenance.ps1 @@ -31,15 +31,15 @@ Optional completion date Optional cost .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -New-SnipeItAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" -start_date 2021-01-01 +New-SnipeitAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" -start_date 2021-01-01 #> -function New-SnipeItAssetMaintenance() { +function New-SnipeitAssetMaintenance() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -77,7 +77,7 @@ function New-SnipeItAssetMaintenance() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitAudit.ps1 b/SnipeitPS/Public/New-SnipeitAudit.ps1 index 985979e..b01faab 100644 --- a/SnipeitPS/Public/New-SnipeitAudit.ps1 +++ b/SnipeitPS/Public/New-SnipeitAudit.ps1 @@ -12,11 +12,11 @@ The asset tag of the asset you wish to audit ID of the location you want to associate with the audit .EXAMPLE -New-SnipeItAudit -tag 1 -location_id 1 +New-SnipeitAudit -tag 1 -location_id 1 #> -function New-SnipeItAudit() +function New-SnipeitAudit() { [CmdletBinding( SupportsShouldProcess = $true, @@ -37,7 +37,7 @@ function New-SnipeItAudit() ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "location_id" = $location_id diff --git a/SnipeitPS/Public/New-SnipeitCategory.ps1 b/SnipeitPS/Public/New-SnipeitCategory.ps1 index 16a9c75..02aa68a 100644 --- a/SnipeitPS/Public/New-SnipeitCategory.ps1 +++ b/SnipeitPS/Public/New-SnipeitCategory.ps1 @@ -9,10 +9,10 @@ Name of new category to be created Type of new category to be created (asset, accessory, consumable, component, license) .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command .PARAMETER use_default_eula If switch is present, use the primary default EULA @@ -24,10 +24,10 @@ If switch is present, require users to confirm acceptance of assets in this cate If switch is present, send email to user on checkin/checkout .EXAMPLE -New-SnipeItCategory -name "Laptops" -category_type asset -url "Snipe-IT URL here..." -apiKey "API key here..." +New-SnipeitCategory -name "Laptops" -category_type asset -url "Snipe-IT URL here..." -apiKey "API key here..." #> -function New-SnipeItCategory() +function New-SnipeitCategory() { [CmdletBinding( SupportsShouldProcess = $true, @@ -55,7 +55,7 @@ function New-SnipeItCategory() [switch]$checkin_email ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "name" = $name diff --git a/SnipeitPS/Public/New-SnipeitCompany.ps1 b/SnipeitPS/Public/New-SnipeitCompany.ps1 index 349589c..5c541a4 100644 --- a/SnipeitPS/Public/New-SnipeitCompany.ps1 +++ b/SnipeitPS/Public/New-SnipeitCompany.ps1 @@ -9,17 +9,17 @@ Creates new company on Snipe-It system Comapany name .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE -New-SnipeItCompany -name "Acme Company" +New-SnipeitCompany -name "Acme Company" #> -function New-SnipeItCompany() +function New-SnipeitCompany() { [CmdletBinding( SupportsShouldProcess = $true, @@ -37,7 +37,7 @@ function New-SnipeItCompany() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitComponent.ps1 b/SnipeitPS/Public/New-SnipeitComponent.ps1 index 711b370..7880b76 100644 --- a/SnipeitPS/Public/New-SnipeitComponent.ps1 +++ b/SnipeitPS/Public/New-SnipeitComponent.ps1 @@ -27,10 +27,10 @@ Date accessory was purchased Cost of item being purchased. .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE An example @@ -39,7 +39,7 @@ An example General notes #> -function New-SnipeItComponent() { +function New-SnipeitComponent() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -72,7 +72,7 @@ function New-SnipeItComponent() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitCustomField.ps1 b/SnipeitPS/Public/New-SnipeitCustomField.ps1 index ca6c96f..d39807d 100644 --- a/SnipeitPS/Public/New-SnipeitCustomField.ps1 +++ b/SnipeitPS/Public/New-SnipeitCustomField.ps1 @@ -9,16 +9,16 @@ Name of the Custom Field .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "Is AntiVirus installed on Asset" + New-SnipeitCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "Is AntiVirus installed on Asset" #> -function New-SnipeItCustomField() +function New-SnipeitCustomField() { [CmdletBinding( SupportsShouldProcess = $true, @@ -46,7 +46,7 @@ function New-SnipeItCustomField() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitDepartment.ps1 b/SnipeitPS/Public/New-SnipeitDepartment.ps1 index 4b2115c..73dbedb 100644 --- a/SnipeitPS/Public/New-SnipeitDepartment.ps1 +++ b/SnipeitPS/Public/New-SnipeitDepartment.ps1 @@ -18,17 +18,17 @@ ID number of manager .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItDepartment -name "Department1" -company_id 1 -localtion_id 1 -manager_id 3 + New-SnipeitDepartment -name "Department1" -company_id 1 -localtion_id 1 -manager_id 3 #> -function New-SnipeItDepartment() { +function New-SnipeitDepartment() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -53,7 +53,7 @@ function New-SnipeItDepartment() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitLicense.ps1 b/SnipeitPS/Public/New-SnipeitLicense.ps1 index 67cb6fb..baac560 100644 --- a/SnipeitPS/Public/New-SnipeitLicense.ps1 +++ b/SnipeitPS/Public/New-SnipeitLicense.ps1 @@ -57,17 +57,17 @@ Termination date for license. .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItLicence -name "License" -seats 3 -company_id 1 + New-SnipeitLicence -name "License" -seats 3 -company_id 1 #> -function New-SnipeItLicense() { +function New-SnipeitLicense() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -124,7 +124,7 @@ function New-SnipeItLicense() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitLocation.ps1 b/SnipeitPS/Public/New-SnipeitLocation.ps1 index 81ac660..e2751f6 100644 --- a/SnipeitPS/Public/New-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/New-SnipeitLocation.ps1 @@ -39,16 +39,16 @@ The manager ID of the location .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItLocation -name "Room 1" -address "123 Asset Street" -parent_id 14 + New-SnipeitLocation -name "Room 1" -address "123 Asset Street" -parent_id 14 #> -function New-SnipeItLocation() { +function New-SnipeitLocation() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -85,7 +85,7 @@ function New-SnipeItLocation() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/New-SnipeitManufacturer.ps1 b/SnipeitPS/Public/New-SnipeitManufacturer.ps1 index c7c1f69..f7abf31 100644 --- a/SnipeitPS/Public/New-SnipeitManufacturer.ps1 +++ b/SnipeitPS/Public/New-SnipeitManufacturer.ps1 @@ -9,16 +9,16 @@ Name of the Manufacturer .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItManufacturer -name "HP" + New-SnipeitManufacturer -name "HP" #> -function New-SnipeItManufacturer() +function New-SnipeitManufacturer() { [CmdletBinding( SupportsShouldProcess = $true, @@ -36,7 +36,7 @@ function New-SnipeItManufacturer() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "name" = $Name diff --git a/SnipeitPS/Public/New-SnipeitModel.ps1 b/SnipeitPS/Public/New-SnipeitModel.ps1 index 603e052..5e36b8a 100644 --- a/SnipeitPS/Public/New-SnipeitModel.ps1 +++ b/SnipeitPS/Public/New-SnipeitModel.ps1 @@ -21,16 +21,16 @@ Fieldset ID that the asset uses (Custom fields) .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 + New-SnipeitModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 #> -function New-SnipeItModel() +function New-SnipeitModel() { [CmdletBinding( SupportsShouldProcess = $true, @@ -61,7 +61,7 @@ function New-SnipeItModel() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ name = $name diff --git a/SnipeitPS/Public/New-SnipeitUser.ps1 b/SnipeitPS/Public/New-SnipeitUser.ps1 index bab70bd..33306fc 100644 --- a/SnipeitPS/Public/New-SnipeitUser.ps1 +++ b/SnipeitPS/Public/New-SnipeitUser.ps1 @@ -48,19 +48,19 @@ Mark user as import from ldap .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItuser -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 + New-Snipeituser -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 Creates new a new user who can't login to system .NOTES General notes #> -function New-SnipeItUser() { +function New-SnipeitUser() { [CmdletBinding( SupportsShouldProcess = $true, @@ -109,7 +109,7 @@ function New-SnipeItUser() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Remove-SnipeitAsset.ps1 b/SnipeitPS/Public/Remove-SnipeitAsset.ps1 index 5526cc7..064ef48 100644 --- a/SnipeitPS/Public/Remove-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/Remove-SnipeitAsset.ps1 @@ -6,16 +6,16 @@ .PARAMETER ID Unique ID For Asset to be removed .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Remove-SnipeItAsset -ID 44 -Verbose + Remove-SnipeitAsset -ID 44 -Verbose #> -function Remove-SnipeItAsset () +function Remove-SnipeitAsset () { [CmdletBinding( SupportsShouldProcess = $true, @@ -32,7 +32,7 @@ function Remove-SnipeItAsset () ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "ID" = $id diff --git a/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 b/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 index 0f5d57f..4d9b4c3 100644 --- a/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 +++ b/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 @@ -1,4 +1,4 @@ -function Remove-SnipeItAssetMaintenance { +function Remove-SnipeitAssetMaintenance { <# .SYNOPSIS Remove asset maintenance from Snipe-it asset system @@ -7,13 +7,13 @@ function Remove-SnipeItAssetMaintenance { .PARAMETER ID Unique ID of the asset maintenance to be removed .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Remove-SnipeItAssetMaintenance -ID 44 -url $url -apiKey $secret -Verbose + Remove-SnipeitAssetMaintenance -ID 44 -url $url -apiKey $secret -Verbose #> [CmdletBinding( SupportsShouldProcess = $true, @@ -36,7 +36,7 @@ function Remove-SnipeItAssetMaintenance { $apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "ID" = $id diff --git a/SnipeitPS/Public/Remove-SnipeitUser.ps1 b/SnipeitPS/Public/Remove-SnipeitUser.ps1 index 2fae0cf..78fe42c 100644 --- a/SnipeitPS/Public/Remove-SnipeitUser.ps1 +++ b/SnipeitPS/Public/Remove-SnipeitUser.ps1 @@ -7,16 +7,16 @@ Unique ID For User to be removed .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Remove-SnipeItUser -ID 44 -url $url -apiKey $secret -Verbose + Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose #> -function Remove-SnipeItUser () +function Remove-SnipeitUser () { [CmdletBinding( SupportsShouldProcess = $true, @@ -33,7 +33,7 @@ function Remove-SnipeItUser () ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "ID" = $id diff --git a/SnipeitPS/Public/Reset-SnipeitAccessoryOwner.ps1 b/SnipeitPS/Public/Reset-SnipeitAccessoryOwner.ps1 index 8f5ffe0..a85ca2c 100644 --- a/SnipeitPS/Public/Reset-SnipeitAccessoryOwner.ps1 +++ b/SnipeitPS/Public/Reset-SnipeitAccessoryOwner.ps1 @@ -7,25 +7,25 @@ .PARAMETER 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 + Use Get-SnipeitAccessoryOwner to find out nooded value .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE To get the accessories_users table for specific accessory id number - Get-SnipeItAccessoryOwner -id 1 + Get-SnipeitAccessoryOwner -id 1 Thenselect assigned_pivot_id for userid you like check in - Get-SnipeItAccessoryOwner -assigned_pivot_id xxx + Get-SnipeitAccessoryOwner -assigned_pivot_id xxx #> -function Reset-SnipeItAccessoryOwner() +function Reset-SnipeitAccessoryOwner() { [CmdletBinding( SupportsShouldProcess = $true, diff --git a/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 b/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 index 235942a..9340d42 100644 --- a/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 +++ b/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 @@ -17,15 +17,15 @@ Notes about checkin .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfoeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command .EXAMPLE - Remove-SnipeItUser -ID 44 -url $url -apiKey $secret -Verbose + Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose #> -function Reset-SnipeItAssetOwner() { +function Reset-SnipeitAssetOwner() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Medium" @@ -48,7 +48,7 @@ function Reset-SnipeItAssetOwner() { [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ "notes" = $notes diff --git a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 index 54b9be8..54110e1 100644 --- a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 @@ -51,16 +51,16 @@ ID number of the location the accessory is assigned to Min quantity of the accessory before alert is triggered .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command .PARAMETER apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfoeItInfoeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfoeItInfo command .EXAMPLE -Set-SnipeItAccessory -id 1 -qty 3 +Set-SnipeitAccessory -id 1 -qty 3 #> -function Set-SnipeItAccessory() { +function Set-SnipeitAccessory() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -104,7 +104,7 @@ function Set-SnipeItAccessory() { ) begin { - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitAccessoryOwner.ps1 b/SnipeitPS/Public/Set-SnipeitAccessoryOwner.ps1 index 4b9d181..513c74c 100644 --- a/SnipeitPS/Public/Set-SnipeitAccessoryOwner.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAccessoryOwner.ps1 @@ -14,15 +14,15 @@ Notes about checkout .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Set-SnipeItAccessoryOwner -id 1 -assigned_id 1 -note "testing check out to user" + Set-SnipeitAccessoryOwner -id 1 -assigned_id 1 -note "testing check out to user" #> -function Set-SnipeItAccessoryOwner() +function Set-SnipeitAccessoryOwner() { [CmdletBinding( SupportsShouldProcess = $true, diff --git a/SnipeitPS/Public/Set-SnipeitAsset.ps1 b/SnipeitPS/Public/Set-SnipeitAsset.ps1 index 6cf2ca6..8d9cb80 100644 --- a/SnipeitPS/Public/Set-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAsset.ps1 @@ -57,25 +57,25 @@ Http request type to send Snipe IT system. Defaults to Put youc use Patch if needed .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfoeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command .PARAMETER customfields Hastable of custom fields and extra fields that need passing through to Snipeit .EXAMPLE - Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" + Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" .EXAMPLE - Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } + Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } .EXAMPLE - Get-SnipeItAsset -serial 12345678 | Set-SnipeItAsset -notes 'Just updated' + Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated' #> -function Set-SnipeItAsset() +function Set-SnipeitAsset() { [CmdletBinding( SupportsShouldProcess = $true, @@ -130,7 +130,7 @@ function Set-SnipeItAsset() [hashtable] $customfields ) begin{ - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitAssetOwner.ps1 b/SnipeitPS/Public/Set-SnipeitAssetOwner.ps1 index 1576457..5d859f5 100644 --- a/SnipeitPS/Public/Set-SnipeitAssetOwner.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAssetOwner.ps1 @@ -25,15 +25,15 @@ Optional date to override the checkout time of now .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Set-SnipeItAssetOwner -id 1 -assigned_id 1 -checkout_to_type user -note "testing check out to user" + Set-SnipeitAssetOwner -id 1 -assigned_id 1 -checkout_to_type user -note "testing check out to user" #> -function Set-SnipeItAssetOwner() +function Set-SnipeitAssetOwner() { [CmdletBinding( SupportsShouldProcess = $true, @@ -66,7 +66,7 @@ function Set-SnipeItAssetOwner() ) begin{ - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitComponents.ps1 b/SnipeitPS/Public/Set-SnipeitComponents.ps1 index fb1fe5c..e43466e 100644 --- a/SnipeitPS/Public/Set-SnipeitComponents.ps1 +++ b/SnipeitPS/Public/Set-SnipeitComponents.ps1 @@ -30,10 +30,10 @@ Date accessory was purchased Cost of item being purchased. .PARAMETER url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE An example @@ -41,7 +41,7 @@ An example .NOTES General notes #> -function Set-SnipeItComponent() +function Set-SnipeitComponent() { [CmdletBinding( SupportsShouldProcess = $true, @@ -75,7 +75,7 @@ function Set-SnipeItComponent() [string]$apiKey ) - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitInfo.ps1 b/SnipeitPS/Public/Set-SnipeitInfo.ps1 index 33fcf03..3788c2b 100644 --- a/SnipeitPS/Public/Set-SnipeitInfo.ps1 +++ b/SnipeitPS/Public/Set-SnipeitInfo.ps1 @@ -5,15 +5,15 @@ Set apikey and url user to connect Snipe-It system .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Set-SnipeItInfo -url $url -apiKey -Verbose + Set-SnipeitInfo -url $url -apiKey -Verbose #> -function Set-SnipeItInfo { +function Set-SnipeitInfo { [CmdletBinding()] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseShouldProcessForStateChangingFunctions', '')] param ( @@ -23,7 +23,7 @@ function Set-SnipeItInfo { ) BEGIN { - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name function Add-DefaultParameter { param( [Parameter(Mandatory = $true)] diff --git a/SnipeitPS/Public/Set-SnipeitLicense.ps1 b/SnipeitPS/Public/Set-SnipeitLicense.ps1 index 6471139..3664841 100644 --- a/SnipeitPS/Public/Set-SnipeitLicense.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLicense.ps1 @@ -60,17 +60,17 @@ Termination date for license. .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Set-SnipeItLicence -name "License" -seats 3 -company_id 1 + Set-SnipeitLicence -name "License" -seats 3 -company_id 1 #> -function Set-SnipeItLicense() { +function Set-SnipeitLicense() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Low" @@ -130,7 +130,7 @@ function Set-SnipeItLicense() { [string]$apiKey ) begin{ - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 index 74154d4..2a6d01a 100644 --- a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 @@ -17,21 +17,21 @@ Notes about checkout .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + 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 -Verbose 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 -Verbose Checkout licence to asset id 3 #> -function Set-SnipeItLicenseSeat() +function Set-SnipeitLicenseSeat() { [CmdletBinding( SupportsShouldProcess = $true, diff --git a/SnipeitPS/Public/Set-SnipeitLocation.ps1 b/SnipeitPS/Public/Set-SnipeitLocation.ps1 index 4706742..4a24d86 100644 --- a/SnipeitPS/Public/Set-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLocation.ps1 @@ -45,10 +45,10 @@ Parent location as id .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE Set-SnipeitLocation -id 123 -name "Some storage" -parent_id 100 @@ -96,7 +96,7 @@ function Set-SnipeitLocation() { ) begin{ - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitModel.ps1 b/SnipeitPS/Public/Set-SnipeitModel.ps1 index 04fc5a1..894802e 100644 --- a/SnipeitPS/Public/Set-SnipeitModel.ps1 +++ b/SnipeitPS/Public/Set-SnipeitModel.ps1 @@ -24,16 +24,16 @@ Fieldset ID that the asset uses (Custom fields) .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - Users API Key for Snipeit, can be set using Set-SnipeItInfo command + Users API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - New-SnipeItModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 + New-SnipeitModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 #> -function Set-SnipeItModel() { +function Set-SnipeitModel() { [CmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = "Medium" @@ -66,7 +66,7 @@ function Set-SnipeItModel() { ) begin { - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Set-SnipeitUser.ps1 b/SnipeitPS/Public/Set-SnipeitUser.ps1 index 26227a5..755ae82 100644 --- a/SnipeitPS/Public/Set-SnipeitUser.ps1 +++ b/SnipeitPS/Public/Set-SnipeitUser.ps1 @@ -51,19 +51,19 @@ Mark user as import from ldap .PARAMETER url - URL of Snipeit system, can be set using Set-SnipeItInfo command + URL of Snipeit system, can be set using Set-SnipeitInfo command .PARAMETER apiKey - User's API Key for Snipeit, can be set using Set-SnipeItInfo command + User's API Key for Snipeit, can be set using Set-SnipeitInfo command .EXAMPLE - Update-SnipeItUser -id 3 -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 + Update-SnipeitUser -id 3 -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 Updates user with id 3 .NOTES General notes #> -function Set-SnipeItUser() { +function Set-SnipeitUser() { [CmdletBinding( SupportsShouldProcess = $true, @@ -112,7 +112,7 @@ function Set-SnipeItUser() { [string]$apiKey ) begin{ - Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name + Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters diff --git a/SnipeitPS/Public/Update-SnipeitAlias.ps1 b/SnipeitPS/Public/Update-SnipeitAlias.ps1 index 99d70b8..0a1020c 100644 --- a/SnipeitPS/Public/Update-SnipeitAlias.ps1 +++ b/SnipeitPS/Public/Update-SnipeitAlias.ps1 @@ -9,14 +9,14 @@ Replaces old SnipeitPS commands with new ones Input string .EXAMPLE -Get-Content [your-script.ps1] | Update-SnipeItAlias | Out-File [new-script-name.ps1] +Get-Content [your-script.ps1] | Update-SnipeitAlias | Out-File [new-script-name.ps1] Replaces old command from file "your-script.ps1" and creates new script "new-script-name.ps1" After testing new file you can replace old file with new. #> -function Update-SnipeItAlias() +function Update-SnipeitAlias() { [CmdletBinding( SupportsShouldProcess = $true, @@ -31,7 +31,7 @@ function Update-SnipeItAlias() ) begin{ Write-Verbose "Replacing old SnipeIt fuctions with new ones.. " - $SnipeItAliases = Get-SnipeItAlias + $SnipeItAliases = Get-SnipeitAlias } process { diff --git a/SnipeitPS/SnipeitPS.psd1 b/SnipeitPS/SnipeitPS.psd1 index 07918b5..6414718 100644 --- a/SnipeitPS/SnipeitPS.psd1 +++ b/SnipeitPS/SnipeitPS.psd1 @@ -70,52 +70,52 @@ PowerShellVersion = '3.0' # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @( - 'Get-SnipeItAsset', - 'Get-SnipeItAssetMaintenance', - 'Get-SnipeItCategory', - 'Get-SnipeItCompany', - 'Get-SnipeItComponent', - 'Get-SnipeItCustomField', - 'Get-SnipeItDepartment', - 'Get-SnipeItFieldset', + 'Get-SnipeitAsset', + 'Get-SnipeitAssetMaintenance', + 'Get-SnipeitCategory', + 'Get-SnipeitCompany', + 'Get-SnipeitComponent', + 'Get-SnipeitCustomField', + 'Get-SnipeitDepartment', + 'Get-SnipeitFieldset', 'Get-SnipeitLocation', - 'Get-SnipeItManufacturer', - 'Get-SnipeItModel', - 'Get-SnipeItStatus', - 'Get-SnipeItSupplier', - 'Get-SnipeItUser', - 'New-SnipeItAsset', - 'New-SnipeItAssetMaintenance', - 'New-SnipeItCategory', - 'New-SnipeItComponent', - 'New-SnipeItCustomField', - 'New-SnipeItDepartment', - 'New-SnipeItLicense', - 'Set-SnipeItLicense', - 'Get-SnipeItLicense', - 'Get-SnipeItLicenseSeat', - 'Set-SnipeItLicenseSeat', - 'New-SnipeItLocation', - 'New-SnipeItManufacturer', - 'New-SnipeItModel', - 'New-SnipeItUser', - 'Set-SnipeItAsset', - 'Set-SnipeItAssetOwner', - 'Set-SnipeItComponent', - 'Set-SnipeItModel', - 'Set-SnipeItInfo', - 'Set-SnipeItUser', - 'Set-SnipeItLocation', - 'Add-SnipeItAccessory', - 'Set-SnipeItAccessory', - 'Get-SnipeItAccessory', - 'Remove-SnipeItAsset', - 'Remove-SnipeItUser', - 'Update-SnipeItAlias', - 'Set-SnipeItAccessoryOwner', - 'Get-SnipeItAccessoryOwner', - 'Reset-SnipeItAccessoryOwner', - 'Get-SnipeItActivity' + 'Get-SnipeitManufacturer', + 'Get-SnipeitModel', + 'Get-SnipeitStatus', + 'Get-SnipeitSupplier', + 'Get-SnipeitUser', + 'New-SnipeitAsset', + 'New-SnipeitAssetMaintenance', + 'New-SnipeitCategory', + 'New-SnipeitComponent', + 'New-SnipeitCustomField', + 'New-SnipeitDepartment', + 'New-SnipeitLicense', + 'Set-SnipeitLicense', + 'Get-SnipeitLicense', + 'Get-SnipeitLicenseSeat', + 'Set-SnipeitLicenseSeat', + 'New-SnipeitLocation', + 'New-SnipeitManufacturer', + 'New-SnipeitModel', + 'New-SnipeitUser', + 'Set-SnipeitAsset', + 'Set-SnipeitAssetOwner', + 'Set-SnipeitComponent', + 'Set-SnipeitModel', + 'Set-SnipeitInfo', + 'Set-SnipeitUser', + 'Set-SnipeitLocation', + 'Add-SnipeitAccessory', + 'Set-SnipeitAccessory', + 'Get-SnipeitAccessory', + 'Remove-SnipeitAsset', + 'Remove-SnipeitUser', + 'Update-SnipeitAlias', + 'Set-SnipeitAccessoryOwner', + 'Get-SnipeitAccessoryOwner', + 'Reset-SnipeitAccessoryOwner', + 'Get-SnipeitActivity' ) diff --git a/SnipeitPS/SnipeitPS.psm1 b/SnipeitPS/SnipeitPS.psm1 index 783e814..54ba03e 100644 --- a/SnipeitPS/SnipeitPS.psm1 +++ b/SnipeitPS/SnipeitPS.psm1 @@ -15,4 +15,4 @@ Get-ChildItem $scriptRoot *.ps1 | ForEach-Object { } #Create unprefixed aliases -Set-SnipeItAlias +Set-SnipeitAlias diff --git a/docs/Get-SnipeitAccessory.md b/docs/Get-SnipeitAccessory.md index 3de7686..1161e5e 100644 --- a/docs/Get-SnipeitAccessory.md +++ b/docs/Get-SnipeitAccessory.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItAccessory +# Get-SnipeitAccessory ## SYNOPSIS Gets a list of Snipe-it Accessories @@ -13,7 +13,7 @@ Gets a list of Snipe-it Accessories ## SYNTAX ``` -Get-SnipeItAccessory [[-search] ] [[-company_id] ] [[-category_id] ] +Get-SnipeitAccessory [[-search] ] [[-company_id] ] [[-category_id] ] [[-manufacturer_id] ] [[-supplier_id] ] [[-sort] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -25,12 +25,12 @@ Gets a list of Snipe-it Accessories ### EXAMPLE 1 ``` -Get-SnipeItAccessory -search Keyboard +Get-SnipeitAccessory -search Keyboard ``` ### EXAMPLE 2 ``` -Get-SnipeItAccessory -id 1 +Get-SnipeitAccessory -id 1 ``` ## PARAMETERS @@ -51,7 +51,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -203,7 +203,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitAccessoryOwner.md b/docs/Get-SnipeitAccessoryOwner.md index 7e56844..914d9ea 100644 --- a/docs/Get-SnipeitAccessoryOwner.md +++ b/docs/Get-SnipeitAccessoryOwner.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItAccessoryOwner +# Get-SnipeitAccessoryOwner ## SYNOPSIS Get list of checked out accessories @@ -13,7 +13,7 @@ Get list of checked out accessories ## SYNTAX ``` -Get-SnipeItAccessoryOwner [-id] [-url] [-apiKey] [-WhatIf] [-Confirm] +Get-SnipeitAccessoryOwner [-id] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -24,13 +24,13 @@ Get list of checked out accessories ### EXAMPLE 1 ``` -Get-SnipeItAccessoryOwner -id 1 +Get-SnipeitAccessoryOwner -id 1 ``` ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -60,7 +60,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitActivity.md b/docs/Get-SnipeitActivity.md index df1d745..8e656b3 100644 --- a/docs/Get-SnipeitActivity.md +++ b/docs/Get-SnipeitActivity.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItActivity +# Get-SnipeitActivity ## SYNOPSIS Gets and search Snipe-it Activity history @@ -13,7 +13,7 @@ Gets and search Snipe-it Activity history ## SYNTAX ``` -Get-SnipeItActivity [[-search] ] [[-target_type] ] [[-target_id] ] +Get-SnipeitActivity [[-search] ] [[-target_type] ] [[-target_id] ] [[-item_type] ] [[-item_id] ] [[-action_type] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -25,12 +25,12 @@ Gets a list of Snipe-it activity history ### EXAMPLE 1 ``` -Get-SnipeItAccessory -search Keyboard +Get-SnipeitAccessory -search Keyboard ``` ### EXAMPLE 2 ``` -Get-SnipeItAccessory -id 1 +Get-SnipeitAccessory -id 1 ``` ## PARAMETERS @@ -67,7 +67,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -189,7 +189,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitAsset.md b/docs/Get-SnipeitAsset.md index 6019232..3b6a8d0 100644 --- a/docs/Get-SnipeitAsset.md +++ b/docs/Get-SnipeitAsset.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItAsset +# Get-SnipeitAsset ## SYNOPSIS Gets a list of Snipe-it Assets or specific asset @@ -13,7 +13,7 @@ Gets a list of Snipe-it Assets or specific asset ## SYNTAX ``` -Get-SnipeItAsset [[-search] ] [[-id] ] [[-asset_tag] ] [[-serial] ] +Get-SnipeitAsset [[-search] ] [[-id] ] [[-asset_tag] ] [[-serial] ] [[-order_number] ] [[-model_id] ] [[-category_id] ] [[-manufacturer_id] ] [[-company_id] ] [[-location_id] ] [[-depreciation_id] ] [[-requestable] ] [[-status] ] [[-status_id] ] [[-sort] ] [[-order] ] [[-limit] ] @@ -27,22 +27,22 @@ Get-SnipeItAsset [[-search] ] [[-id] ] [[-asset_tag] ] [[ ### EXAMPLE 1 ``` -Get-SnipeItAsset -url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -url "https://assets.example.com"-token "token..." ``` ### EXAMPLE 2 ``` -Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..." ``` ### EXAMPLE 3 ``` -Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..." ``` ### EXAMPLE 4 ``` -Get-SnipeItAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..." +Get-SnipeitAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..." ``` ## PARAMETERS @@ -63,7 +63,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -350,7 +350,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitAssetMaintenance.md b/docs/Get-SnipeitAssetMaintenance.md index dc337a8..8ca5d36 100644 --- a/docs/Get-SnipeitAssetMaintenance.md +++ b/docs/Get-SnipeitAssetMaintenance.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItAssetMaintenance +# Get-SnipeitAssetMaintenance ## SYNOPSIS Lists Snipe-it Assets Maintenances @@ -13,7 +13,7 @@ Lists Snipe-it Assets Maintenances ## SYNTAX ``` -Get-SnipeItAssetMaintenance [[-search] ] [[-asset_id] ] [[-sort] ] [[-order] ] +Get-SnipeitAssetMaintenance [[-search] ] [[-asset_id] ] [[-sort] ] [[-order] ] [[-limit] ] [-all] [[-offset] ] [-url] [-apiKey] [] ``` @@ -24,17 +24,17 @@ Get-SnipeItAssetMaintenance [[-search] ] [[-asset_id] ] [[-sort] ### EXAMPLE 1 ``` -Get-SnipeItAssetMaintenances -url "https://assets.example.com" -token "token..." +Get-SnipeitAssetMaintenances -url "https://assets.example.com" -token "token..." ``` ### EXAMPLE 2 ``` -Get-SnipeItAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." +Get-SnipeitAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." ``` ### EXAMPLE 3 ``` -Get-SnipeItAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." +Get-SnipeitAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." ``` ## PARAMETERS @@ -55,7 +55,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -162,7 +162,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitCategory.md b/docs/Get-SnipeitCategory.md index 3c0fa98..5a5285d 100644 --- a/docs/Get-SnipeitCategory.md +++ b/docs/Get-SnipeitCategory.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItCategory +# Get-SnipeitCategory ## SYNOPSIS Gets a list of Snipe-it Categories @@ -13,7 +13,7 @@ Gets a list of Snipe-it Categories ## SYNTAX ``` -Get-SnipeItCategory [[-search] ] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitCategory [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,12 +24,12 @@ Get-SnipeItCategory [[-search] ] [[-id] ] [[-order] ] [[- ### EXAMPLE 1 ``` -Get-SnipeItCategory -id 1 +Get-SnipeitCategory -id 1 ``` ### EXAMPLE 2 ``` -Get-SnipeItCategory -search "Laptop" +Get-SnipeitCategory -search "Laptop" ``` ## PARAMETERS @@ -50,7 +50,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -142,7 +142,7 @@ Accept wildcard characters: False ``` ### -url -Url of Snipeit system, can be set using Set-SnipeItInfo command +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 ba1a10a..0a223c4 100644 --- a/docs/Get-SnipeitCompany.md +++ b/docs/Get-SnipeitCompany.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItCompany +# Get-SnipeitCompany ## SYNOPSIS Gets a list of Snipe-it Companies @@ -13,7 +13,7 @@ Gets a list of Snipe-it Companies ## SYNTAX ``` -Get-SnipeItCompany [[-search] ] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitCompany [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,13 +24,13 @@ Get-SnipeItCompany [[-search] ] [[-id] ] [[-order] ] [[-l ### EXAMPLE 1 ``` -Get-SnipeItCompany +Get-SnipeitCompany Gets all companies ``` ### EXAMPLE 2 ``` -Get-SnipeItCompany -id 1 +Get-SnipeitCompany -id 1 Gets specific company ``` @@ -52,7 +52,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -144,7 +144,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +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 defb9fc..d4476c5 100644 --- a/docs/Get-SnipeitComponent.md +++ b/docs/Get-SnipeitComponent.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItComponent +# Get-SnipeitComponent ## SYNOPSIS Gets a list of Snipe-it Components @@ -13,7 +13,7 @@ Gets a list of Snipe-it Components ## SYNTAX ``` -Get-SnipeItComponent [[-search] ] [[-id] ] [[-category_id] ] [[-company_id] ] +Get-SnipeitComponent [[-search] ] [[-id] ] [[-category_id] ] [[-company_id] ] [[-location_id] ] [[-order] ] [[-sort] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -25,19 +25,19 @@ Get-SnipeItComponent [[-search] ] [[-id] ] [[-category_id] ] [-url] [-apiKey] [] +Get-SnipeitCustomField [[-id] ] [-url] [-apiKey] [] ``` ## DESCRIPTION @@ -23,13 +23,13 @@ Get-SnipeItCustomField [[-id] ] [-url] [-apiKey] [] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitDepartment [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [[-sort] ] [-url] [-apiKey] [] ``` @@ -24,17 +24,17 @@ Get-SnipeItDepartment [[-search] ] [[-id] ] [[-order] ] [ ### EXAMPLE 1 ``` -Get-SnipeItDepartment -url "https://assets.example.com" -token "token..." +Get-SnipeitDepartment -url "https://assets.example.com" -token "token..." ``` ### EXAMPLE 2 ``` -Get-SnipeItDepartment -search Department1 +Get-SnipeitDepartment -search Department1 ``` ### EXAMPLE 3 ``` -Get-SnipeItDepartment -id 1 +Get-SnipeitDepartment -id 1 ``` ## PARAMETERS @@ -55,7 +55,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -162,7 +162,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitFieldset.md b/docs/Get-SnipeitFieldset.md index 5c9c5ce..7e585c1 100644 --- a/docs/Get-SnipeitFieldset.md +++ b/docs/Get-SnipeitFieldset.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItFieldset +# Get-SnipeitFieldset ## SYNOPSIS Returns a fieldset or list of Snipe-it Fieldsets @@ -13,7 +13,7 @@ Returns a fieldset or list of Snipe-it Fieldsets ## SYNTAX ``` -Get-SnipeItFieldset [[-id] ] [-url] [-apiKey] [] +Get-SnipeitFieldset [[-id] ] [-url] [-apiKey] [] ``` ## DESCRIPTION @@ -23,18 +23,18 @@ Get-SnipeItFieldset [[-id] ] [-url] [-apiKey] [] [[-id] ] [[-name] ] [[-company_id] ] +Get-SnipeitLicense [[-search] ] [[-id] ] [[-name] ] [[-company_id] ] [[-product_key] ] [[-order_number] ] [[-purchase_order] ] [[-license_name] ] [[-license_email] ] [[-manufacturer_id] ] [[-supplier_id] ] [[-depreciation_id] ] [[-category_id] ] [[-order] ] [[-sort] ] @@ -27,12 +27,12 @@ Get-SnipeItLicense [[-search] ] [[-id] ] [[-name] ] [[-co ### EXAMPLE 1 ``` -Get-SnipeItLicense -search SomeLicense +Get-SnipeitLicense -search SomeLicense ``` ### EXAMPLE 2 ``` -Get-SnipeItLicense -id 1 +Get-SnipeitLicense -id 1 ``` ## PARAMETERS @@ -53,7 +53,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -325,7 +325,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitLicenseSeat.md b/docs/Get-SnipeitLicenseSeat.md index 2b1091a..7f74a74 100644 --- a/docs/Get-SnipeitLicenseSeat.md +++ b/docs/Get-SnipeitLicenseSeat.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItLicenseSeat +# Get-SnipeitLicenseSeat ## SYNOPSIS Gets a list of Snipe-it Licenses Seats or specific Seat @@ -13,7 +13,7 @@ Gets a list of Snipe-it Licenses Seats or specific Seat ## SYNTAX ``` -Get-SnipeItLicenseSeat [-id] [[-seat_id] ] [[-limit] ] [[-offset] ] [-all] +Get-SnipeitLicenseSeat [-id] [[-seat_id] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,7 +24,7 @@ Get-SnipeItLicenseSeat [-id] [[-seat_id] ] [[-limit] ] [[- ### EXAMPLE 1 ``` -Get-SnipeItLicenseSeat -id 1 +Get-SnipeitLicenseSeat -id 1 ``` ## PARAMETERS @@ -45,7 +45,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Get-SnipeitLocation.md b/docs/Get-SnipeitLocation.md index 5e4ebcd..5c1da64 100644 --- a/docs/Get-SnipeitLocation.md +++ b/docs/Get-SnipeitLocation.md @@ -24,12 +24,12 @@ Get-SnipeitLocation [[-search] ] [[-id] ] [[-order] ] [[- ### EXAMPLE 1 ``` -Get-SnipeItLocation -search Location1 +Get-SnipeitLocation -search Location1 ``` ### EXAMPLE 2 ``` -Get-SnipeItLocation -id 3 +Get-SnipeitLocation -id 3 ``` ## PARAMETERS @@ -50,7 +50,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -142,7 +142,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command +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 62b163a..13c73e4 100644 --- a/docs/Get-SnipeitManufacturer.md +++ b/docs/Get-SnipeitManufacturer.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItManufacturer +# Get-SnipeitManufacturer ## SYNOPSIS # Gets a list of Snipe-it Manufacturers @@ -13,7 +13,7 @@ schema: 2.0.0 ## SYNTAX ``` -Get-SnipeItManufacturer [[-search] ] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitManufacturer [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,13 +24,13 @@ Get-SnipeItManufacturer [[-search] ] [[-id] ] [[-order] ] ### EXAMPLE 1 ``` -Get-SnipeItManufacturer -search HP +Get-SnipeitManufacturer -search HP Search all manufacturers for string HP ``` ### EXAMPLE 2 ``` -Get-SnipeItManufacturer -id 3 +Get-SnipeitManufacturer -id 3 Returns manufacturer with id 3 ``` @@ -52,7 +52,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -144,7 +144,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +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 fd9ecf4..3efcf0f 100644 --- a/docs/Get-SnipeitModel.md +++ b/docs/Get-SnipeitModel.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItModel +# Get-SnipeitModel ## SYNOPSIS Gets a list of Snipe-it Models @@ -13,7 +13,7 @@ Gets a list of Snipe-it Models ## SYNTAX ``` -Get-SnipeItModel [[-search] ] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitModel [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,12 +24,12 @@ Get-SnipeItModel [[-search] ] [[-id] ] [[-order] ] [[-lim ### EXAMPLE 1 ``` -Get-SnipeItModel -search "DL380" +Get-SnipeitModel -search "DL380" ``` ### EXAMPLE 2 ``` -Get-SnipeItModel -id 1 +Get-SnipeitModel -id 1 ``` ## PARAMETERS @@ -50,7 +50,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -142,7 +142,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +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 b4d03f4..554ee1c 100644 --- a/docs/Get-SnipeitStatus.md +++ b/docs/Get-SnipeitStatus.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItStatus +# Get-SnipeitStatus ## SYNOPSIS Gets a list of Snipe-it Status Labels @@ -13,7 +13,7 @@ Gets a list of Snipe-it Status Labels ## SYNTAX ``` -Get-SnipeItStatus [[-search] ] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitStatus [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,12 +24,12 @@ Get-SnipeItStatus [[-search] ] [[-id] ] [[-order] ] [[-li ### EXAMPLE 1 ``` -Get-SnipeItStatus -search "Ready to Deploy" +Get-SnipeitStatus -search "Ready to Deploy" ``` ### EXAMPLE 2 ``` -Get-SnipeItStatus -id 3 +Get-SnipeitStatus -id 3 ``` ## PARAMETERS @@ -50,7 +50,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -142,7 +142,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +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 fc0dca1..99244f9 100644 --- a/docs/Get-SnipeitSupplier.md +++ b/docs/Get-SnipeitSupplier.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItSupplier +# Get-SnipeitSupplier ## SYNOPSIS # Gets a list of Snipe-it Suppliers @@ -13,7 +13,7 @@ schema: 2.0.0 ## SYNTAX ``` -Get-SnipeItSupplier [[-search] ] [[-id] ] [[-order] ] [[-limit] ] +Get-SnipeitSupplier [[-search] ] [[-id] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] ``` @@ -24,12 +24,12 @@ Get-SnipeItSupplier [[-search] ] [[-id] ] [[-order] ] [[- ### EXAMPLE 1 ``` -Get-SnipeItSupplier -search MySupplier +Get-SnipeitSupplier -search MySupplier ``` ### EXAMPLE 2 ``` -Get-SnipeItSupplier -id 2 +Get-SnipeitSupplier -id 2 ``` ## PARAMETERS @@ -50,7 +50,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -142,7 +142,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +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 492e0c1..ee1882b 100644 --- a/docs/Get-SnipeitUser.md +++ b/docs/Get-SnipeitUser.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Get-SnipeItUser +# Get-SnipeitUser ## SYNOPSIS # Gets a list of Snipe-it Users @@ -13,7 +13,7 @@ schema: 2.0.0 ## SYNTAX ``` -Get-SnipeItUser [[-search] ] [[-id] ] [[-company_id] ] [[-location_id] ] +Get-SnipeitUser [[-search] ] [[-id] ] [[-company_id] ] [[-location_id] ] [[-group_id] ] [[-department_id] ] [[-username] ] [[-email] ] [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] @@ -26,22 +26,22 @@ Get-SnipeItUser [[-search] ] [[-id] ] [[-company_id] ] [[ ### EXAMPLE 1 ``` -Get-SnipeItUser -search SomeSurname +Get-SnipeitUser -search SomeSurname ``` ### EXAMPLE 2 ``` -Get-SnipeItUser -id 3 +Get-SnipeitUser -id 3 ``` ### EXAMPLE 3 ``` -Get-SnipeItUser -username someuser +Get-SnipeitUser -username someuser ``` ### EXAMPLE 4 ``` -Get-SnipeItUser -email user@somedomain.com +Get-SnipeitUser -email user@somedomain.com ``` ## PARAMETERS @@ -62,7 +62,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -229,7 +229,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitAsset.md b/docs/New-SnipeitAsset.md index e364048..f27ce54 100644 --- a/docs/New-SnipeitAsset.md +++ b/docs/New-SnipeitAsset.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItAsset +# New-SnipeitAsset ## SYNOPSIS Add a new Asset to Snipe-it asset system @@ -13,7 +13,7 @@ Add a new Asset to Snipe-it asset system ## SYNTAX ``` -New-SnipeItAsset [-status_id] [-model_id] [[-name] ] [[-asset_tag] ] +New-SnipeitAsset [-status_id] [-model_id] [[-name] ] [[-asset_tag] ] [[-serial] ] [[-company_id] ] [[-order_number] ] [[-notes] ] [[-warranty_months] ] [[-purchase_cost] ] [[-purchase_date] ] [[-supplier_id] ] [[-rtd_location_id] ] [-url] [-apiKey] @@ -27,26 +27,26 @@ Long description ### EXAMPLE 1 ``` -New-SnipeItAsset -status_id 1 -model_id 1 -name "Machine1" +New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" Create asset with automatic tag if tag genaration is enabled on snipe-it, other wise without tag ``` ### EXAMPLE 2 ``` -New-SnipeItAsset -status_id 1 -model_id 1 -name "Machine1" -asset_tag "DEV123" +New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -asset_tag "DEV123" Specifying asset tag when creating asset ``` ### EXAMPLE 3 ``` -New-SnipeItAsset -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5" = "Windows 10 Pro" } +New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5" = "Windows 10 Pro" } Using customfields when creating asset. ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -257,7 +257,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitAssetMaintenance.md b/docs/New-SnipeitAssetMaintenance.md index 64d994f..9e047b9 100644 --- a/docs/New-SnipeitAssetMaintenance.md +++ b/docs/New-SnipeitAssetMaintenance.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItAssetMaintenance +# New-SnipeitAssetMaintenance ## SYNOPSIS Add a new Asset maintenence to Snipe-it asset system @@ -13,7 +13,7 @@ Add a new Asset maintenence to Snipe-it asset system ## SYNTAX ``` -New-SnipeItAssetMaintenance [-asset_id] [-supplier_id] [-asset_maintenance_type] +New-SnipeitAssetMaintenance [-asset_id] [-supplier_id] [-asset_maintenance_type] [-title] [-start_date] [[-completion_date] ] [[-is_warranty] ] [[-cost] ] [[-notes] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] @@ -26,13 +26,13 @@ Long description ### EXAMPLE 1 ``` -New-SnipeItAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" -start_date 2021-01-01 +New-SnipeitAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" -start_date 2021-01-01 ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -182,7 +182,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitCategory.md b/docs/New-SnipeitCategory.md index 308c092..e5091da 100644 --- a/docs/New-SnipeitCategory.md +++ b/docs/New-SnipeitCategory.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItCategory +# New-SnipeitCategory ## SYNOPSIS Create a new Snipe-IT Category @@ -13,7 +13,7 @@ Create a new Snipe-IT Category ## SYNTAX ``` -New-SnipeItCategory [-name] [-category_type] [-url] [-apiKey] +New-SnipeitCategory [-name] [-category_type] [-url] [-apiKey] [-use_default_eula] [-require_acceptance] [-checkin_email] [-WhatIf] [-Confirm] [] ``` @@ -24,13 +24,13 @@ New-SnipeItCategory [-name] [-category_type] [-url] [ ### EXAMPLE 1 ``` -New-SnipeItCategory -name "Laptops" -category_type asset -url "Snipe-IT URL here..." -apiKey "API key here..." +New-SnipeitCategory -name "Laptops" -category_type asset -url "Snipe-IT URL here..." -apiKey "API key here..." ``` ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -105,7 +105,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitComponent.md b/docs/New-SnipeitComponent.md index ea6e383..d577590 100644 --- a/docs/New-SnipeitComponent.md +++ b/docs/New-SnipeitComponent.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItComponent +# New-SnipeitComponent ## SYNOPSIS Create a new component @@ -13,7 +13,7 @@ Create a new component ## SYNTAX ``` -New-SnipeItComponent [-name] [-category_id] [-qty] [[-company_id] ] +New-SnipeitComponent [-name] [-category_id] [-qty] [[-company_id] ] [[-location_id] ] [[-purchase_date] ] [[-purchase_cost] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -31,7 +31,7 @@ An example ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -151,7 +151,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitCustomField.md b/docs/New-SnipeitCustomField.md index 9fedb1d..3c3dab4 100644 --- a/docs/New-SnipeitCustomField.md +++ b/docs/New-SnipeitCustomField.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItCustomField +# New-SnipeitCustomField ## SYNOPSIS Add a new Custom Field to Snipe-it asset system @@ -13,7 +13,7 @@ Add a new Custom Field to Snipe-it asset system ## SYNTAX ``` -New-SnipeItCustomField [-Name] [[-HelpText] ] [[-Element] ] [[-Format] ] +New-SnipeitCustomField [-Name] [[-HelpText] ] [[-Element] ] [[-Format] ] [[-field_encrypted] ] [[-CustomFormat] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -25,13 +25,13 @@ Add a new Custom Field to Snipe-it asset system ### EXAMPLE 1 ``` -New-SnipeItCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "Is AntiVirus installed on Asset" +New-SnipeitCustomField -Name "AntivirusInstalled" -Format "BOOLEAN" -HelpText "Is AntiVirus installed on Asset" ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -136,7 +136,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitDepartment.md b/docs/New-SnipeitDepartment.md index 98d0ab0..a5a01b5 100644 --- a/docs/New-SnipeitDepartment.md +++ b/docs/New-SnipeitDepartment.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItDepartment +# New-SnipeitDepartment ## SYNOPSIS Creates a department @@ -13,7 +13,7 @@ Creates a department ## SYNTAX ``` -New-SnipeItDepartment [-name] [[-company_id] ] [[-location_id] ] [[-manager_id] ] +New-SnipeitDepartment [-name] [[-company_id] ] [[-location_id] ] [[-manager_id] ] [[-notes] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -24,13 +24,13 @@ Creates a new department on Snipe-It system ### EXAMPLE 1 ``` -New-SnipeItDepartment -name "Department1" -company_id 1 -localtion_id 1 -manager_id 3 +New-SnipeitDepartment -name "Department1" -company_id 1 -localtion_id 1 -manager_id 3 ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -120,7 +120,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitLicense.md b/docs/New-SnipeitLicense.md index 1a62f70..73f46b1 100644 --- a/docs/New-SnipeitLicense.md +++ b/docs/New-SnipeitLicense.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItLicense +# New-SnipeitLicense ## SYNOPSIS Creates a licence @@ -13,7 +13,7 @@ Creates a licence ## SYNTAX ``` -New-SnipeItLicense [-name] [-seats] [[-category_id] ] [[-company_id] ] +New-SnipeitLicense [-name] [-seats] [[-category_id] ] [[-company_id] ] [[-expiration_date] ] [[-license_email] ] [[-license_name] ] [[-maintained] ] [[-manufacturer_id] ] [[-notes] ] [[-order_number] ] [[-purchase_cost] ] [[-purchase_date] ] [[-reassignable] ] [[-serial] ] @@ -28,13 +28,13 @@ Creates a new licence on Snipe-It system ### EXAMPLE 1 ``` -New-SnipeItLicence -name "License" -seats 3 -company_id 1 +New-SnipeitLicence -name "License" -seats 3 -company_id 1 ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -304,7 +304,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitLocation.md b/docs/New-SnipeitLocation.md index aac0704..6b12649 100644 --- a/docs/New-SnipeitLocation.md +++ b/docs/New-SnipeitLocation.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItLocation +# New-SnipeitLocation ## SYNOPSIS Add a new Location to Snipe-it asset system @@ -13,7 +13,7 @@ Add a new Location to Snipe-it asset system ## SYNTAX ``` -New-SnipeItLocation [-name] [[-address] ] [[-address2] ] [[-city] ] +New-SnipeitLocation [-name] [[-address] ] [[-address2] ] [[-city] ] [[-state] ] [[-country] ] [[-zip] ] [[-currency] ] [[-parent_id] ] [[-manager_id] ] [[-ldap_ou] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] @@ -26,7 +26,7 @@ Long description ### EXAMPLE 1 ``` -New-SnipeItLocation -name "Room 1" -address "123 Asset Street" -parent_id 14 +New-SnipeitLocation -name "Room 1" -address "123 Asset Street" -parent_id 14 ``` ## PARAMETERS @@ -62,7 +62,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -197,7 +197,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitManufacturer.md b/docs/New-SnipeitManufacturer.md index 6028e83..434bb49 100644 --- a/docs/New-SnipeitManufacturer.md +++ b/docs/New-SnipeitManufacturer.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItManufacturer +# New-SnipeitManufacturer ## SYNOPSIS Add a new Manufacturer to Snipe-it asset system @@ -13,7 +13,7 @@ Add a new Manufacturer to Snipe-it asset system ## SYNTAX ``` -New-SnipeItManufacturer [-Name] [-url] [-apiKey] [-WhatIf] [-Confirm] +New-SnipeitManufacturer [-Name] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -24,13 +24,13 @@ Long description ### EXAMPLE 1 ``` -New-SnipeItManufacturer -name "HP" +New-SnipeitManufacturer -name "HP" ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -60,7 +60,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitModel.md b/docs/New-SnipeitModel.md index 49db9e0..ea055b5 100644 --- a/docs/New-SnipeitModel.md +++ b/docs/New-SnipeitModel.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItModel +# New-SnipeitModel ## SYNOPSIS Add a new Model to Snipe-it asset system @@ -13,7 +13,7 @@ Add a new Model to Snipe-it asset system ## SYNTAX ``` -New-SnipeItModel [-name] [[-model_number] ] [-category_id] [-manufacturer_id] +New-SnipeitModel [-name] [[-model_number] ] [-category_id] [-manufacturer_id] [[-eol] ] [-fieldset_id] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -25,13 +25,13 @@ Long description ### EXAMPLE 1 ``` -New-SnipeItModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 +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 +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -136,7 +136,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/New-SnipeitUser.md b/docs/New-SnipeitUser.md index 95910aa..b65f9a2 100644 --- a/docs/New-SnipeitUser.md +++ b/docs/New-SnipeitUser.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# New-SnipeItUser +# New-SnipeitUser ## SYNOPSIS Creates a new user @@ -13,7 +13,7 @@ Creates a new user ## SYNTAX ``` -New-SnipeItUser [-first_name] [-last_name] [-username] [[-password] ] +New-SnipeitUser [-first_name] [-last_name] [-username] [[-password] ] [[-activated] ] [[-notes] ] [[-jobtitle] ] [[-email] ] [[-phone] ] [[-company_id] ] [[-location_id] ] [[-department_id] ] [[-manager_id] ] [[-employee_num] ] [[-ldap_import] ] [-url] [-apiKey] [-WhatIf] [-Confirm] @@ -27,7 +27,7 @@ Creates a new user to Snipe-IT system ### EXAMPLE 1 ``` -New-SnipeItuser -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 +New-Snipeituser -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 Creates new a new user who can't login to system ``` @@ -49,7 +49,7 @@ Accept wildcard characters: False ``` ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -259,7 +259,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Remove-SnipeitAsset.md b/docs/Remove-SnipeitAsset.md index 10ae7f4..f0dee8d 100644 --- a/docs/Remove-SnipeitAsset.md +++ b/docs/Remove-SnipeitAsset.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Remove-SnipeItAsset +# Remove-SnipeitAsset ## SYNOPSIS Removes Asset from Snipe-it asset system @@ -13,7 +13,7 @@ Removes Asset from Snipe-it asset system ## SYNTAX ``` -Remove-SnipeItAsset [-id] [-URL] [-APIKey] [-WhatIf] [-Confirm] [] +Remove-SnipeitAsset [-id] [-URL] [-APIKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -23,13 +23,13 @@ Removes Asset from Snipe-it asset system ### EXAMPLE 1 ``` -Remove-SnipeItAsset -ID 44 -Verbose +Remove-SnipeitAsset -ID 44 -Verbose ``` ## PARAMETERS ### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -59,7 +59,7 @@ Accept wildcard characters: False ``` ### -URL -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Remove-SnipeitUser.md b/docs/Remove-SnipeitUser.md index 906fc20..bcca3a0 100644 --- a/docs/Remove-SnipeitUser.md +++ b/docs/Remove-SnipeitUser.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Remove-SnipeItUser +# Remove-SnipeitUser ## SYNOPSIS Removes User from Snipe-it asset system @@ -13,7 +13,7 @@ Removes User from Snipe-it asset system ## SYNTAX ``` -Remove-SnipeItUser [-id] [-URL] [-APIKey] [-WhatIf] [-Confirm] [] +Remove-SnipeitUser [-id] [-URL] [-APIKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -23,13 +23,13 @@ Long description ### EXAMPLE 1 ``` -Remove-SnipeItUser -ID 44 -url $url -apiKey $secret -Verbose +Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose ``` ## PARAMETERS ### -APIKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -59,7 +59,7 @@ Accept wildcard characters: False ``` ### -URL -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Reset-SnipeitAccessoryOwner.md b/docs/Reset-SnipeitAccessoryOwner.md index 741d04e..8d8e733 100644 --- a/docs/Reset-SnipeitAccessoryOwner.md +++ b/docs/Reset-SnipeitAccessoryOwner.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Reset-SnipeItAccessoryOwner +# Reset-SnipeitAccessoryOwner ## SYNOPSIS Checkin accessories @@ -13,7 +13,7 @@ Checkin accessories ## SYNTAX ``` -Reset-SnipeItAccessoryOwner [-assigned_pivot_id] [-url] [-apiKey] [-WhatIf] +Reset-SnipeitAccessoryOwner [-assigned_pivot_id] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -27,16 +27,16 @@ Checkin accessories To get the accessories_users table for specific accessory id number ``` -Get-SnipeItAccessoryOwner -id 1 +Get-SnipeitAccessoryOwner -id 1 Thenselect assigned_pivot_id for userid you like check in -Get-SnipeItAccessoryOwner -assigned_pivot_id xxx +Get-SnipeitAccessoryOwner -assigned_pivot_id xxx ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -52,7 +52,7 @@ 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 +Use Get-SnipeitAccessoryOwner to find out nooded value ```yaml Type: Int32 @@ -67,7 +67,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index 220798a..93c01e8 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItAccessory +# Set-SnipeitAccessory ## SYNOPSIS Updates accessory on Snipe-It system @@ -13,7 +13,7 @@ Updates accessory on Snipe-It system ## SYNTAX ``` -Set-SnipeItAccessory [-id] [[-name] ] [[-qty] ] [[-category_id] ] +Set-SnipeitAccessory [-id] [[-name] ] [[-qty] ] [[-category_id] ] [[-company_id] ] [[-manufacturer_id] ] [[-order_number] ] [[-purchase_cost] ] [[-purchase_date] ] [[-min_qty] ] [[-supplier_id] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] @@ -26,13 +26,13 @@ Updates accessory on Snipe-It system ### EXAMPLE 1 ``` -Set-SnipeItAccessory -id 1 -qty 3 +Set-SnipeitAccessory -id 1 -qty 3 ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfoeItInfoeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfoeItInfo command ```yaml Type: String @@ -212,7 +212,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitAccessoryOwner.md b/docs/Set-SnipeitAccessoryOwner.md index a76d159..460f2f7 100644 --- a/docs/Set-SnipeitAccessoryOwner.md +++ b/docs/Set-SnipeitAccessoryOwner.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItAccessoryOwner +# Set-SnipeitAccessoryOwner ## SYNOPSIS Checkout accessory @@ -13,7 +13,7 @@ Checkout accessory ## SYNTAX ``` -Set-SnipeItAccessoryOwner [-id] [-assigned_to] [[-note] ] [-url] +Set-SnipeitAccessoryOwner [-id] [-assigned_to] [[-note] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -24,13 +24,13 @@ Checkout accessory to user ### EXAMPLE 1 ``` -Set-SnipeItAccessoryOwner -id 1 -assigned_id 1 -note "testing check out to user" +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 +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -90,7 +90,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitAsset.md b/docs/Set-SnipeitAsset.md index 224c131..623901a 100644 --- a/docs/Set-SnipeitAsset.md +++ b/docs/Set-SnipeitAsset.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItAsset +# Set-SnipeitAsset ## SYNOPSIS Update a specific Asset in the Snipe-it asset system @@ -13,7 +13,7 @@ Update a specific Asset in the Snipe-it asset system ## SYNTAX ``` -Set-SnipeItAsset [-id] [[-name] ] [[-status_id] ] [[-model_id] ] +Set-SnipeitAsset [-id] [[-name] ] [[-status_id] ] [[-model_id] ] [[-last_checkout] ] [[-assigned_to] ] [[-company_id] ] [[-serial] ] [[-order_number] ] [[-warranty_months] ] [[-purchase_cost] ] [[-purchase_date] ] [[-requestable] ] [[-archived] ] [[-rtd_location_id] ] @@ -28,18 +28,18 @@ Long description ### EXAMPLE 1 ``` -Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" +Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" ``` ### EXAMPLE 2 ``` -Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } +Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfoeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfoeItInfo command ```yaml Type: String @@ -311,7 +311,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitAssetOwner.md b/docs/Set-SnipeitAssetOwner.md index c6ed6b9..d9d892a 100644 --- a/docs/Set-SnipeitAssetOwner.md +++ b/docs/Set-SnipeitAssetOwner.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItAssetOwner +# Set-SnipeitAssetOwner ## SYNOPSIS Checkout asset @@ -13,7 +13,7 @@ Checkout asset ## SYNTAX ``` -Set-SnipeItAssetOwner [-id] [-assigned_id] [[-checkout_to_type] ] [[-name] ] +Set-SnipeitAssetOwner [-id] [-assigned_id] [[-checkout_to_type] ] [[-name] ] [[-note] ] [[-expected_checkin] ] [[-checkout_at] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -25,13 +25,13 @@ Checkout asset to user/localtion/asset ### EXAMPLE 1 ``` -Set-SnipeItAssetOwner -id 1 -assigned_id 1 -checkout_to_type user -note "testing check out to user" +Set-SnipeitAssetOwner -id 1 -assigned_id 1 -checkout_to_type user -note "testing check out to user" ``` ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -154,7 +154,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitComponent.md b/docs/Set-SnipeitComponent.md index 593d576..5c08485 100644 --- a/docs/Set-SnipeitComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItComponent +# Set-SnipeitComponent ## SYNOPSIS Updates component @@ -13,7 +13,7 @@ Updates component ## SYNTAX ``` -Set-SnipeItComponent [-id] [-qty] [[-name] ] [[-company_id] ] +Set-SnipeitComponent [-id] [-qty] [[-name] ] [[-company_id] ] [[-location_id] ] [[-purchase_date] ] [[-purchase_cost] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -31,7 +31,7 @@ An example ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -151,7 +151,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitInfo.md b/docs/Set-SnipeitInfo.md index 5208f8d..cb41bfc 100644 --- a/docs/Set-SnipeitInfo.md +++ b/docs/Set-SnipeitInfo.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItInfo +# Set-SnipeitInfo ## SYNOPSIS Sets authetication information @@ -13,7 +13,7 @@ Sets authetication information ## SYNTAX ``` -Set-SnipeItInfo [[-url] ] [[-apiKey] ] [] +Set-SnipeitInfo [[-url] ] [[-apiKey] ] [] ``` ## DESCRIPTION @@ -23,13 +23,13 @@ Set apikey and url user to connect Snipe-It system ### EXAMPLE 1 ``` -Set-SnipeItInfo -url $url -apiKey -Verbose +Set-SnipeitInfo -url $url -apiKey -Verbose ``` ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -44,7 +44,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: Uri diff --git a/docs/Set-SnipeitLicense.md b/docs/Set-SnipeitLicense.md index e1a0f45..12ff68f 100644 --- a/docs/Set-SnipeitLicense.md +++ b/docs/Set-SnipeitLicense.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItLicense +# Set-SnipeitLicense ## SYNOPSIS Updates a licence @@ -13,7 +13,7 @@ Updates a licence ## SYNTAX ``` -Set-SnipeItLicense [-id] [[-name] ] [[-seats] ] [[-category_id] ] +Set-SnipeitLicense [-id] [[-name] ] [[-seats] ] [[-category_id] ] [[-company_id] ] [[-expiration_date] ] [[-license_email] ] [[-license_name] ] [[-maintained] ] [[-manufacturer_id] ] [[-notes] ] [[-order_number] ] [[-purchase_cost] ] [[-purchase_date] ] @@ -28,13 +28,13 @@ Updates licence on Snipe-It system ### EXAMPLE 1 ``` -Set-SnipeItLicence -name "License" -seats 3 -company_id 1 +Set-SnipeitLicence -name "License" -seats 3 -company_id 1 ``` ## PARAMETERS ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -319,7 +319,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitLicenseSeat.md b/docs/Set-SnipeitLicenseSeat.md index 7c34789..3706d40 100644 --- a/docs/Set-SnipeitLicenseSeat.md +++ b/docs/Set-SnipeitLicenseSeat.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItLicenseSeat +# Set-SnipeitLicenseSeat ## SYNOPSIS Set license seat or checkout license seat @@ -13,7 +13,7 @@ Set license seat or checkout license seat ## SYNTAX ``` -Set-SnipeItLicenseSeat [-id] [-seat_id] [[-assigned_id] ] [[-asset_id] ] +Set-SnipeitLicenseSeat [-id] [-seat_id] [[-assigned_id] ] [[-asset_id] ] [[-note] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -24,20 +24,20 @@ 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 -Verbose 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 -Verbose Checkout licence to asset id 3 ``` ## PARAMETERS ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -127,7 +127,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index ca9e363..8d9bef4 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -62,7 +62,7 @@ Accept wildcard characters: False ``` ### -apiKey -Users API Key for Snipeit, can be set using Set-SnipeItInfo command +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -212,7 +212,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitModel.md b/docs/Set-SnipeitModel.md index f0af8cf..2b554cd 100644 --- a/docs/Set-SnipeitModel.md +++ b/docs/Set-SnipeitModel.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItModel +# Set-SnipeitModel ## SYNOPSIS Updates Model on Snipe-it asset system @@ -13,7 +13,7 @@ Updates Model on Snipe-it asset system ## SYNTAX ``` -Set-SnipeItModel [-id] [[-name] ] [[-model_number] ] [[-category_id] ] +Set-SnipeitModel [-id] [[-name] ] [[-model_number] ] [[-category_id] ] [[-manufacturer_id] ] [[-eol] ] [[-custom_fieldset_id] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` @@ -25,13 +25,13 @@ Updates Model on Snipe-it asset system ### EXAMPLE 1 ``` -New-SnipeItModel -name "DL380" -manufacturer_id 2 -fieldset_id 2 -category_id 1 +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 +Users API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -151,7 +151,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/Set-SnipeitUser.md b/docs/Set-SnipeitUser.md index 3a15c4e..e95ba10 100644 --- a/docs/Set-SnipeitUser.md +++ b/docs/Set-SnipeitUser.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Set-SnipeItUser +# Set-SnipeitUser ## SYNOPSIS Creates a new user @@ -13,7 +13,7 @@ Creates a new user ## SYNTAX ``` -Set-SnipeItUser [-id] [[-first_name] ] [[-last_name] ] [[-userName] ] +Set-SnipeitUser [-id] [[-first_name] ] [[-last_name] ] [[-userName] ] [[-jobtitle] ] [[-email] ] [[-phone] ] [[-company_id] ] [[-location_id] ] [[-department_id] ] [[-manager_id] ] [[-employee_num] ] [[-activated] ] [[-notes] ] [-url] [-apiKey] [-WhatIf] [-Confirm] @@ -27,7 +27,7 @@ Creates a new user to Snipe-IT system ### EXAMPLE 1 ``` -Update-SnipeItUser -id 3 -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 +Update-SnipeitUser -id 3 -fist_name It -lastname Snipe -username snipeit -activated $false -company_id 1 -location_id 1 -department_id 1 Updates user with id 3 ``` @@ -49,7 +49,7 @@ Accept wildcard characters: False ``` ### -apiKey -User's API Key for Snipeit, can be set using Set-SnipeItInfo command +User's API Key for Snipeit, can be set using Set-SnipeitInfo command ```yaml Type: String @@ -244,7 +244,7 @@ Accept wildcard characters: False ``` ### -url -URL of Snipeit system, can be set using Set-SnipeItInfo command +URL of Snipeit system, can be set using Set-SnipeitInfo command ```yaml Type: String diff --git a/docs/SnipeitPS.md b/docs/SnipeitPS.md index faa0b8d..5aa9bc6 100644 --- a/docs/SnipeitPS.md +++ b/docs/SnipeitPS.md @@ -11,129 +11,129 @@ Locale: en-US {{ Fill in the Description }} ## SnipeitPS Cmdlets -### [Get-SnipeItAccessory](Get-SnipeItAccessory.md) +### [Get-SnipeitAccessory](Get-SnipeitAccessory.md) Gets a list of Snipe-it Accessories -### [Get-SnipeItAccessoryOwner](Get-SnipeItAccessoryOwner.md) +### [Get-SnipeitAccessoryOwner](Get-SnipeitAccessoryOwner.md) Get list of checked out accessories -### [Get-SnipeItActivity](Get-SnipeItActivity.md) +### [Get-SnipeitActivity](Get-SnipeitActivity.md) Gets and search Snipe-it Activity history -### [Get-SnipeItAsset](Get-SnipeItAsset.md) +### [Get-SnipeitAsset](Get-SnipeitAsset.md) Gets a list of Snipe-it Assets or specific asset -### [Get-SnipeItAssetMaintenance](Get-SnipeItAssetMaintenance.md) +### [Get-SnipeitAssetMaintenance](Get-SnipeitAssetMaintenance.md) Lists Snipe-it Assets Maintenances -### [Get-SnipeItCategory](Get-SnipeItCategory.md) +### [Get-SnipeitCategory](Get-SnipeitCategory.md) Gets a list of Snipe-it Categories -### [Get-SnipeItCompany](Get-SnipeItCompany.md) +### [Get-SnipeitCompany](Get-SnipeitCompany.md) Gets a list of Snipe-it Companies -### [Get-SnipeItComponent](Get-SnipeItComponent.md) +### [Get-SnipeitComponent](Get-SnipeitComponent.md) Gets a list of Snipe-it Components -### [Get-SnipeItCustomField](Get-SnipeItCustomField.md) +### [Get-SnipeitCustomField](Get-SnipeitCustomField.md) Returns specific Snipe-IT custom field or a list of all custom field -### [Get-SnipeItDepartment](Get-SnipeItDepartment.md) +### [Get-SnipeitDepartment](Get-SnipeitDepartment.md) Gets a list of Snipe-it Departments -### [Get-SnipeItFieldset](Get-SnipeItFieldset.md) +### [Get-SnipeitFieldset](Get-SnipeitFieldset.md) Returns a fieldset or list of Snipe-it Fieldsets -### [Get-SnipeItLicense](Get-SnipeItLicense.md) +### [Get-SnipeitLicense](Get-SnipeitLicense.md) Gets a list of Snipe-it Licenses -### [Get-SnipeItLicenseSeat](Get-SnipeItLicenseSeat.md) +### [Get-SnipeitLicenseSeat](Get-SnipeitLicenseSeat.md) Gets a list of Snipe-it Licenses Seats or specific Seat ### [Get-SnipeitLocation](Get-SnipeitLocation.md) Gets a list of Snipe-it Locations -### [Get-SnipeItModel](Get-SnipeItModel.md) +### [Get-SnipeitModel](Get-SnipeitModel.md) Gets a list of Snipe-it Models -### [Get-SnipeItStatus](Get-SnipeItStatus.md) +### [Get-SnipeitStatus](Get-SnipeitStatus.md) Gets a list of Snipe-it Status Labels -### [New-SnipeItAsset](New-SnipeItAsset.md) +### [New-SnipeitAsset](New-SnipeitAsset.md) Add a new Asset to Snipe-it asset system -### [New-SnipeItAssetMaintenance](New-SnipeItAssetMaintenance.md) +### [New-SnipeitAssetMaintenance](New-SnipeitAssetMaintenance.md) Add a new Asset maintenence to Snipe-it asset system -### [New-SnipeItCategory](New-SnipeItCategory.md) +### [New-SnipeitCategory](New-SnipeitCategory.md) Create a new Snipe-IT Category -### [New-SnipeItComponent](New-SnipeItComponent.md) +### [New-SnipeitComponent](New-SnipeitComponent.md) Create a new component -### [New-SnipeItCustomField](New-SnipeItCustomField.md) +### [New-SnipeitCustomField](New-SnipeitCustomField.md) Add a new Custom Field to Snipe-it asset system -### [New-SnipeItDepartment](New-SnipeItDepartment.md) +### [New-SnipeitDepartment](New-SnipeitDepartment.md) Creates a department -### [New-SnipeItLicense](New-SnipeItLicense.md) +### [New-SnipeitLicense](New-SnipeitLicense.md) Creates a licence -### [New-SnipeItLocation](New-SnipeItLocation.md) +### [New-SnipeitLocation](New-SnipeitLocation.md) Add a new Location to Snipe-it asset system -### [New-SnipeItManufacturer](New-SnipeItManufacturer.md) +### [New-SnipeitManufacturer](New-SnipeitManufacturer.md) Add a new Manufacturer to Snipe-it asset system -### [New-SnipeItModel](New-SnipeItModel.md) +### [New-SnipeitModel](New-SnipeitModel.md) Add a new Model to Snipe-it asset system -### [New-SnipeItUser](New-SnipeItUser.md) +### [New-SnipeitUser](New-SnipeitUser.md) Creates a new user -### [Remove-SnipeItAsset](Remove-SnipeItAsset.md) +### [Remove-SnipeitAsset](Remove-SnipeitAsset.md) Removes Asset from Snipe-it asset system -### [Remove-SnipeItUser](Remove-SnipeItUser.md) +### [Remove-SnipeitUser](Remove-SnipeitUser.md) Removes User from Snipe-it asset system -### [Reset-SnipeItAccessoryOwner](Reset-SnipeItAccessoryOwner.md) +### [Reset-SnipeitAccessoryOwner](Reset-SnipeitAccessoryOwner.md) Checkin accessories -### [Set-SnipeItAccessory](Set-SnipeItAccessory.md) +### [Set-SnipeitAccessory](Set-SnipeitAccessory.md) Updates accessory on Snipe-It system -### [Set-SnipeItAccessoryOwner](Set-SnipeItAccessoryOwner.md) +### [Set-SnipeitAccessoryOwner](Set-SnipeitAccessoryOwner.md) Checkout accessory -### [Set-SnipeItAsset](Set-SnipeItAsset.md) +### [Set-SnipeitAsset](Set-SnipeitAsset.md) Update a specific Asset in the Snipe-it asset system -### [Set-SnipeItAssetOwner](Set-SnipeItAssetOwner.md) +### [Set-SnipeitAssetOwner](Set-SnipeitAssetOwner.md) Checkout asset -### [Set-SnipeItComponent](Set-SnipeItComponent.md) +### [Set-SnipeitComponent](Set-SnipeitComponent.md) Updates component -### [Set-SnipeItInfo](Set-SnipeItInfo.md) +### [Set-SnipeitInfo](Set-SnipeitInfo.md) Sets authetication information -### [Set-SnipeItLicense](Set-SnipeItLicense.md) +### [Set-SnipeitLicense](Set-SnipeitLicense.md) Updates a licence -### [Set-SnipeItLicenseSeat](Set-SnipeItLicenseSeat.md) +### [Set-SnipeitLicenseSeat](Set-SnipeitLicenseSeat.md) Set license seat or checkout license seat ### [Set-SnipeitLocation](Set-SnipeitLocation.md) Updates Location in Snipe-it asset system -### [Set-SnipeItModel](Set-SnipeItModel.md) +### [Set-SnipeitModel](Set-SnipeitModel.md) Updates Model on Snipe-it asset system -### [Set-SnipeItUser](Set-SnipeItUser.md) +### [Set-SnipeitUser](Set-SnipeitUser.md) Creates a new user -### [Update-SnipeItAlias](Update-SnipeItAlias.md) +### [Update-SnipeitAlias](Update-SnipeitAlias.md) {{ Fill in the Synopsis }} diff --git a/docs/Update-SnipeitAlias.md b/docs/Update-SnipeitAlias.md index 5989a17..19e0d46 100644 --- a/docs/Update-SnipeitAlias.md +++ b/docs/Update-SnipeitAlias.md @@ -5,7 +5,7 @@ online version: schema: 2.0.0 --- -# Update-SnipeItAlias +# Update-SnipeitAlias ## SYNOPSIS {{ Fill in the Synopsis }} @@ -13,7 +13,7 @@ schema: 2.0.0 ## SYNTAX ``` -Update-SnipeItAlias [-String] [-WhatIf] [-Confirm] [] +Update-SnipeitAlias [-String] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION