diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cca8bb..7f8459a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### New features Most of "Set" command accepts piped input. Piped objects "id" attribute is used to select asset set values. Like -Get-SnipeItAsset -model_id 213 | Set-SnipeItAsset -notes 'This is nice!' +Get-SnipeitAsset -model_id 213 | Set-SnipeitAsset -notes 'This is nice!' Set command accept id parameter as array, so its easier to set multiple items in one run. @@ -29,7 +29,7 @@ needed ## More Activity ### New features -SnipeIt activity history is now searchable. So finding out checked out the +Snipeit activity history is now searchable. So finding out checked out the assest its easy. Api support many different target or item types that can be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance' ,'AssetModel','Category','Company','Component','Consumable','CustomField', @@ -38,7 +38,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 @@ -46,43 +46,43 @@ 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 -## Prefixing SnipeItPS +## 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 ## Pull request rollup release. Lots of new features including: ### New features -- Powershell 7 compatibility. So you can use SnipeItPS on macos or linux . +- Powershell 7 compatibility. So you can use SnipeitPS on macos or linux . - Get every asset, model, licence with snipeit id by using -id parameter - Get assets also by -asset_tag -or serialnumber - Get functions also return all results from snipe when using -all parameter (by @PetriAsi) diff --git a/README.md b/README.md index 62fb243..d3adc1d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Update-Module SnipeitPS # To use each session: Import-Module SnipeitPS -Set-SnipeItInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' +Set-SnipeitInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' ``` ### Usage @@ -29,7 +29,7 @@ Set-SnipeItInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' ```powershell # Review the help at any time! Get-Command -Module SnipeitPS -Get-Help Get-SnipeItAsset -Full # or any other command +Get-Help Get-SnipeitAsset -Full # or any other command ``` ### Reporting bugs and issues Please use -Verbose switch with command you have problem with. diff --git a/SnipeItPS.build.ps1 b/SnipeitPS.build.ps1 similarity index 100% rename from SnipeItPS.build.ps1 rename to SnipeitPS.build.ps1 diff --git a/SnipeitPS/Private/Get-SnipeItAlias.ps1 b/SnipeitPS/Private/Get-SnipeItAlias.ps1 deleted file mode 100644 index 08218d6..0000000 --- a/SnipeitPS/Private/Get-SnipeItAlias.ps1 +++ /dev/null @@ -1,38 +0,0 @@ - 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/Get-SnipeitAlias.ps1 b/SnipeitPS/Private/Get-SnipeitAlias.ps1 new file mode 100644 index 0000000..498e640 --- /dev/null +++ b/SnipeitPS/Private/Get-SnipeitAlias.ps1 @@ -0,0 +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';} +} diff --git a/SnipeitPS/Private/Set-SnipeItAlias.ps1 b/SnipeitPS/Private/Set-SnipeItAlias.ps1 deleted file mode 100644 index 899f316..0000000 --- a/SnipeitPS/Private/Set-SnipeItAlias.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -function Set-SnipeItAlias() -{ - [CmdletBinding( - SupportsShouldProcess = $true, - ConfirmImpact = "Low" - )] - param() - Write-Verbose "Setting compatibility aliases.. " - Write-Verbose "All aliases are deprediated." - $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])) - } - Write-Verbose "Please start using native 'SnipeIt' prfixed functions instead." - Get-Command -Module SnipeItPS -CommandType Alias | Select-Object -Property DisplayName,ResolvedCommand - -} diff --git a/SnipeitPS/Private/Set-SnipeitAlias.ps1 b/SnipeitPS/Private/Set-SnipeitAlias.ps1 new file mode 100644 index 0000000..3d91b9d --- /dev/null +++ b/SnipeitPS/Private/Set-SnipeitAlias.ps1 @@ -0,0 +1,18 @@ +function Set-SnipeitAlias() +{ + [CmdletBinding( + SupportsShouldProcess = $true, + ConfirmImpact = "Low" + )] + param() + Write-Verbose "Setting compatibility aliases.. " + Write-Verbose "All aliases are deprediated." + $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])) + } + Write-Verbose "Please start using native 'Snipeit' prfixed functions instead." + Get-Command -Module SnipeitPS -CommandType Alias | Select-Object -Property DisplayName,ResolvedCommand + +} diff --git a/SnipeitPS/Private/Test-SnipeItAlias.ps1 b/SnipeitPS/Private/Test-SnipeitAlias.ps1 similarity index 81% rename from SnipeitPS/Private/Test-SnipeItAlias.ps1 rename to 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 similarity index 88% rename from SnipeitPS/Public/Get-SnipeItAccessory.ps1 rename to 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 similarity index 80% rename from SnipeitPS/Public/Get-SnipeItAccessoryOwner.ps1 rename to 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 similarity index 92% rename from SnipeitPS/Public/Get-SnipeItActivity.ps1 rename to 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 similarity index 90% rename from SnipeitPS/Public/Get-SnipeItAsset.ps1 rename to 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 similarity index 80% rename from SnipeitPS/Public/Get-SnipeItAssetMaintenance.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/Get-SnipeItCategory.ps1 rename to 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 similarity index 87% rename from SnipeitPS/Public/Get-SnipeItCompany.ps1 rename to 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 similarity index 88% rename from SnipeitPS/Public/Get-SnipeItComponent.ps1 rename to 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 similarity index 71% rename from SnipeitPS/Public/Get-SnipeItCustomField.ps1 rename to 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 similarity index 85% rename from SnipeitPS/Public/Get-SnipeItDepartment.ps1 rename to 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 similarity index 67% rename from SnipeitPS/Public/Get-SnipeItFieldset.ps1 rename to 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 similarity index 90% rename from SnipeitPS/Public/Get-SnipeItLicense.ps1 rename to 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 similarity index 85% rename from SnipeitPS/Public/Get-SnipeItLicenseSeat.ps1 rename to 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 similarity index 89% rename from SnipeitPS/Public/Get-SnipeItLocation.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/Get-SnipeItManufacturer.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/Get-SnipeItModel.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/Get-SnipeItStatus.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/Get-SnipeItSupplier.ps1 rename to 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 similarity index 87% rename from SnipeitPS/Public/Get-SnipeItUser.ps1 rename to 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 similarity index 90% rename from SnipeitPS/Public/New-SnipeItAccessory.ps1 rename to 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 similarity index 88% rename from SnipeitPS/Public/New-SnipeItAsset.ps1 rename to 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 similarity index 87% rename from SnipeitPS/Public/New-SnipeItAssetMaintenance.ps1 rename to 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 similarity index 84% rename from SnipeitPS/Public/New-SnipeItAudit.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/New-SnipeItCategory.ps1 rename to 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 similarity index 78% rename from SnipeitPS/Public/New-SnipeItCompany.ps1 rename to 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 similarity index 88% rename from SnipeitPS/Public/New-SnipeItComponent.ps1 rename to 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 similarity index 81% rename from SnipeitPS/Public/New-SnipeItCustomField.ps1 rename to 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 similarity index 81% rename from SnipeitPS/Public/New-SnipeItDepartment.ps1 rename to 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 similarity index 91% rename from SnipeitPS/Public/New-SnipeItLicense.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/New-SnipeItLocation.ps1 rename to 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 similarity index 78% rename from SnipeitPS/Public/New-SnipeItManufacturer.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/New-SnipeItModel.ps1 rename to 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 similarity index 89% rename from SnipeitPS/Public/New-SnipeItUser.ps1 rename to 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 similarity index 78% rename from SnipeitPS/Public/Remove-SnipeItAsset.ps1 rename to 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 similarity index 73% rename from SnipeitPS/Public/Remove-SnipeItAssetMaintenance.ps1 rename to SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 index 0f5d57f..c3993e1 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, @@ -25,18 +25,18 @@ function Remove-SnipeItAssetMaintenance { [int] $id, - # SnipeIt URL + # Snipeit URL [Parameter(Mandatory = $true)] [string] $url, - # SnipeIt ApiKey + # Snipeit ApiKey [Parameter(Mandatory = $true)] [string] $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 similarity index 76% rename from SnipeitPS/Public/Remove-SnipeItUser.ps1 rename to 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 similarity index 77% rename from SnipeitPS/Public/Reset-SnipeItAccessoryOwner.ps1 rename to 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 similarity index 82% rename from SnipeitPS/Public/Reset-SnipeItAssetOwner.ps1 rename to 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 similarity index 91% rename from SnipeitPS/Public/Set-SnipeItAccessory.ps1 rename to 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 similarity index 86% rename from SnipeitPS/Public/Set-SnipeItAccessoryOwner.ps1 rename to 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 similarity index 89% rename from SnipeitPS/Public/Set-SnipeItAsset.ps1 rename to 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 similarity index 90% rename from SnipeitPS/Public/Set-SnipeItAssetOwner.ps1 rename to 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 similarity index 88% rename from SnipeitPS/Public/Set-SnipeItComponents.ps1 rename to 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 similarity index 87% rename from SnipeitPS/Public/Set-SnipeItInfo.ps1 rename to 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 similarity index 92% rename from SnipeitPS/Public/Set-SnipeItLicense.ps1 rename to 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 similarity index 84% rename from SnipeitPS/Public/Set-SnipeItLicenseSeat.ps1 rename to 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 similarity index 91% rename from SnipeitPS/Public/Set-SnipeItLocation.ps1 rename to 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 similarity index 87% rename from SnipeitPS/Public/Set-SnipeItModel.ps1 rename to 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 similarity index 89% rename from SnipeitPS/Public/Set-SnipeItUser.ps1 rename to 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 similarity index 66% rename from SnipeitPS/Public/Update-SnipeItAlias.ps1 rename to SnipeitPS/Public/Update-SnipeitAlias.ps1 index 50ff7ad..9d9157a 100644 --- a/SnipeitPS/Public/Update-SnipeItAlias.ps1 +++ b/SnipeitPS/Public/Update-SnipeitAlias.ps1 @@ -1,22 +1,22 @@ <# .SYNOPSIS -Replaces old SnipeItPS commands with new ones +Replaces old SnipeitPS commands with new ones .DESCRIPTION -Replaces old SnipeItPS commands with new ones +Replaces old SnipeitPS commands with new ones .PARAMETER String 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, @@ -30,17 +30,17 @@ function Update-SnipeItAlias() $String ) begin{ - Write-Verbose "Replacing old SnipeIt fuctions with new ones.. " - $SnipeItAliases = Get-SnipeItAlias + Write-Verbose "Replacing old Snipeit fuctions with new ones.. " + $SnipeitAliases = Get-SnipeitAlias } process { If ($PSCmdlet.ShouldProcess("ShouldProcess?")) { ForEach ($st in $String){ $result = $st - ForEach ($key in $SnipeItAliases.Keys ) { - #Write-Verbose "Replacing $key with $($SnipeItAliases[$key])" - $result = $result -replace $key, $SnipeItAliases[$key] + ForEach ($key in $SnipeitAliases.Keys ) { + #Write-Verbose "Replacing $key with $($SnipeitAliases[$key])" + $result = $result -replace $key, $SnipeitAliases[$key] } $result } diff --git a/SnipeitPS/SnipeItPS.psd1 b/SnipeitPS/SnipeitPS.psd1 similarity index 74% rename from SnipeitPS/SnipeItPS.psd1 rename to SnipeitPS/SnipeitPS.psd1 index d19eb0b..7cf5bfb 100644 --- a/SnipeitPS/SnipeItPS.psd1 +++ b/SnipeitPS/SnipeitPS.psd1 @@ -1,5 +1,5 @@ # -# Module manifest for module 'SnipeItPS' +# Module manifest for module 'SnipeitPS' # # Generated by: Stephen Maunder # @@ -9,7 +9,7 @@ @{ # Script module or binary module file associated with this manifest. -RootModule = 'SnipeItPS' +RootModule = 'SnipeitPS' # Version number of this module. ModuleVersion = '1.5' @@ -30,7 +30,7 @@ CompanyName = 'Unknown' Copyright = '(c) 2017 Stephen Maunder. All rights reserved.' # Description of the functionality provided by this module -Description = 'Powershell API for SnipeIt Asset Management' +Description = 'Powershell API for Snipeit Asset Management' # Minimum version of the Windows PowerShell engine required by this module PowerShellVersion = '3.0' @@ -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 similarity index 82% rename from SnipeitPS/SnipeItPS.psm1 rename to SnipeitPS/SnipeitPS.psm1 index 783e814..ce0d808 100644 --- a/SnipeitPS/SnipeItPS.psm1 +++ b/SnipeitPS/SnipeitPS.psm1 @@ -1,6 +1,6 @@ <# .DESCRIPTION -Powershell API for SnipeIt Asset Management +Powershell API for Snipeit Asset Management #> $scriptRoot = $PSScriptRoot + '\Public' @@ -15,4 +15,4 @@ Get-ChildItem $scriptRoot *.ps1 | ForEach-Object { } #Create unprefixed aliases -Set-SnipeItAlias +Set-SnipeitAlias diff --git a/Tests/SnipeItPS.Tests.ps1 b/Tests/SnipeitPS.Tests.ps1 similarity index 100% rename from Tests/SnipeItPS.Tests.ps1 rename to Tests/SnipeitPS.Tests.ps1 diff --git a/docs/Get-SnipeItAccessory.md b/docs/Get-SnipeitAccessory.md similarity index 90% rename from docs/Get-SnipeItAccessory.md rename to docs/Get-SnipeitAccessory.md index cfc2efd..7449a1f 100644 --- a/docs/Get-SnipeItAccessory.md +++ b/docs/Get-SnipeitAccessory.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 --- -# Get-SnipeItAccessory +# Get-SnipeitAccessory ## SYNOPSIS Gets a list of Snipe-it Accessories @@ -14,14 +14,14 @@ Gets a list of Snipe-it Accessories ### Search ``` -Get-SnipeItAccessory [-search ] [-company_id ] [-category_id ] [-manufacturer_id ] +Get-SnipeitAccessory [-search ] [-company_id ] [-category_id ] [-manufacturer_id ] [-supplier_id ] [-sort ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get by ID ``` -Get-SnipeItAccessory [-id ] -url -apiKey [] +Get-SnipeitAccessory [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -31,12 +31,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 @@ -57,7 +57,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 @@ -224,7 +224,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 similarity index 85% rename from docs/Get-SnipeItAccessoryOwner.md rename to docs/Get-SnipeitAccessoryOwner.md index ae75064..914d9ea 100644 --- a/docs/Get-SnipeItAccessoryOwner.md +++ b/docs/Get-SnipeitAccessoryOwner.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 92% rename from docs/Get-SnipeItActivity.md rename to docs/Get-SnipeitActivity.md index a31980b..8e656b3 100644 --- a/docs/Get-SnipeItActivity.md +++ b/docs/Get-SnipeitActivity.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 89% rename from docs/Get-SnipeItAsset.md rename to docs/Get-SnipeitAsset.md index b910c01..092af5c 100644 --- a/docs/Get-SnipeItAsset.md +++ b/docs/Get-SnipeitAsset.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 --- -# Get-SnipeItAsset +# Get-SnipeitAsset ## SYNOPSIS Gets a list of Snipe-it Assets or specific asset @@ -14,7 +14,7 @@ Gets a list of Snipe-it Assets or specific asset ### Search ``` -Get-SnipeItAsset [-search ] [-order_number ] [-model_id ] [-category_id ] +Get-SnipeitAsset [-search ] [-order_number ] [-model_id ] [-category_id ] [-manufacturer_id ] [-company_id ] [-location_id ] [-depreciation_id ] [-requestable ] [-status ] [-status_id ] [-sort ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] @@ -22,17 +22,17 @@ Get-SnipeItAsset [-search ] [-order_number ] [-model_id ] ### Get with id ``` -Get-SnipeItAsset [-id ] -url -apiKey [] +Get-SnipeitAsset [-id ] -url -apiKey [] ``` ### Get with asset tag ``` -Get-SnipeItAsset [-asset_tag ] -url -apiKey [] +Get-SnipeitAsset [-asset_tag ] -url -apiKey [] ``` ### Get with serial ``` -Get-SnipeItAsset [-serial ] -url -apiKey [] +Get-SnipeitAsset [-serial ] -url -apiKey [] ``` ## DESCRIPTION @@ -42,22 +42,22 @@ Get-SnipeItAsset [-serial ] -url -apiKey [] [[-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 similarity index 87% rename from docs/Get-SnipeItCategory.md rename to docs/Get-SnipeitCategory.md index 91a9992..ab0d6f6 100644 --- a/docs/Get-SnipeItCategory.md +++ b/docs/Get-SnipeitCategory.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 --- -# Get-SnipeItCategory +# Get-SnipeitCategory ## SYNOPSIS Gets a list of Snipe-it Categories @@ -14,13 +14,13 @@ Gets a list of Snipe-it Categories ### Search ``` -Get-SnipeItCategory [-search ] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitCategory [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItCategory [-id ] -url -apiKey [] +Get-SnipeitCategory [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,12 +30,12 @@ Get-SnipeItCategory [-id ] -url -apiKey [] [-order ] [-limit ] [-offset ] [-all] -url +Get-SnipeitCompany [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItCompany [-id ] -url -apiKey [] +Get-SnipeitCompany [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,13 +30,13 @@ Get-SnipeItCompany [-id ] -url -apiKey [] [-category_id ] [-company_id ] [-location_id ] +Get-SnipeitComponent [-search ] [-category_id ] [-company_id ] [-location_id ] [-order ] [-sort ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItComponent [-id ] -url -apiKey [] +Get-SnipeitComponent [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -31,19 +31,19 @@ Get-SnipeItComponent [-id ] -url -apiKey [] [-url] [-apiKey] [] +Get-SnipeitCustomField [[-id] ] [-url] [-apiKey] [] ``` ## DESCRIPTION @@ -23,13 +23,13 @@ Get-SnipeItCustomField [[-id] ] [-url] [-apiKey] [] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitDepartment [-search ] [-order ] [-limit ] [-offset ] [-all] [-sort ] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItDepartment [-id ] -url -apiKey [] +Get-SnipeitDepartment [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,17 +30,17 @@ Get-SnipeItDepartment [-id ] -url -apiKey [] [-url] [-apiKey] [] +Get-SnipeitFieldset [[-id] ] [-url] [-apiKey] [] ``` ## DESCRIPTION @@ -23,18 +23,18 @@ Get-SnipeItFieldset [[-id] ] [-url] [-apiKey] [] [-name ] [-company_id ] [-product_key ] +Get-SnipeitLicense [-search ] [-name ] [-company_id ] [-product_key ] [-order_number ] [-purchase_order ] [-license_name ] [-license_email ] [-manufacturer_id ] [-supplier_id ] [-depreciation_id ] [-category_id ] [-order ] [-sort ] [-limit ] [-offset ] [-all] -url -apiKey @@ -23,7 +23,7 @@ Get-SnipeItLicense [-search ] [-name ] [-company_id ] [-p ### Get with ID ``` -Get-SnipeItLicense [-id ] -url -apiKey [] +Get-SnipeitLicense [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -33,12 +33,12 @@ Get-SnipeItLicense [-id ] -url -apiKey [ [[-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 01a6808..39bb890 100644 --- a/docs/Get-SnipeitLocation.md +++ b/docs/Get-SnipeitLocation.md @@ -1,5 +1,5 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 @@ -30,12 +30,12 @@ Get-SnipeitLocation [-id ] -url -apiKey [] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitManufacturer [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItManufacturer [-id ] -url -apiKey [] +Get-SnipeitManufacturer [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,13 +30,13 @@ Get-SnipeItManufacturer [-id ] -url -apiKey [] [-order ] [-limit ] [-offset ] [-all] -url +Get-SnipeitModel [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItModel [-id ] -url -apiKey [] +Get-SnipeitModel [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,12 +30,12 @@ Get-SnipeItModel [-id ] -url -apiKey [] [-order ] [-limit ] [-offset ] [-all] -url +Get-SnipeitStatus [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItStatus [-id ] -url -apiKey [] +Get-SnipeitStatus [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,12 +30,12 @@ Get-SnipeItStatus [-id ] -url -apiKey [] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitSupplier [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItSupplier [-id ] -url -apiKey [] +Get-SnipeitSupplier [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -30,12 +30,12 @@ Get-SnipeItSupplier [-id ] -url -apiKey [] [-company_id ] [-location_id ] [-group_id ] +Get-SnipeitUser [-search ] [-company_id ] [-location_id ] [-group_id ] [-department_id ] [-username ] [-email ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItUser [-id ] -url -apiKey [] +Get-SnipeitUser [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -31,22 +31,22 @@ Get-SnipeItUser [-id ] -url -apiKey [ [-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 similarity index 92% rename from docs/New-SnipeItAssetMaintenance.md rename to docs/New-SnipeitAssetMaintenance.md index f49bac6..9e047b9 100644 --- a/docs/New-SnipeItAssetMaintenance.md +++ b/docs/New-SnipeitAssetMaintenance.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 90% rename from docs/New-SnipeItCategory.md rename to docs/New-SnipeitCategory.md index 2d058df..e5091da 100644 --- a/docs/New-SnipeItCategory.md +++ b/docs/New-SnipeitCategory.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 93% rename from docs/New-SnipeItComponent.md rename to docs/New-SnipeitComponent.md index 3e1b3c0..19a69e5 100644 --- a/docs/New-SnipeItComponent.md +++ b/docs/New-SnipeitComponent.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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] ] [[-order_number] ] [[-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 @@ -166,7 +166,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 similarity index 90% rename from docs/New-SnipeItCustomField.md rename to docs/New-SnipeitCustomField.md index b411e55..3c3dab4 100644 --- a/docs/New-SnipeItCustomField.md +++ b/docs/New-SnipeitCustomField.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 89% rename from docs/New-SnipeItDepartment.md rename to docs/New-SnipeitDepartment.md index d582ff6..a5a01b5 100644 --- a/docs/New-SnipeItDepartment.md +++ b/docs/New-SnipeitDepartment.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 94% rename from docs/New-SnipeItLicense.md rename to docs/New-SnipeitLicense.md index 8de15ba..73f46b1 100644 --- a/docs/New-SnipeItLicense.md +++ b/docs/New-SnipeitLicense.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 92% rename from docs/New-SnipeItLocation.md rename to docs/New-SnipeitLocation.md index 0748a77..6b12649 100644 --- a/docs/New-SnipeItLocation.md +++ b/docs/New-SnipeitLocation.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 85% rename from docs/New-SnipeItManufacturer.md rename to docs/New-SnipeitManufacturer.md index dc9236d..434bb49 100644 --- a/docs/New-SnipeItManufacturer.md +++ b/docs/New-SnipeitManufacturer.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 90% rename from docs/New-SnipeItModel.md rename to docs/New-SnipeitModel.md index 24d2ecc..ea055b5 100644 --- a/docs/New-SnipeItModel.md +++ b/docs/New-SnipeitModel.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 94% rename from docs/New-SnipeItUser.md rename to docs/New-SnipeitUser.md index 3600cd0..b65f9a2 100644 --- a/docs/New-SnipeItUser.md +++ b/docs/New-SnipeitUser.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 85% rename from docs/Remove-SnipeItAsset.md rename to docs/Remove-SnipeitAsset.md index fca301d..f0dee8d 100644 --- a/docs/Remove-SnipeItAsset.md +++ b/docs/Remove-SnipeitAsset.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 84% rename from docs/Remove-SnipeItUser.md rename to docs/Remove-SnipeitUser.md index c557202..bcca3a0 100644 --- a/docs/Remove-SnipeItUser.md +++ b/docs/Remove-SnipeitUser.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 83% rename from docs/Reset-SnipeItAccessoryOwner.md rename to docs/Reset-SnipeitAccessoryOwner.md index e777d94..8d8e733 100644 --- a/docs/Reset-SnipeItAccessoryOwner.md +++ b/docs/Reset-SnipeitAccessoryOwner.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 92% rename from docs/Set-SnipeItAccessory.md rename to docs/Set-SnipeitAccessory.md index ba356e5..ae2b45c 100644 --- a/docs/Set-SnipeItAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -86,7 +86,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -name -ID number of Accessory on Snipe-It system +ID number of Accessory or array of IDs on Snipe-It system ```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 similarity index 84% rename from docs/Set-SnipeItAccessoryOwner.md rename to docs/Set-SnipeitAccessoryOwner.md index 073cf57..52f65bc 100644 --- a/docs/Set-SnipeItAccessoryOwner.md +++ b/docs/Set-SnipeitAccessoryOwner.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -60,7 +60,7 @@ Accept wildcard characters: False ``` ### -id -Unique ID For accessory to checkout +Unique ID For accessory or array of IDs to checkout ```yaml Type: Int32[] @@ -69,7 +69,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -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 similarity index 92% rename from docs/Set-SnipeItAsset.md rename to docs/Set-SnipeitAsset.md index 9de0a17..0f0591c 100644 --- a/docs/Set-SnipeItAsset.md +++ b/docs/Set-SnipeitAsset.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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,23 @@ 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" } +``` + +### EXAMPLE 3 +``` +Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated' ``` ## 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 @@ -115,7 +120,7 @@ Accept wildcard characters: False ``` ### -id -ID of the Asset +ID of the Asset or array of IDs ```yaml Type: Int32[] @@ -124,7 +129,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -311,7 +316,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 similarity index 90% rename from docs/Set-SnipeItAssetOwner.md rename to docs/Set-SnipeitAssetOwner.md index 96826cd..5af3c6a 100644 --- a/docs/Set-SnipeItAssetOwner.md +++ b/docs/Set-SnipeitAssetOwner.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -106,7 +106,7 @@ Accept wildcard characters: False ``` ### -id -Unique ID For asset to checkout +Unique IDs For assets to checkout ```yaml Type: Int32[] @@ -115,7 +115,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -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 similarity index 93% rename from docs/Set-SnipeItComponent.md rename to docs/Set-SnipeitComponent.md index 9bd6476..cbf0d06 100644 --- a/docs/Set-SnipeItComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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] ] [[-order_number] ] [[-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 @@ -166,7 +166,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 similarity index 77% rename from docs/Set-SnipeItInfo.md rename to docs/Set-SnipeitInfo.md index 5af19dd..cb41bfc 100644 --- a/docs/Set-SnipeItInfo.md +++ b/docs/Set-SnipeitInfo.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 similarity index 93% rename from docs/Set-SnipeItLicense.md rename to docs/Set-SnipeitLicense.md index 9a03542..4e20e67 100644 --- a/docs/Set-SnipeItLicense.md +++ b/docs/Set-SnipeitLicense.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -94,7 +94,7 @@ Accept wildcard characters: False ``` ### -id -ID number of licence +ID number of license or array of license IDs ```yaml Type: Int32[] @@ -103,7 +103,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -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 similarity index 85% rename from docs/Set-SnipeItLicenseSeat.md rename to docs/Set-SnipeitLicenseSeat.md index 329bda2..e0400f2 100644 --- a/docs/Set-SnipeItLicenseSeat.md +++ b/docs/Set-SnipeitLicenseSeat.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -82,7 +82,7 @@ Accept wildcard characters: False ``` ### -id -Unique ID For asset to checkout +Unique ID For license to checkout or array of IDs ```yaml Type: Int32[] @@ -91,7 +91,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -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 6b0f884..d4f5925 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -1,5 +1,5 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 @@ -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 @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -id -{{ Fill id Description }} +ID number of location or array or IDs ```yaml Type: Int32[] @@ -131,7 +131,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -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 similarity index 89% rename from docs/Set-SnipeItModel.md rename to docs/Set-SnipeitModel.md index 52fddfe..640eb6e 100644 --- a/docs/Set-SnipeItModel.md +++ b/docs/Set-SnipeitModel.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -id -ID number of the Asset Model +ID number of the Asset Model or array of IDs ```yaml Type: Int32[] @@ -100,7 +100,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -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 similarity index 92% rename from docs/Set-SnipeItUser.md rename to docs/Set-SnipeitUser.md index 6bf8467..d3c09f9 100644 --- a/docs/Set-SnipeItUser.md +++ b/docs/Set-SnipeitUser.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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 @@ -139,7 +139,7 @@ Accept wildcard characters: False ``` ### -id -{{ Fill id Description }} +ID number of Snipe--It user or array of IDs ```yaml Type: Int32[] @@ -148,7 +148,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -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 deleted file mode 100644 index faa0b8d..0000000 --- a/docs/SnipeItPS.md +++ /dev/null @@ -1,139 +0,0 @@ ---- -Module Name: SnipeitPS -Module Guid: f86f4db4-1cb1-45c4-b7bf-6762531bfdeb -Download Help Link: {{ Update Download Link }} -Help Version: {{ Please enter version of help manually (X.X.X.X) format }} -Locale: en-US ---- - -# SnipeitPS Module -## Description -{{ Fill in the Description }} - -## SnipeitPS Cmdlets -### [Get-SnipeItAccessory](Get-SnipeItAccessory.md) -Gets a list of Snipe-it Accessories - -### [Get-SnipeItAccessoryOwner](Get-SnipeItAccessoryOwner.md) -Get list of checked out accessories - -### [Get-SnipeItActivity](Get-SnipeItActivity.md) -Gets and search Snipe-it Activity history - -### [Get-SnipeItAsset](Get-SnipeItAsset.md) -Gets a list of Snipe-it Assets or specific asset - -### [Get-SnipeItAssetMaintenance](Get-SnipeItAssetMaintenance.md) -Lists Snipe-it Assets Maintenances - -### [Get-SnipeItCategory](Get-SnipeItCategory.md) -Gets a list of Snipe-it Categories - -### [Get-SnipeItCompany](Get-SnipeItCompany.md) -Gets a list of Snipe-it Companies - -### [Get-SnipeItComponent](Get-SnipeItComponent.md) -Gets a list of Snipe-it Components - -### [Get-SnipeItCustomField](Get-SnipeItCustomField.md) -Returns specific Snipe-IT custom field or a list of all custom field - -### [Get-SnipeItDepartment](Get-SnipeItDepartment.md) -Gets a list of Snipe-it Departments - -### [Get-SnipeItFieldset](Get-SnipeItFieldset.md) -Returns a fieldset or list of Snipe-it Fieldsets - -### [Get-SnipeItLicense](Get-SnipeItLicense.md) -Gets a list of Snipe-it Licenses - -### [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) -Gets a list of Snipe-it Models - -### [Get-SnipeItStatus](Get-SnipeItStatus.md) -Gets a list of Snipe-it Status Labels - -### [New-SnipeItAsset](New-SnipeItAsset.md) -Add a new Asset to Snipe-it asset system - -### [New-SnipeItAssetMaintenance](New-SnipeItAssetMaintenance.md) -Add a new Asset maintenence to Snipe-it asset system - -### [New-SnipeItCategory](New-SnipeItCategory.md) -Create a new Snipe-IT Category - -### [New-SnipeItComponent](New-SnipeItComponent.md) -Create a new component - -### [New-SnipeItCustomField](New-SnipeItCustomField.md) -Add a new Custom Field to Snipe-it asset system - -### [New-SnipeItDepartment](New-SnipeItDepartment.md) -Creates a department - -### [New-SnipeItLicense](New-SnipeItLicense.md) -Creates a licence - -### [New-SnipeItLocation](New-SnipeItLocation.md) -Add a new Location to Snipe-it asset system - -### [New-SnipeItManufacturer](New-SnipeItManufacturer.md) -Add a new Manufacturer to Snipe-it asset system - -### [New-SnipeItModel](New-SnipeItModel.md) -Add a new Model to Snipe-it asset system - -### [New-SnipeItUser](New-SnipeItUser.md) -Creates a new user - -### [Remove-SnipeItAsset](Remove-SnipeItAsset.md) -Removes Asset from Snipe-it asset system - -### [Remove-SnipeItUser](Remove-SnipeItUser.md) -Removes User from Snipe-it asset system - -### [Reset-SnipeItAccessoryOwner](Reset-SnipeItAccessoryOwner.md) -Checkin accessories - -### [Set-SnipeItAccessory](Set-SnipeItAccessory.md) -Updates accessory on Snipe-It system - -### [Set-SnipeItAccessoryOwner](Set-SnipeItAccessoryOwner.md) -Checkout accessory - -### [Set-SnipeItAsset](Set-SnipeItAsset.md) -Update a specific Asset in the Snipe-it asset system - -### [Set-SnipeItAssetOwner](Set-SnipeItAssetOwner.md) -Checkout asset - -### [Set-SnipeItComponent](Set-SnipeItComponent.md) -Updates component - -### [Set-SnipeItInfo](Set-SnipeItInfo.md) -Sets authetication information - -### [Set-SnipeItLicense](Set-SnipeItLicense.md) -Updates a licence - -### [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) -Updates Model on Snipe-it asset system - -### [Set-SnipeItUser](Set-SnipeItUser.md) -Creates a new user - -### [Update-SnipeItAlias](Update-SnipeItAlias.md) -{{ Fill in the Synopsis }} - diff --git a/docs/SnipeitPS.md b/docs/SnipeitPS.md new file mode 100644 index 0000000..5aa9bc6 --- /dev/null +++ b/docs/SnipeitPS.md @@ -0,0 +1,139 @@ +--- +Module Name: SnipeitPS +Module Guid: f86f4db4-1cb1-45c4-b7bf-6762531bfdeb +Download Help Link: {{ Update Download Link }} +Help Version: {{ Please enter version of help manually (X.X.X.X) format }} +Locale: en-US +--- + +# SnipeitPS Module +## Description +{{ Fill in the Description }} + +## SnipeitPS Cmdlets +### [Get-SnipeitAccessory](Get-SnipeitAccessory.md) +Gets a list of Snipe-it Accessories + +### [Get-SnipeitAccessoryOwner](Get-SnipeitAccessoryOwner.md) +Get list of checked out accessories + +### [Get-SnipeitActivity](Get-SnipeitActivity.md) +Gets and search Snipe-it Activity history + +### [Get-SnipeitAsset](Get-SnipeitAsset.md) +Gets a list of Snipe-it Assets or specific asset + +### [Get-SnipeitAssetMaintenance](Get-SnipeitAssetMaintenance.md) +Lists Snipe-it Assets Maintenances + +### [Get-SnipeitCategory](Get-SnipeitCategory.md) +Gets a list of Snipe-it Categories + +### [Get-SnipeitCompany](Get-SnipeitCompany.md) +Gets a list of Snipe-it Companies + +### [Get-SnipeitComponent](Get-SnipeitComponent.md) +Gets a list of Snipe-it Components + +### [Get-SnipeitCustomField](Get-SnipeitCustomField.md) +Returns specific Snipe-IT custom field or a list of all custom field + +### [Get-SnipeitDepartment](Get-SnipeitDepartment.md) +Gets a list of Snipe-it Departments + +### [Get-SnipeitFieldset](Get-SnipeitFieldset.md) +Returns a fieldset or list of Snipe-it Fieldsets + +### [Get-SnipeitLicense](Get-SnipeitLicense.md) +Gets a list of Snipe-it Licenses + +### [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) +Gets a list of Snipe-it Models + +### [Get-SnipeitStatus](Get-SnipeitStatus.md) +Gets a list of Snipe-it Status Labels + +### [New-SnipeitAsset](New-SnipeitAsset.md) +Add a new Asset to Snipe-it asset system + +### [New-SnipeitAssetMaintenance](New-SnipeitAssetMaintenance.md) +Add a new Asset maintenence to Snipe-it asset system + +### [New-SnipeitCategory](New-SnipeitCategory.md) +Create a new Snipe-IT Category + +### [New-SnipeitComponent](New-SnipeitComponent.md) +Create a new component + +### [New-SnipeitCustomField](New-SnipeitCustomField.md) +Add a new Custom Field to Snipe-it asset system + +### [New-SnipeitDepartment](New-SnipeitDepartment.md) +Creates a department + +### [New-SnipeitLicense](New-SnipeitLicense.md) +Creates a licence + +### [New-SnipeitLocation](New-SnipeitLocation.md) +Add a new Location to Snipe-it asset system + +### [New-SnipeitManufacturer](New-SnipeitManufacturer.md) +Add a new Manufacturer to Snipe-it asset system + +### [New-SnipeitModel](New-SnipeitModel.md) +Add a new Model to Snipe-it asset system + +### [New-SnipeitUser](New-SnipeitUser.md) +Creates a new user + +### [Remove-SnipeitAsset](Remove-SnipeitAsset.md) +Removes Asset from Snipe-it asset system + +### [Remove-SnipeitUser](Remove-SnipeitUser.md) +Removes User from Snipe-it asset system + +### [Reset-SnipeitAccessoryOwner](Reset-SnipeitAccessoryOwner.md) +Checkin accessories + +### [Set-SnipeitAccessory](Set-SnipeitAccessory.md) +Updates accessory on Snipe-It system + +### [Set-SnipeitAccessoryOwner](Set-SnipeitAccessoryOwner.md) +Checkout accessory + +### [Set-SnipeitAsset](Set-SnipeitAsset.md) +Update a specific Asset in the Snipe-it asset system + +### [Set-SnipeitAssetOwner](Set-SnipeitAssetOwner.md) +Checkout asset + +### [Set-SnipeitComponent](Set-SnipeitComponent.md) +Updates component + +### [Set-SnipeitInfo](Set-SnipeitInfo.md) +Sets authetication information + +### [Set-SnipeitLicense](Set-SnipeitLicense.md) +Updates a licence + +### [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) +Updates Model on Snipe-it asset system + +### [Set-SnipeitUser](Set-SnipeitUser.md) +Creates a new user + +### [Update-SnipeitAlias](Update-SnipeitAlias.md) +{{ Fill in the Synopsis }} + diff --git a/docs/Update-SnipeItAlias.md b/docs/Update-SnipeitAlias.md similarity index 92% rename from docs/Update-SnipeItAlias.md rename to docs/Update-SnipeitAlias.md index 607bdd4..19e0d46 100644 --- a/docs/Update-SnipeItAlias.md +++ b/docs/Update-SnipeitAlias.md @@ -1,11 +1,11 @@ --- -external help file: SnipeItPS-help.xml +external help file: SnipeitPS-help.xml Module Name: SnipeitPS 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