Function rename for case sensitivity

This commit is contained in:
Petri Asikainen 2021-06-08 20:23:32 +03:00
parent b24b0fce1d
commit 92d67895df
102 changed files with 666 additions and 666 deletions

View file

@ -19,7 +19,7 @@ be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance'
### New Functions ### 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 # [v1.3.x] - 2021-05-27
@ -27,16 +27,16 @@ be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance'
## Checking out accessories ## Checking out accessories
### New features ### New features
You can specify Put or Patch for Set-SnipeItAsset when updating assets. You can specify Put or Patch for Set-SnipeitAsset when updating assets.
Set-SnipeItLocation new -city parameter Set-SnipeitLocation new -city parameter
### New Functions ### New Functions
- Set-SnipeItAccessoryOwner checkout accessory - Set-SnipeitAccessoryOwner checkout accessory
- Get-SnipeItAccessoryOwner list checkedout accessories - Get-SnipeitAccessoryOwner list checkedout accessories
- Reset-SnipeItAccessoryOwner checkin accessory - Reset-SnipeitAccessoryOwner checkin accessory
### Fixes ### 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 # [v1.2.x] - 2021-05-24
@ -44,19 +44,19 @@ Set-SnipeItLocation new -city parameter
## Prefixing SnipeitPS ## Prefixing SnipeitPS
### New Features ### 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 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 ### New fuctions
- Update-SnipeitAlias Tool to update existing scripts - Update-SnipeitAlias Tool to update existing scripts
- Get-SnipeItLicenceSeat lists license seats - Get-SnipeitLicenceSeat lists license seats
- Set-SnipeItLicenseSeat Set and checkouts/in license seats - Set-SnipeitLicenseSeat Set and checkouts/in license seats
Licenseseat api is supported from Snipe-It release => v5.1.5 Licenseseat api is supported from Snipe-It release => v5.1.5
### New fixes ### New fixes
Added -id parameter support to support Get-SnipeItCustomField and Added -id parameter support to support Get-SnipeitCustomField and
Get-SnipeItFieldSet commands Get-SnipeitFieldSet commands
# [v1.1.x] - 2021-05-18 # [v1.1.x] - 2021-05-18

View file

@ -1,38 +1,38 @@
Function Get-SnipeItAlias(){ Function Get-SnipeitAlias(){
@{'Get-Asset' = 'Get-SnipeItAsset'; @{'Get-Asset' = 'Get-SnipeitAsset';
'Get-AssetMaintenance' = 'Get-SnipeItAssetMaintenance'; 'Get-AssetMaintenance' = 'Get-SnipeitAssetMaintenance';
'Get-Category' = 'Get-SnipeItCategory'; 'Get-Category' = 'Get-SnipeitCategory';
'Get-Company' = 'Get-SnipeItCompany'; 'Get-Company' = 'Get-SnipeitCompany';
'Get-Component' = 'Get-SnipeItCompany'; 'Get-Component' = 'Get-SnipeitCompany';
'Get-CustomField' = 'Get-SnipeItCustomField'; 'Get-CustomField' = 'Get-SnipeitCustomField';
'Get-Department' = 'Get-SnipeItDepartment'; 'Get-Department' = 'Get-SnipeitDepartment';
'Get-Fieldset' = 'Get-SnipeItFieldset'; 'Get-Fieldset' = 'Get-SnipeitFieldset';
'Get-Manufacturer' = 'Get-SnipeItManufacturer'; 'Get-Manufacturer' = 'Get-SnipeitManufacturer';
'Get-Model' = 'Get-SnipeItModel'; 'Get-Model' = 'Get-SnipeitModel';
'Get-Status' = 'Get-SnipeItStatus'; 'Get-Status' = 'Get-SnipeitStatus';
'Get-Supplier' = 'Get-SnipeItSupplier'; 'Get-Supplier' = 'Get-SnipeitSupplier';
'Get-User' = 'Get-SnipeItUser'; 'Get-User' = 'Get-SnipeitUser';
'New-Asset' = 'New-SnipeItAsset'; 'New-Asset' = 'New-SnipeitAsset';
'New-AssetMaintenance' = 'New-SnipeItAssetMaintenance'; 'New-AssetMaintenance' = 'New-SnipeitAssetMaintenance';
'New-Category' = 'New-SnipeItCategory'; 'New-Category' = 'New-SnipeitCategory';
'New-Component' = 'New-SnipeItComponent'; 'New-Component' = 'New-SnipeitComponent';
'New-CustomField' = 'New-SnipeItCustomField'; 'New-CustomField' = 'New-SnipeitCustomField';
'New-Department' = 'New-SnipeItDepartment'; 'New-Department' = 'New-SnipeitDepartment';
'New-License' = 'New-SnipeItLicense'; 'New-License' = 'New-SnipeitLicense';
'Set-License' = 'Set-SnipeItLicense'; 'Set-License' = 'Set-SnipeitLicense';
'New-Location' = 'New-SnipeItLocation'; 'New-Location' = 'New-SnipeitLocation';
'New-Manufacturer' = 'New-SnipeItManufacturer'; 'New-Manufacturer' = 'New-SnipeitManufacturer';
'New-Model' = 'New-SnipeItModel'; 'New-Model' = 'New-SnipeitModel';
'New-User' = 'New-SnipeItUser'; 'New-User' = 'New-SnipeitUser';
'Set-Asset' = 'Set-SnipeItAsset'; 'Set-Asset' = 'Set-SnipeitAsset';
'Set-AssetOwner' = 'Set-SnipeItAssetOwner'; 'Set-AssetOwner' = 'Set-SnipeitAssetOwner';
'Set-Component' = 'Set-SnipeItComponent'; 'Set-Component' = 'Set-SnipeitComponent';
'Set-Model' = 'Set-SnipeItModel'; 'Set-Model' = 'Set-SnipeitModel';
'Set-Info' = 'Set-SnipeItInfo'; 'Set-Info' = 'Set-SnipeitInfo';
'Set-User' = 'Set-SnipeItUser'; 'Set-User' = 'Set-SnipeitUser';
'New-Accessory' = 'New-SnipeItAccessory'; 'New-Accessory' = 'New-SnipeitAccessory';
'Set-Accessory' = 'Set-SnipeItAccessory'; 'Set-Accessory' = 'Set-SnipeitAccessory';
'Get-Accessory' = 'Get-SnipeItAccessory'; 'Get-Accessory' = 'Get-SnipeitAccessory';
'Remove-Asset' = 'Remove-SnipeItAsset'; 'Remove-Asset' = 'Remove-SnipeitAsset';
'Remove-User' = 'Remove-SnipeItUser';} 'Remove-User' = 'Remove-SnipeitUser';}
} }

View file

@ -1,4 +1,4 @@
function Set-SnipeItAlias() function Set-SnipeitAlias()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -7,7 +7,7 @@ function Set-SnipeItAlias()
param() param()
Write-Verbose "Setting compatibility aliases.. " Write-Verbose "Setting compatibility aliases.. "
Write-Verbose "All aliases are deprediated." Write-Verbose "All aliases are deprediated."
$SnipeItAliases = get-SnipeItAlias $SnipeItAliases = get-SnipeitAlias
ForEach ($key in $SnipeItAliases.Keys ) { ForEach ($key in $SnipeItAliases.Keys ) {
New-Alias -Name $key -Value $($SnipeItAliases[$key]) -Scope 1 New-Alias -Name $key -Value $($SnipeItAliases[$key]) -Scope 1
Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeItAliases[$key])) Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeItAliases[$key]))

View file

@ -1,4 +1,4 @@
function Test-SnipeItAlias() function Test-SnipeitAlias()
{ {
[CmdletBinding()] [CmdletBinding()]
param( param(
@ -9,7 +9,7 @@ function Test-SnipeItAlias()
) )
if($invocationName -ne $commandName) { if($invocationName -ne $commandName) {
Write-Warning "$invocationName is still working, but it has been superceded by $commandName, please use it instead." 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 '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 '"Get-Content [your-script.ps1] | Update-SnipeitAlias | Out-File [new-script-name.ps1]"'
} }
} }

View file

@ -21,20 +21,20 @@ Result offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItAccessory -search Keyboard Get-SnipeitAccessory -search Keyboard
.EXAMPLE .EXAMPLE
Get-SnipeItAccessory -id 1 Get-SnipeitAccessory -id 1
#> #>
function Get-SnipeItAccessory() { function Get-SnipeitAccessory() {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
[string]$search, [string]$search,
@ -76,7 +76,7 @@ function Get-SnipeItAccessory() {
[parameter(mandatory = $true)] [parameter(mandatory = $true)]
[string]$apiKey [string]$apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
if ($id -and $search){ if ($id -and $search){
throw "Please specify only one of -id or -search parameter" throw "Please specify only one of -id or -search parameter"
@ -103,7 +103,7 @@ function Get-SnipeItAccessory() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItAccessory @callargs $res=Get-SnipeitAccessory @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -8,15 +8,15 @@
Unique ID For accessory to list Unique ID For accessory to list
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItAccessoryOwner -id 1 Get-SnipeitAccessoryOwner -id 1
#> #>
function Get-SnipeItAccessoryOwner() function Get-SnipeitAccessoryOwner()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,

View file

@ -30,20 +30,20 @@ Result offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItAccessory -search Keyboard Get-SnipeitAccessory -search Keyboard
.EXAMPLE .EXAMPLE
Get-SnipeItAccessory -id 1 Get-SnipeitAccessory -id 1
#> #>
function Get-SnipeItActivity() { function Get-SnipeitActivity() {
Param( Param(
[string]$search, [string]$search,
@ -106,7 +106,7 @@ function Get-SnipeItActivity() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItActivity @callargs $res=Get-SnipeitActivity @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -54,25 +54,25 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItAsset -url "https://assets.example.com"-token "token..." Get-SnipeitAsset -url "https://assets.example.com"-token "token..."
.EXAMPLE .EXAMPLE
Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..."
.EXAMPLE .EXAMPLE
Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..."
.EXAMPLE .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( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
[string]$search, [string]$search,
@ -138,7 +138,7 @@ function Get-SnipeItAsset() {
[parameter(mandatory = $true)] [parameter(mandatory = $true)]
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -185,7 +185,7 @@ function Get-SnipeItAsset() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItAsset @callargs $res=Get-SnipeitAsset @callargs
$res $res
if ( $res.count -lt $limit) { if ( $res.count -lt $limit) {
break break

View file

@ -24,21 +24,21 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItAssetMaintenances -url "https://assets.example.com" -token "token..." Get-SnipeitAssetMaintenances -url "https://assets.example.com" -token "token..."
.EXAMPLE .EXAMPLE
Get-SnipeItAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..." Get-SnipeitAssetMaintenances -search "myMachine" -url "https://assets.example.com" -token "token..."
.EXAMPLE .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( Param(
[string]$search, [string]$search,
@ -62,7 +62,7 @@ function Get-SnipeItAssetMaintenance() {
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -81,7 +81,7 @@ function Get-SnipeItAssetMaintenance() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItAssetMaintenance @callargs $res=Get-SnipeitAssetMaintenance @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -18,20 +18,20 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItCategory -id 1 Get-SnipeitCategory -id 1
.EXAMPLE .EXAMPLE
Get-SnipeItCategory -search "Laptop" Get-SnipeitCategory -search "Laptop"
#> #>
function Get-SnipeItCategory() function Get-SnipeitCategory()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -59,7 +59,7 @@ function Get-SnipeItCategory()
[parameter(mandatory = $true)] [parameter(mandatory = $true)]
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -88,7 +88,7 @@ function Get-SnipeItCategory()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItCategory @callargs $res=Get-SnipeitCategory @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -17,22 +17,22 @@ Offset to use
.PARAMETER all .PARAMETER all
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItCompany Get-SnipeitCompany
Gets all companies Gets all companies
.EXAMPLE .EXAMPLE
Get-SnipeItCompany -id 1 Get-SnipeitCompany -id 1
Gets specific company Gets specific company
#> #>
function Get-SnipeItCompany() function Get-SnipeitCompany()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -61,7 +61,7 @@ function Get-SnipeItCompany()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -90,7 +90,7 @@ function Get-SnipeItCompany()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItCompany @callargs $res=Get-SnipeitCompany @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -18,26 +18,26 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItComponent Get-SnipeitComponent
Returns all components Returns all components
.EXAMPLE .EXAMPLE
Get-SnipeItComponent -search display Get-SnipeitComponent -search display
Returns search results containeing string display Returns search results containeing string display
.EXAMPLE .EXAMPLE
Get-SnipeItComponent -id Get-SnipeitComponent -id
Returns specific component Returns specific component
#> #>
function Get-SnipeItComponent() { function Get-SnipeitComponent() {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
[string]$search, [string]$search,
@ -78,7 +78,7 @@ function Get-SnipeItComponent() {
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -107,7 +107,7 @@ function Get-SnipeItComponent() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItComponent @callargs $res=Get-SnipeitComponent @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -6,17 +6,17 @@
A id of specific field A id of specific field
.PARAMETER url .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 .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 .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( Param(
[int]$id, [int]$id,
@ -28,7 +28,7 @@ function Get-SnipeItCustomField()
[string]$apiKey [string]$apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
if ($id) { if ($id) {
$apiurl= "$url/api/v1/fields/$id" $apiurl= "$url/api/v1/fields/$id"

View file

@ -18,23 +18,23 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItDepartment -url "https://assets.example.com" -token "token..." Get-SnipeitDepartment -url "https://assets.example.com" -token "token..."
.EXAMPLE .EXAMPLE
Get-SnipeItDepartment -search Department1 Get-SnipeitDepartment -search Department1
.EXAMPLE .EXAMPLE
Get-SnipeItDepartment -id 1 Get-SnipeitDepartment -id 1
#> #>
function Get-SnipeItDepartment() function Get-SnipeitDepartment()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -67,7 +67,7 @@ function Get-SnipeItDepartment()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -96,7 +96,7 @@ function Get-SnipeItDepartment()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItDepartment @callargs $res=Get-SnipeitDepartment @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -6,20 +6,20 @@ Returns a fieldset or list of Snipe-it Fieldsets
A id of specific fieldset A id of specific fieldset
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItFieldset -url "https://assets.example.com" -token "token..." Get-SnipeitFieldset -url "https://assets.example.com" -token "token..."
.EXAMPLE .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( Param(
[int]$id, [int]$id,
@ -30,7 +30,7 @@ function Get-SnipeItFieldset() {
[string]$apiKey [string]$apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
if ($id) { if ($id) {
$apiurl = "$url/api/v1/fieldsets/$id" $apiurl = "$url/api/v1/fieldsets/$id"

View file

@ -19,20 +19,20 @@ A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItLicense -search SomeLicense Get-SnipeitLicense -search SomeLicense
.EXAMPLE .EXAMPLE
Get-SnipeItLicense -id 1 Get-SnipeitLicense -id 1
#> #>
function Get-SnipeItLicense() { function Get-SnipeitLicense() {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
[string]$search, [string]$search,
@ -97,7 +97,7 @@ function Get-SnipeItLicense() {
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -126,7 +126,7 @@ function Get-SnipeItLicense() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItLicense @callargs $res=Get-SnipeitLicense @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -22,18 +22,18 @@ A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItLicenseSeat -id 1 Get-SnipeitLicenseSeat -id 1
#> #>
function Get-SnipeItLicenseSeat() { function Get-SnipeitLicenseSeat() {
Param( Param(
[parameter(mandatory = $true)] [parameter(mandatory = $true)]
@ -54,7 +54,7 @@ function Get-SnipeItLicenseSeat() {
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -80,7 +80,7 @@ function Get-SnipeItLicenseSeat() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItLicenseSeat @callargs $res=Get-SnipeitLicenseSeat @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -18,16 +18,16 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItLocation -search Location1 Get-SnipeitLocation -search Location1
.EXAMPLE .EXAMPLE
Get-SnipeItLocation -id 3 Get-SnipeitLocation -id 3
#> #>
@ -60,7 +60,7 @@ function Get-SnipeitLocation()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -18,22 +18,22 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItManufacturer -search HP Get-SnipeitManufacturer -search HP
Search all manufacturers for string HP Search all manufacturers for string HP
.EXAMPLE .EXAMPLE
Get-SnipeItManufacturer -id 3 Get-SnipeitManufacturer -id 3
Returns manufacturer with id 3 Returns manufacturer with id 3
#> #>
function Get-SnipeItManufacturer() function Get-SnipeitManufacturer()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -62,7 +62,7 @@ function Get-SnipeItManufacturer()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -91,7 +91,7 @@ function Get-SnipeItManufacturer()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItManufacturer @callargs $res=Get-SnipeitManufacturer @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -18,20 +18,20 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItModel -search "DL380" Get-SnipeitModel -search "DL380"
.EXAMPLE .EXAMPLE
Get-SnipeItModel -id 1 Get-SnipeitModel -id 1
#> #>
function Get-SnipeItModel() function Get-SnipeitModel()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -60,7 +60,7 @@ function Get-SnipeItModel()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -89,7 +89,7 @@ function Get-SnipeItModel()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItModel @callargs $res=Get-SnipeitModel @callargs
$res $res
if ($res.count -ne $limit ) { if ($res.count -ne $limit ) {
break break

View file

@ -18,20 +18,20 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItStatus -search "Ready to Deploy" Get-SnipeitStatus -search "Ready to Deploy"
.EXAMPLE .EXAMPLE
Get-SnipeItStatus -id 3 Get-SnipeitStatus -id 3
#> #>
function Get-SnipeItStatus() function Get-SnipeitStatus()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -60,7 +60,7 @@ function Get-SnipeItStatus()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -89,7 +89,7 @@ function Get-SnipeItStatus()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItStatus @callargs $res=Get-SnipeitStatus @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -18,20 +18,20 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItSupplier -search MySupplier Get-SnipeitSupplier -search MySupplier
.EXAMPLE .EXAMPLE
Get-SnipeItSupplier -id 2 Get-SnipeitSupplier -id 2
#> #>
function Get-SnipeItSupplier() function Get-SnipeitSupplier()
{ {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
@ -60,7 +60,7 @@ function Get-SnipeItSupplier()
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -89,7 +89,7 @@ function Get-SnipeItSupplier()
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItSupplier @callargs $res=Get-SnipeitSupplier @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -24,25 +24,25 @@ Offset to use
A return all results, works with -offset and other parameters A return all results, works with -offset and other parameters
.PARAMETER url .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 .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 .EXAMPLE
Get-SnipeItUser -search SomeSurname Get-SnipeitUser -search SomeSurname
.EXAMPLE .EXAMPLE
Get-SnipeItUser -id 3 Get-SnipeitUser -id 3
.EXAMPLE .EXAMPLE
Get-SnipeItUser -username someuser Get-SnipeitUser -username someuser
.EXAMPLE .EXAMPLE
Get-SnipeItUser -email user@somedomain.com Get-SnipeitUser -email user@somedomain.com
#> #>
function Get-SnipeItUser() { function Get-SnipeitUser() {
Param( Param(
[parameter(ParameterSetName='Search')] [parameter(ParameterSetName='Search')]
[string]$search, [string]$search,
@ -88,7 +88,7 @@ function Get-SnipeItUser() {
[string]$apiKey [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 $SearchParameter = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
@ -116,7 +116,7 @@ function Get-SnipeItUser() {
while ($true) { while ($true) {
$callargs['offset'] = $offstart $callargs['offset'] = $offstart
$callargs['limit'] = $limit $callargs['limit'] = $limit
$res=Get-SnipeItUser @callargs $res=Get-SnipeitUser @callargs
$res $res
if ($res.count -lt $limit) { if ($res.count -lt $limit) {
break break

View file

@ -51,16 +51,16 @@ ID number of the location the accessory is assigned to
Min quantity of the accessory before alert is triggered Min quantity of the accessory before alert is triggered
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -105,7 +105,7 @@ function New-SnipeItAccessory() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -43,29 +43,29 @@ Optional Purchase cost of the Asset
Optional Default location id for the asset Optional Default location id for the asset
.PARAMETER url .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 .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 .PARAMETER customfields
Hastable of custom fields and extra fields that need passing through to Snipeit. 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. Use internal field names from snipeit .You can use Get-CustomField to get internal field names.
.EXAMPLE .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 Create asset with automatic tag if tag genaration is enabled on snipe-it, other wise without tag
.EXAMPLE .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 Specifying asset tag when creating asset
.EXAMPLE .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. Using customfields when creating asset.
#> #>
function New-SnipeItAsset() function New-SnipeitAsset()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -123,7 +123,7 @@ function New-SnipeItAsset()
[hashtable] $customfields [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -31,15 +31,15 @@ Optional completion date
Optional cost Optional cost
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -77,7 +77,7 @@ function New-SnipeItAssetMaintenance() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -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 ID of the location you want to associate with the audit
.EXAMPLE .EXAMPLE
New-SnipeItAudit -tag 1 -location_id 1 New-SnipeitAudit -tag 1 -location_id 1
#> #>
function New-SnipeItAudit() function New-SnipeitAudit()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, 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 = @{ $Values = @{
"location_id" = $location_id "location_id" = $location_id

View file

@ -9,10 +9,10 @@ Name of new category to be created
Type of new category to be created (asset, accessory, consumable, component, license) Type of new category to be created (asset, accessory, consumable, component, license)
.PARAMETER url .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 .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 .PARAMETER use_default_eula
If switch is present, use the primary 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 If switch is present, send email to user on checkin/checkout
.EXAMPLE .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -55,7 +55,7 @@ function New-SnipeItCategory()
[switch]$checkin_email [switch]$checkin_email
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
$Values = @{ $Values = @{
"name" = $name "name" = $name

View file

@ -9,17 +9,17 @@ Creates new company on Snipe-It system
Comapany name Comapany name
.PARAMETER url .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 .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 .EXAMPLE
New-SnipeItCompany -name "Acme Company" New-SnipeitCompany -name "Acme Company"
#> #>
function New-SnipeItCompany() function New-SnipeitCompany()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -37,7 +37,7 @@ function New-SnipeItCompany()
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -27,10 +27,10 @@ Date accessory was purchased
Cost of item being purchased. Cost of item being purchased.
.PARAMETER url .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 .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 .EXAMPLE
An example An example
@ -39,7 +39,7 @@ An example
General notes General notes
#> #>
function New-SnipeItComponent() { function New-SnipeitComponent() {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -72,7 +72,7 @@ function New-SnipeItComponent() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -9,16 +9,16 @@
Name of the Custom Field Name of the Custom Field
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -46,7 +46,7 @@ function New-SnipeItCustomField()
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -18,17 +18,17 @@
ID number of manager ID number of manager
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -53,7 +53,7 @@ function New-SnipeItDepartment() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -57,17 +57,17 @@
Termination date for license. Termination date for license.
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -124,7 +124,7 @@ function New-SnipeItLicense() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -39,16 +39,16 @@
The manager ID of the location The manager ID of the location
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -85,7 +85,7 @@ function New-SnipeItLocation() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -9,16 +9,16 @@
Name of the Manufacturer Name of the Manufacturer
.PARAMETER url .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 .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 .EXAMPLE
New-SnipeItManufacturer -name "HP" New-SnipeitManufacturer -name "HP"
#> #>
function New-SnipeItManufacturer() function New-SnipeitManufacturer()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -36,7 +36,7 @@ function New-SnipeItManufacturer()
[string]$apiKey [string]$apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
$Values = @{ $Values = @{
"name" = $Name "name" = $Name

View file

@ -21,16 +21,16 @@
Fieldset ID that the asset uses (Custom fields) Fieldset ID that the asset uses (Custom fields)
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -61,7 +61,7 @@ function New-SnipeItModel()
[string]$apiKey [string]$apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
$Values = @{ $Values = @{
name = $name name = $name

View file

@ -48,19 +48,19 @@
Mark user as import from ldap Mark user as import from ldap
.PARAMETER url .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 .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 .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 Creates new a new user who can't login to system
.NOTES .NOTES
General notes General notes
#> #>
function New-SnipeItUser() { function New-SnipeitUser() {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -109,7 +109,7 @@ function New-SnipeItUser() {
[string]$apiKey [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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -6,16 +6,16 @@
.PARAMETER ID .PARAMETER ID
Unique ID For Asset to be removed Unique ID For Asset to be removed
.PARAMETER url .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 .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 .EXAMPLE
Remove-SnipeItAsset -ID 44 -Verbose Remove-SnipeitAsset -ID 44 -Verbose
#> #>
function Remove-SnipeItAsset () function Remove-SnipeitAsset ()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, 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 = @{ $Values = @{
"ID" = $id "ID" = $id

View file

@ -1,4 +1,4 @@
function Remove-SnipeItAssetMaintenance { function Remove-SnipeitAssetMaintenance {
<# <#
.SYNOPSIS .SYNOPSIS
Remove asset maintenance from Snipe-it asset system Remove asset maintenance from Snipe-it asset system
@ -7,13 +7,13 @@ function Remove-SnipeItAssetMaintenance {
.PARAMETER ID .PARAMETER ID
Unique ID of the asset maintenance to be removed Unique ID of the asset maintenance to be removed
.PARAMETER url .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 .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 .EXAMPLE
Remove-SnipeItAssetMaintenance -ID 44 -url $url -apiKey $secret -Verbose Remove-SnipeitAssetMaintenance -ID 44 -url $url -apiKey $secret -Verbose
#> #>
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -36,7 +36,7 @@ function Remove-SnipeItAssetMaintenance {
$apiKey $apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
$Values = @{ $Values = @{
"ID" = $id "ID" = $id

View file

@ -7,16 +7,16 @@
Unique ID For User to be removed Unique ID For User to be removed
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, 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 = @{ $Values = @{
"ID" = $id "ID" = $id

View file

@ -7,25 +7,25 @@
.PARAMETER assigned_pivot_id .PARAMETER assigned_pivot_id
This is the assigned_pivot_id of the accessory+user relationships in the accessories_users table 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 .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 .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 .EXAMPLE
To get the accessories_users table for specific accessory id number 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 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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,

View file

@ -17,15 +17,15 @@
Notes about checkin Notes about checkin
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Medium" ConfirmImpact = "Medium"
@ -48,7 +48,7 @@ function Reset-SnipeItAssetOwner() {
[string]$apiKey [string]$apiKey
) )
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
$Values = @{ $Values = @{
"notes" = $notes "notes" = $notes

View file

@ -51,16 +51,16 @@ ID number of the location the accessory is assigned to
Min quantity of the accessory before alert is triggered Min quantity of the accessory before alert is triggered
.PARAMETER url .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 .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 .EXAMPLE
Set-SnipeItAccessory -id 1 -qty 3 Set-SnipeitAccessory -id 1 -qty 3
#> #>
function Set-SnipeItAccessory() { function Set-SnipeitAccessory() {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -104,7 +104,7 @@ function Set-SnipeItAccessory() {
) )
begin { 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -14,15 +14,15 @@
Notes about checkout Notes about checkout
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,

View file

@ -57,25 +57,25 @@
Http request type to send Snipe IT system. Defaults to Put youc use Patch if needed Http request type to send Snipe IT system. Defaults to Put youc use Patch if needed
.PARAMETER url .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 .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 .PARAMETER customfields
Hastable of custom fields and extra fields that need passing through to Snipeit Hastable of custom fields and extra fields that need passing through to Snipeit
.EXAMPLE .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -130,7 +130,7 @@ function Set-SnipeItAsset()
[hashtable] $customfields [hashtable] $customfields
) )
begin{ 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -25,15 +25,15 @@
Optional date to override the checkout time of now Optional date to override the checkout time of now
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -66,7 +66,7 @@ function Set-SnipeItAssetOwner()
) )
begin{ 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -30,10 +30,10 @@ Date accessory was purchased
Cost of item being purchased. Cost of item being purchased.
.PARAMETER url .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 .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 .EXAMPLE
An example An example
@ -41,7 +41,7 @@ An example
.NOTES .NOTES
General notes General notes
#> #>
function Set-SnipeItComponent() function Set-SnipeitComponent()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -75,7 +75,7 @@ function Set-SnipeItComponent()
[string]$apiKey [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 $values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -5,15 +5,15 @@
Set apikey and url user to connect Snipe-It system Set apikey and url user to connect Snipe-It system
.PARAMETER url .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 .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 .EXAMPLE
Set-SnipeItInfo -url $url -apiKey -Verbose Set-SnipeitInfo -url $url -apiKey -Verbose
#> #>
function Set-SnipeItInfo { function Set-SnipeitInfo {
[CmdletBinding()] [CmdletBinding()]
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseShouldProcessForStateChangingFunctions', '')] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseShouldProcessForStateChangingFunctions', '')]
param ( param (
@ -23,7 +23,7 @@ function Set-SnipeItInfo {
) )
BEGIN { BEGIN {
Test-SnipeItAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
function Add-DefaultParameter { function Add-DefaultParameter {
param( param(
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]

View file

@ -60,17 +60,17 @@
Termination date for license. Termination date for license.
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Low" ConfirmImpact = "Low"
@ -130,7 +130,7 @@ function Set-SnipeItLicense() {
[string]$apiKey [string]$apiKey
) )
begin{ 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -17,21 +17,21 @@
Notes about checkout Notes about checkout
.PARAMETER url .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 .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 .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 Checkout licence to user id 3
.EXAMPLE .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 Checkout licence to asset id 3
#> #>
function Set-SnipeItLicenseSeat() function Set-SnipeitLicenseSeat()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,

View file

@ -45,10 +45,10 @@
Parent location as id Parent location as id
.PARAMETER url .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 .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 .EXAMPLE
Set-SnipeitLocation -id 123 -name "Some storage" -parent_id 100 Set-SnipeitLocation -id 123 -name "Some storage" -parent_id 100
@ -96,7 +96,7 @@ function Set-SnipeitLocation() {
) )
begin{ 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -24,16 +24,16 @@
Fieldset ID that the asset uses (Custom fields) Fieldset ID that the asset uses (Custom fields)
.PARAMETER url .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 .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 .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( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
ConfirmImpact = "Medium" ConfirmImpact = "Medium"
@ -66,7 +66,7 @@ function Set-SnipeItModel() {
) )
begin { 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -51,19 +51,19 @@
Mark user as import from ldap Mark user as import from ldap
.PARAMETER url .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 .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 .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 Updates user with id 3
.NOTES .NOTES
General notes General notes
#> #>
function Set-SnipeItUser() { function Set-SnipeitUser() {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -112,7 +112,7 @@ function Set-SnipeItUser() {
[string]$apiKey [string]$apiKey
) )
begin{ 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 $Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters

View file

@ -9,14 +9,14 @@ Replaces old SnipeitPS commands with new ones
Input string Input string
.EXAMPLE .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" 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. After testing new file you can replace old file with new.
#> #>
function Update-SnipeItAlias() function Update-SnipeitAlias()
{ {
[CmdletBinding( [CmdletBinding(
SupportsShouldProcess = $true, SupportsShouldProcess = $true,
@ -31,7 +31,7 @@ function Update-SnipeItAlias()
) )
begin{ begin{
Write-Verbose "Replacing old SnipeIt fuctions with new ones.. " Write-Verbose "Replacing old SnipeIt fuctions with new ones.. "
$SnipeItAliases = Get-SnipeItAlias $SnipeItAliases = Get-SnipeitAlias
} }
process { process {

View file

@ -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. # 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 = @( FunctionsToExport = @(
'Get-SnipeItAsset', 'Get-SnipeitAsset',
'Get-SnipeItAssetMaintenance', 'Get-SnipeitAssetMaintenance',
'Get-SnipeItCategory', 'Get-SnipeitCategory',
'Get-SnipeItCompany', 'Get-SnipeitCompany',
'Get-SnipeItComponent', 'Get-SnipeitComponent',
'Get-SnipeItCustomField', 'Get-SnipeitCustomField',
'Get-SnipeItDepartment', 'Get-SnipeitDepartment',
'Get-SnipeItFieldset', 'Get-SnipeitFieldset',
'Get-SnipeitLocation', 'Get-SnipeitLocation',
'Get-SnipeItManufacturer', 'Get-SnipeitManufacturer',
'Get-SnipeItModel', 'Get-SnipeitModel',
'Get-SnipeItStatus', 'Get-SnipeitStatus',
'Get-SnipeItSupplier', 'Get-SnipeitSupplier',
'Get-SnipeItUser', 'Get-SnipeitUser',
'New-SnipeItAsset', 'New-SnipeitAsset',
'New-SnipeItAssetMaintenance', 'New-SnipeitAssetMaintenance',
'New-SnipeItCategory', 'New-SnipeitCategory',
'New-SnipeItComponent', 'New-SnipeitComponent',
'New-SnipeItCustomField', 'New-SnipeitCustomField',
'New-SnipeItDepartment', 'New-SnipeitDepartment',
'New-SnipeItLicense', 'New-SnipeitLicense',
'Set-SnipeItLicense', 'Set-SnipeitLicense',
'Get-SnipeItLicense', 'Get-SnipeitLicense',
'Get-SnipeItLicenseSeat', 'Get-SnipeitLicenseSeat',
'Set-SnipeItLicenseSeat', 'Set-SnipeitLicenseSeat',
'New-SnipeItLocation', 'New-SnipeitLocation',
'New-SnipeItManufacturer', 'New-SnipeitManufacturer',
'New-SnipeItModel', 'New-SnipeitModel',
'New-SnipeItUser', 'New-SnipeitUser',
'Set-SnipeItAsset', 'Set-SnipeitAsset',
'Set-SnipeItAssetOwner', 'Set-SnipeitAssetOwner',
'Set-SnipeItComponent', 'Set-SnipeitComponent',
'Set-SnipeItModel', 'Set-SnipeitModel',
'Set-SnipeItInfo', 'Set-SnipeitInfo',
'Set-SnipeItUser', 'Set-SnipeitUser',
'Set-SnipeItLocation', 'Set-SnipeitLocation',
'Add-SnipeItAccessory', 'Add-SnipeitAccessory',
'Set-SnipeItAccessory', 'Set-SnipeitAccessory',
'Get-SnipeItAccessory', 'Get-SnipeitAccessory',
'Remove-SnipeItAsset', 'Remove-SnipeitAsset',
'Remove-SnipeItUser', 'Remove-SnipeitUser',
'Update-SnipeItAlias', 'Update-SnipeitAlias',
'Set-SnipeItAccessoryOwner', 'Set-SnipeitAccessoryOwner',
'Get-SnipeItAccessoryOwner', 'Get-SnipeitAccessoryOwner',
'Reset-SnipeItAccessoryOwner', 'Reset-SnipeitAccessoryOwner',
'Get-SnipeItActivity' 'Get-SnipeitActivity'
) )

View file

@ -15,4 +15,4 @@ Get-ChildItem $scriptRoot *.ps1 | ForEach-Object {
} }
#Create unprefixed aliases #Create unprefixed aliases
Set-SnipeItAlias Set-SnipeitAlias

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItAccessory # Get-SnipeitAccessory
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Accessories Gets a list of Snipe-it Accessories
@ -13,7 +13,7 @@ Gets a list of Snipe-it Accessories
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItAccessory [[-search] <String>] [[-company_id] <Int32>] [[-category_id] <Int32>] Get-SnipeitAccessory [[-search] <String>] [[-company_id] <Int32>] [[-category_id] <Int32>]
[[-manufacturer_id] <Int32>] [[-supplier_id] <Int32>] [[-sort] <String>] [[-order] <String>] [[-manufacturer_id] <Int32>] [[-supplier_id] <Int32>] [[-sort] <String>] [[-order] <String>]
[[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -25,12 +25,12 @@ Gets a list of Snipe-it Accessories
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItAccessory -search Keyboard Get-SnipeitAccessory -search Keyboard
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItAccessory -id 1 Get-SnipeitAccessory -id 1
``` ```
## PARAMETERS ## PARAMETERS
@ -51,7 +51,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -203,7 +203,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItAccessoryOwner # Get-SnipeitAccessoryOwner
## SYNOPSIS ## SYNOPSIS
Get list of checked out accessories Get list of checked out accessories
@ -13,7 +13,7 @@ Get list of checked out accessories
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItAccessoryOwner [-id] <Int32> [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] Get-SnipeitAccessoryOwner [-id] <Int32> [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ Get list of checked out accessories
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItAccessoryOwner -id 1 Get-SnipeitAccessoryOwner -id 1
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -60,7 +60,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItActivity # Get-SnipeitActivity
## SYNOPSIS ## SYNOPSIS
Gets and search Snipe-it Activity history Gets and search Snipe-it Activity history
@ -13,7 +13,7 @@ Gets and search Snipe-it Activity history
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItActivity [[-search] <String>] [[-target_type] <String>] [[-target_id] <Int32>] Get-SnipeitActivity [[-search] <String>] [[-target_type] <String>] [[-target_id] <Int32>]
[[-item_type] <String>] [[-item_id] <Int32>] [[-action_type] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [[-item_type] <String>] [[-item_id] <Int32>] [[-action_type] <String>] [[-limit] <Int32>] [[-offset] <Int32>]
[-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -25,12 +25,12 @@ Gets a list of Snipe-it activity history
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItAccessory -search Keyboard Get-SnipeitAccessory -search Keyboard
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItAccessory -id 1 Get-SnipeitAccessory -id 1
``` ```
## PARAMETERS ## PARAMETERS
@ -67,7 +67,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -189,7 +189,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItAsset # Get-SnipeitAsset
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Assets or specific asset Gets a list of Snipe-it Assets or specific asset
@ -13,7 +13,7 @@ Gets a list of Snipe-it Assets or specific asset
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItAsset [[-search] <String>] [[-id] <Int32>] [[-asset_tag] <String>] [[-serial] <String>] Get-SnipeitAsset [[-search] <String>] [[-id] <Int32>] [[-asset_tag] <String>] [[-serial] <String>]
[[-order_number] <String>] [[-model_id] <Int32>] [[-category_id] <Int32>] [[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-model_id] <Int32>] [[-category_id] <Int32>] [[-manufacturer_id] <Int32>]
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-depreciation_id] <Int32>] [[-requestable] <Boolean>] [[-company_id] <Int32>] [[-location_id] <Int32>] [[-depreciation_id] <Int32>] [[-requestable] <Boolean>]
[[-status] <String>] [[-status_id] <Int32>] [[-sort] <String>] [[-order] <String>] [[-limit] <Int32>] [[-status] <String>] [[-status_id] <Int32>] [[-sort] <String>] [[-order] <String>] [[-limit] <Int32>]
@ -27,22 +27,22 @@ Get-SnipeItAsset [[-search] <String>] [[-id] <Int32>] [[-asset_tag] <String>] [[
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItAsset -url "https://assets.example.com"-token "token..." Get-SnipeitAsset -url "https://assets.example.com"-token "token..."
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..."
``` ```
### EXAMPLE 3 ### EXAMPLE 3
``` ```
Get-SnipeItAsset -search "myMachine"-url "https://assets.example.com"-token "token..." Get-SnipeitAsset -search "myMachine"-url "https://assets.example.com"-token "token..."
``` ```
### EXAMPLE 4 ### EXAMPLE 4
``` ```
Get-SnipeItAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..." Get-SnipeitAsset -asset_tag "myAssetTag"-url "https://assets.example.com"-token "token..."
``` ```
## PARAMETERS ## PARAMETERS
@ -63,7 +63,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -350,7 +350,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItAssetMaintenance # Get-SnipeitAssetMaintenance
## SYNOPSIS ## SYNOPSIS
Lists Snipe-it Assets Maintenances Lists Snipe-it Assets Maintenances
@ -13,7 +13,7 @@ Lists Snipe-it Assets Maintenances
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItAssetMaintenance [[-search] <String>] [[-asset_id] <Int32>] [[-sort] <String>] [[-order] <String>] Get-SnipeitAssetMaintenance [[-search] <String>] [[-asset_id] <Int32>] [[-sort] <String>] [[-order] <String>]
[[-limit] <Int32>] [-all] [[-offset] <Int32>] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-limit] <Int32>] [-all] [[-offset] <Int32>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,17 +24,17 @@ Get-SnipeItAssetMaintenance [[-search] <String>] [[-asset_id] <Int32>] [[-sort]
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItAssetMaintenances -url "https://assets.example.com" -token "token..." Get-SnipeitAssetMaintenances -url "https://assets.example.com" -token "token..."
``` ```
### EXAMPLE 2 ### 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 ### 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 ## PARAMETERS
@ -55,7 +55,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -162,7 +162,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItCategory # Get-SnipeitCategory
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Categories Gets a list of Snipe-it Categories
@ -13,7 +13,7 @@ Gets a list of Snipe-it Categories
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItCategory [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitCategory [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,12 +24,12 @@ Get-SnipeItCategory [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItCategory -id 1 Get-SnipeitCategory -id 1
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItCategory -search "Laptop" Get-SnipeitCategory -search "Laptop"
``` ```
## PARAMETERS ## PARAMETERS
@ -50,7 +50,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -142,7 +142,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
Url of Snipeit system, can be set using Set-SnipeItInfo command Url of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItCompany # Get-SnipeitCompany
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Companies Gets a list of Snipe-it Companies
@ -13,7 +13,7 @@ Gets a list of Snipe-it Companies
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItCompany [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitCompany [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ Get-SnipeItCompany [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-l
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItCompany Get-SnipeitCompany
Gets all companies Gets all companies
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItCompany -id 1 Get-SnipeitCompany -id 1
Gets specific company Gets specific company
``` ```
@ -52,7 +52,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -144,7 +144,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItComponent # Get-SnipeitComponent
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Components Gets a list of Snipe-it Components
@ -13,7 +13,7 @@ Gets a list of Snipe-it Components
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItComponent [[-search] <String>] [[-id] <Int32>] [[-category_id] <Int32>] [[-company_id] <Int32>] Get-SnipeitComponent [[-search] <String>] [[-id] <Int32>] [[-category_id] <Int32>] [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-order] <String>] [[-sort] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [-all] [[-location_id] <Int32>] [[-order] <String>] [[-sort] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [-all]
[-url] <String> [-apiKey] <String> [<CommonParameters>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -25,19 +25,19 @@ Get-SnipeItComponent [[-search] <String>] [[-id] <Int32>] [[-category_id] <Int32
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItComponent Get-SnipeitComponent
Returns all components Returns all components
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItComponent -search display Get-SnipeitComponent -search display
Returns search results containeing string display Returns search results containeing string display
``` ```
### EXAMPLE 3 ### EXAMPLE 3
``` ```
Get-SnipeItComponent -id Get-SnipeitComponent -id
Returns specific component Returns specific component
``` ```
@ -59,7 +59,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -211,7 +211,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system,can be set using Set-SnipeItInfo command URL of Snipeit system,can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItCustomField # Get-SnipeitCustomField
## SYNOPSIS ## SYNOPSIS
Returns specific Snipe-IT custom field or a list of all custom field Returns specific Snipe-IT custom field or a list of all custom field
@ -13,7 +13,7 @@ Returns specific Snipe-IT custom field or a list of all custom field
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItCustomField [[-id] <Int32>] [-url] <String> [-apiKey] <String> [<CommonParameters>] Get-SnipeitCustomField [[-id] <Int32>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -23,13 +23,13 @@ Get-SnipeItCustomField [[-id] <Int32>] [-url] <String> [-apiKey] <String> [<Comm
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItCustomField -url "https://assets.example.com" -token "token..." Get-SnipeitCustomField -url "https://assets.example.com" -token "token..."
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -59,7 +59,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItDepartment # Get-SnipeitDepartment
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Departments Gets a list of Snipe-it Departments
@ -13,7 +13,7 @@ Gets a list of Snipe-it Departments
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItDepartment [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitDepartment [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [[-sort] <String>] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [[-sort] <String>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,17 +24,17 @@ Get-SnipeItDepartment [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItDepartment -url "https://assets.example.com" -token "token..." Get-SnipeitDepartment -url "https://assets.example.com" -token "token..."
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItDepartment -search Department1 Get-SnipeitDepartment -search Department1
``` ```
### EXAMPLE 3 ### EXAMPLE 3
``` ```
Get-SnipeItDepartment -id 1 Get-SnipeitDepartment -id 1
``` ```
## PARAMETERS ## PARAMETERS
@ -55,7 +55,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -162,7 +162,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItFieldset # Get-SnipeitFieldset
## SYNOPSIS ## SYNOPSIS
Returns a fieldset or list of Snipe-it Fieldsets Returns a fieldset or list of Snipe-it Fieldsets
@ -13,7 +13,7 @@ Returns a fieldset or list of Snipe-it Fieldsets
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItFieldset [[-id] <Int32>] [-url] <String> [-apiKey] <String> [<CommonParameters>] Get-SnipeitFieldset [[-id] <Int32>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -23,18 +23,18 @@ Get-SnipeItFieldset [[-id] <Int32>] [-url] <String> [-apiKey] <String> [<CommonP
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItFieldset -url "https://assets.example.com" -token "token..." Get-SnipeitFieldset -url "https://assets.example.com" -token "token..."
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
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" }
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -64,7 +64,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItLicense # Get-SnipeitLicense
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Licenses Gets a list of Snipe-it Licenses
@ -13,7 +13,7 @@ Gets a list of Snipe-it Licenses
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItLicense [[-search] <String>] [[-id] <Int32>] [[-name] <String>] [[-company_id] <Int32>] Get-SnipeitLicense [[-search] <String>] [[-id] <Int32>] [[-name] <String>] [[-company_id] <Int32>]
[[-product_key] <String>] [[-order_number] <String>] [[-purchase_order] <String>] [[-license_name] <String>] [[-product_key] <String>] [[-order_number] <String>] [[-purchase_order] <String>] [[-license_name] <String>]
[[-license_email] <MailAddress>] [[-manufacturer_id] <Int32>] [[-supplier_id] <Int32>] [[-license_email] <MailAddress>] [[-manufacturer_id] <Int32>] [[-supplier_id] <Int32>]
[[-depreciation_id] <Int32>] [[-category_id] <Int32>] [[-order] <String>] [[-sort] <String>] [[-depreciation_id] <Int32>] [[-category_id] <Int32>] [[-order] <String>] [[-sort] <String>]
@ -27,12 +27,12 @@ Get-SnipeItLicense [[-search] <String>] [[-id] <Int32>] [[-name] <String>] [[-co
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItLicense -search SomeLicense Get-SnipeitLicense -search SomeLicense
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItLicense -id 1 Get-SnipeitLicense -id 1
``` ```
## PARAMETERS ## PARAMETERS
@ -53,7 +53,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -325,7 +325,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItLicenseSeat # Get-SnipeitLicenseSeat
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Licenses Seats or specific Seat Gets a list of Snipe-it Licenses Seats or specific Seat
@ -13,7 +13,7 @@ Gets a list of Snipe-it Licenses Seats or specific Seat
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItLicenseSeat [-id] <Int32> [[-seat_id] <Int32>] [[-limit] <Int32>] [[-offset] <Int32>] [-all] Get-SnipeitLicenseSeat [-id] <Int32> [[-seat_id] <Int32>] [[-limit] <Int32>] [[-offset] <Int32>] [-all]
[-url] <String> [-apiKey] <String> [<CommonParameters>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,7 +24,7 @@ Get-SnipeItLicenseSeat [-id] <Int32> [[-seat_id] <Int32>] [[-limit] <Int32>] [[-
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItLicenseSeat -id 1 Get-SnipeitLicenseSeat -id 1
``` ```
## PARAMETERS ## PARAMETERS
@ -45,7 +45,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -122,7 +122,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -24,12 +24,12 @@ Get-SnipeitLocation [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItLocation -search Location1 Get-SnipeitLocation -search Location1
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItLocation -id 3 Get-SnipeitLocation -id 3
``` ```
## PARAMETERS ## PARAMETERS
@ -50,7 +50,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -142,7 +142,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItManufacturer # Get-SnipeitManufacturer
## SYNOPSIS ## SYNOPSIS
# Gets a list of Snipe-it Manufacturers # Gets a list of Snipe-it Manufacturers
@ -13,7 +13,7 @@ schema: 2.0.0
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItManufacturer [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitManufacturer [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ Get-SnipeItManufacturer [[-search] <String>] [[-id] <Int32>] [[-order] <String>]
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItManufacturer -search HP Get-SnipeitManufacturer -search HP
Search all manufacturers for string HP Search all manufacturers for string HP
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItManufacturer -id 3 Get-SnipeitManufacturer -id 3
Returns manufacturer with id 3 Returns manufacturer with id 3
``` ```
@ -52,7 +52,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -144,7 +144,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItModel # Get-SnipeitModel
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Models Gets a list of Snipe-it Models
@ -13,7 +13,7 @@ Gets a list of Snipe-it Models
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItModel [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitModel [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,12 +24,12 @@ Get-SnipeItModel [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-lim
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItModel -search "DL380" Get-SnipeitModel -search "DL380"
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItModel -id 1 Get-SnipeitModel -id 1
``` ```
## PARAMETERS ## PARAMETERS
@ -50,7 +50,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -142,7 +142,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItStatus # Get-SnipeitStatus
## SYNOPSIS ## SYNOPSIS
Gets a list of Snipe-it Status Labels Gets a list of Snipe-it Status Labels
@ -13,7 +13,7 @@ Gets a list of Snipe-it Status Labels
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItStatus [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitStatus [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,12 +24,12 @@ Get-SnipeItStatus [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-li
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItStatus -search "Ready to Deploy" Get-SnipeitStatus -search "Ready to Deploy"
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItStatus -id 3 Get-SnipeitStatus -id 3
``` ```
## PARAMETERS ## PARAMETERS
@ -50,7 +50,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -142,7 +142,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItSupplier # Get-SnipeitSupplier
## SYNOPSIS ## SYNOPSIS
# Gets a list of Snipe-it Suppliers # Gets a list of Snipe-it Suppliers
@ -13,7 +13,7 @@ schema: 2.0.0
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItSupplier [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>] Get-SnipeitSupplier [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
``` ```
@ -24,12 +24,12 @@ Get-SnipeItSupplier [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItSupplier -search MySupplier Get-SnipeitSupplier -search MySupplier
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItSupplier -id 2 Get-SnipeitSupplier -id 2
``` ```
## PARAMETERS ## PARAMETERS
@ -50,7 +50,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -142,7 +142,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-SnipeItUser # Get-SnipeitUser
## SYNOPSIS ## SYNOPSIS
# Gets a list of Snipe-it Users # Gets a list of Snipe-it Users
@ -13,7 +13,7 @@ schema: 2.0.0
## SYNTAX ## SYNTAX
``` ```
Get-SnipeItUser [[-search] <String>] [[-id] <String>] [[-company_id] <Int32>] [[-location_id] <Int32>] Get-SnipeitUser [[-search] <String>] [[-id] <String>] [[-company_id] <Int32>] [[-location_id] <Int32>]
[[-group_id] <Int32>] [[-department_id] <Int32>] [[-username] <String>] [[-email] <String>] [[-group_id] <Int32>] [[-department_id] <Int32>] [[-username] <String>] [[-email] <String>]
[[-order] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [[-order] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String>
[<CommonParameters>] [<CommonParameters>]
@ -26,22 +26,22 @@ Get-SnipeItUser [[-search] <String>] [[-id] <String>] [[-company_id] <Int32>] [[
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Get-SnipeItUser -search SomeSurname Get-SnipeitUser -search SomeSurname
``` ```
### EXAMPLE 2 ### EXAMPLE 2
``` ```
Get-SnipeItUser -id 3 Get-SnipeitUser -id 3
``` ```
### EXAMPLE 3 ### EXAMPLE 3
``` ```
Get-SnipeItUser -username someuser Get-SnipeitUser -username someuser
``` ```
### EXAMPLE 4 ### EXAMPLE 4
``` ```
Get-SnipeItUser -email user@somedomain.com Get-SnipeitUser -email user@somedomain.com
``` ```
## PARAMETERS ## PARAMETERS
@ -62,7 +62,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -229,7 +229,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItAsset # New-SnipeitAsset
## SYNOPSIS ## SYNOPSIS
Add a new Asset to Snipe-it asset system Add a new Asset to Snipe-it asset system
@ -13,7 +13,7 @@ Add a new Asset to Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
New-SnipeItAsset [-status_id] <Int32> [-model_id] <Int32> [[-name] <String>] [[-asset_tag] <String>] New-SnipeitAsset [-status_id] <Int32> [-model_id] <Int32> [[-name] <String>] [[-asset_tag] <String>]
[[-serial] <String>] [[-company_id] <Int32>] [[-order_number] <String>] [[-notes] <String>] [[-serial] <String>] [[-company_id] <Int32>] [[-order_number] <String>] [[-notes] <String>]
[[-warranty_months] <Int32>] [[-purchase_cost] <String>] [[-purchase_date] <DateTime>] [[-warranty_months] <Int32>] [[-purchase_cost] <String>] [[-purchase_date] <DateTime>]
[[-supplier_id] <Int32>] [[-rtd_location_id] <Int32>] [-url] <String> [-apiKey] <String> [[-supplier_id] <Int32>] [[-rtd_location_id] <Int32>] [-url] <String> [-apiKey] <String>
@ -27,26 +27,26 @@ Long description
### EXAMPLE 1 ### 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 Create asset with automatic tag if tag genaration is enabled on snipe-it, other wise without tag
``` ```
### EXAMPLE 2 ### 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 Specifying asset tag when creating asset
``` ```
### EXAMPLE 3 ### 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. Using customfields when creating asset.
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -257,7 +257,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItAssetMaintenance # New-SnipeitAssetMaintenance
## SYNOPSIS ## SYNOPSIS
Add a new Asset maintenence to Snipe-it asset system 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 ## SYNTAX
``` ```
New-SnipeItAssetMaintenance [-asset_id] <Int32> [-supplier_id] <Int32> [-asset_maintenance_type] <String> New-SnipeitAssetMaintenance [-asset_id] <Int32> [-supplier_id] <Int32> [-asset_maintenance_type] <String>
[-title] <String> [-start_date] <DateTime> [[-completion_date] <DateTime>] [[-is_warranty] <Boolean>] [-title] <String> [-start_date] <DateTime> [[-completion_date] <DateTime>] [[-is_warranty] <Boolean>]
[[-cost] <Decimal>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [[-cost] <Decimal>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
@ -26,13 +26,13 @@ Long description
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -182,7 +182,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItCategory # New-SnipeitCategory
## SYNOPSIS ## SYNOPSIS
Create a new Snipe-IT Category Create a new Snipe-IT Category
@ -13,7 +13,7 @@ Create a new Snipe-IT Category
## SYNTAX ## SYNTAX
``` ```
New-SnipeItCategory [-name] <String> [-category_type] <String> [-url] <String> [-apiKey] <String> New-SnipeitCategory [-name] <String> [-category_type] <String> [-url] <String> [-apiKey] <String>
[-use_default_eula] [-require_acceptance] [-checkin_email] [-WhatIf] [-Confirm] [<CommonParameters>] [-use_default_eula] [-require_acceptance] [-checkin_email] [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ New-SnipeItCategory [-name] <String> [-category_type] <String> [-url] <String> [
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -105,7 +105,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItComponent # New-SnipeitComponent
## SYNOPSIS ## SYNOPSIS
Create a new component Create a new component
@ -13,7 +13,7 @@ Create a new component
## SYNTAX ## SYNTAX
``` ```
New-SnipeItComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>] New-SnipeitComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [-url] <String> [[-location_id] <Int32>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -31,7 +31,7 @@ An example
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -151,7 +151,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItCustomField # New-SnipeitCustomField
## SYNOPSIS ## SYNOPSIS
Add a new Custom Field to Snipe-it asset system 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 ## SYNTAX
``` ```
New-SnipeItCustomField [-Name] <String> [[-HelpText] <String>] [[-Element] <String>] [[-Format] <String>] New-SnipeitCustomField [-Name] <String> [[-HelpText] <String>] [[-Element] <String>] [[-Format] <String>]
[[-field_encrypted] <Boolean>] [[-CustomFormat] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [[-field_encrypted] <Boolean>] [[-CustomFormat] <String>] [-url] <String> [-apiKey] <String> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```
@ -25,13 +25,13 @@ Add a new Custom Field to Snipe-it asset system
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -136,7 +136,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItDepartment # New-SnipeitDepartment
## SYNOPSIS ## SYNOPSIS
Creates a department Creates a department
@ -13,7 +13,7 @@ Creates a department
## SYNTAX ## SYNTAX
``` ```
New-SnipeItDepartment [-name] <String> [[-company_id] <Int32>] [[-location_id] <Int32>] [[-manager_id] <Int32>] New-SnipeitDepartment [-name] <String> [[-company_id] <Int32>] [[-location_id] <Int32>] [[-manager_id] <Int32>]
[[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ Creates a new department on Snipe-It system
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -120,7 +120,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItLicense # New-SnipeitLicense
## SYNOPSIS ## SYNOPSIS
Creates a licence Creates a licence
@ -13,7 +13,7 @@ Creates a licence
## SYNTAX ## SYNTAX
``` ```
New-SnipeItLicense [-name] <String> [-seats] <Int32> [[-category_id] <Int32>] [[-company_id] <Int32>] New-SnipeitLicense [-name] <String> [-seats] <Int32> [[-category_id] <Int32>] [[-company_id] <Int32>]
[[-expiration_date] <DateTime>] [[-license_email] <MailAddress>] [[-license_name] <String>] [[-expiration_date] <DateTime>] [[-license_email] <MailAddress>] [[-license_name] <String>]
[[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>] [[-order_number] <String>] [[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>] [[-order_number] <String>]
[[-purchase_cost] <Single>] [[-purchase_date] <DateTime>] [[-reassignable] <Boolean>] [[-serial] <String>] [[-purchase_cost] <Single>] [[-purchase_date] <DateTime>] [[-reassignable] <Boolean>] [[-serial] <String>]
@ -28,13 +28,13 @@ Creates a new licence on Snipe-It system
### EXAMPLE 1 ### EXAMPLE 1
``` ```
New-SnipeItLicence -name "License" -seats 3 -company_id 1 New-SnipeitLicence -name "License" -seats 3 -company_id 1
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -304,7 +304,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItLocation # New-SnipeitLocation
## SYNOPSIS ## SYNOPSIS
Add a new Location to Snipe-it asset system Add a new Location to Snipe-it asset system
@ -13,7 +13,7 @@ Add a new Location to Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
New-SnipeItLocation [-name] <String> [[-address] <String>] [[-address2] <String>] [[-city] <String>] New-SnipeitLocation [-name] <String> [[-address] <String>] [[-address2] <String>] [[-city] <String>]
[[-state] <String>] [[-country] <String>] [[-zip] <String>] [[-currency] <String>] [[-parent_id] <Int32>] [[-state] <String>] [[-country] <String>] [[-zip] <String>] [[-currency] <String>] [[-parent_id] <Int32>]
[[-manager_id] <Int32>] [[-ldap_ou] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [[-manager_id] <Int32>] [[-ldap_ou] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
@ -26,7 +26,7 @@ Long description
### EXAMPLE 1 ### 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 ## PARAMETERS
@ -62,7 +62,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -197,7 +197,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItManufacturer # New-SnipeitManufacturer
## SYNOPSIS ## SYNOPSIS
Add a new Manufacturer to Snipe-it asset system Add a new Manufacturer to Snipe-it asset system
@ -13,7 +13,7 @@ Add a new Manufacturer to Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
New-SnipeItManufacturer [-Name] <String> [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] New-SnipeitManufacturer [-Name] <String> [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ Long description
### EXAMPLE 1 ### EXAMPLE 1
``` ```
New-SnipeItManufacturer -name "HP" New-SnipeitManufacturer -name "HP"
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -60,7 +60,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItModel # New-SnipeitModel
## SYNOPSIS ## SYNOPSIS
Add a new Model to Snipe-it asset system Add a new Model to Snipe-it asset system
@ -13,7 +13,7 @@ Add a new Model to Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
New-SnipeItModel [-name] <String> [[-model_number] <String>] [-category_id] <Int32> [-manufacturer_id] <Int32> New-SnipeitModel [-name] <String> [[-model_number] <String>] [-category_id] <Int32> [-manufacturer_id] <Int32>
[[-eol] <Int32>] [-fieldset_id] <Int32> [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [[-eol] <Int32>] [-fieldset_id] <Int32> [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```
@ -25,13 +25,13 @@ Long description
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -136,7 +136,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# New-SnipeItUser # New-SnipeitUser
## SYNOPSIS ## SYNOPSIS
Creates a new user Creates a new user
@ -13,7 +13,7 @@ Creates a new user
## SYNTAX ## SYNTAX
``` ```
New-SnipeItUser [-first_name] <String> [-last_name] <String> [-username] <String> [[-password] <String>] New-SnipeitUser [-first_name] <String> [-last_name] <String> [-username] <String> [[-password] <String>]
[[-activated] <Boolean>] [[-notes] <String>] [[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-activated] <Boolean>] [[-notes] <String>] [[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>]
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-company_id] <Int32>] [[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>]
[[-employee_num] <String>] [[-ldap_import] <Boolean>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [[-employee_num] <String>] [[-ldap_import] <Boolean>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
@ -27,7 +27,7 @@ Creates a new user to Snipe-IT system
### EXAMPLE 1 ### 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 Creates new a new user who can't login to system
``` ```
@ -49,7 +49,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -259,7 +259,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Remove-SnipeItAsset # Remove-SnipeitAsset
## SYNOPSIS ## SYNOPSIS
Removes Asset from Snipe-it asset system Removes Asset from Snipe-it asset system
@ -13,7 +13,7 @@ Removes Asset from Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
Remove-SnipeItAsset [-id] <Int32> [-URL] <String> [-APIKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-SnipeitAsset [-id] <Int32> [-URL] <String> [-APIKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -23,13 +23,13 @@ Removes Asset from Snipe-it asset system
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Remove-SnipeItAsset -ID 44 -Verbose Remove-SnipeitAsset -ID 44 -Verbose
``` ```
## PARAMETERS ## PARAMETERS
### -APIKey ### -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 ```yaml
Type: String Type: String
@ -59,7 +59,7 @@ Accept wildcard characters: False
``` ```
### -URL ### -URL
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Remove-SnipeItUser # Remove-SnipeitUser
## SYNOPSIS ## SYNOPSIS
Removes User from Snipe-it asset system Removes User from Snipe-it asset system
@ -13,7 +13,7 @@ Removes User from Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
Remove-SnipeItUser [-id] <Int32> [-URL] <String> [-APIKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-SnipeitUser [-id] <Int32> [-URL] <String> [-APIKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -23,13 +23,13 @@ Long description
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Remove-SnipeItUser -ID 44 -url $url -apiKey $secret -Verbose Remove-SnipeitUser -ID 44 -url $url -apiKey $secret -Verbose
``` ```
## PARAMETERS ## PARAMETERS
### -APIKey ### -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 ```yaml
Type: String Type: String
@ -59,7 +59,7 @@ Accept wildcard characters: False
``` ```
### -URL ### -URL
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Reset-SnipeItAccessoryOwner # Reset-SnipeitAccessoryOwner
## SYNOPSIS ## SYNOPSIS
Checkin accessories Checkin accessories
@ -13,7 +13,7 @@ Checkin accessories
## SYNTAX ## SYNTAX
``` ```
Reset-SnipeItAccessoryOwner [-assigned_pivot_id] <Int32> [-url] <String> [-apiKey] <String> [-WhatIf] Reset-SnipeitAccessoryOwner [-assigned_pivot_id] <Int32> [-url] <String> [-apiKey] <String> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```
@ -27,16 +27,16 @@ Checkin accessories
To get the accessories_users table for specific accessory id number 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 Thenselect assigned_pivot_id for userid you like check in
Get-SnipeItAccessoryOwner -assigned_pivot_id xxx Get-SnipeitAccessoryOwner -assigned_pivot_id xxx
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -52,7 +52,7 @@ Accept wildcard characters: False
### -assigned_pivot_id ### -assigned_pivot_id
This is the assigned_pivot_id of the accessory+user relationships in the accessories_users table 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 ```yaml
Type: Int32 Type: Int32
@ -67,7 +67,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItAccessory # Set-SnipeitAccessory
## SYNOPSIS ## SYNOPSIS
Updates accessory on Snipe-It system Updates accessory on Snipe-It system
@ -13,7 +13,7 @@ Updates accessory on Snipe-It system
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItAccessory [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>] Set-SnipeitAccessory [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
[[-company_id] <Int32>] [[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-purchase_cost] <Single>] [[-company_id] <Int32>] [[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-purchase_cost] <Single>]
[[-purchase_date] <DateTime>] [[-min_qty] <Boolean>] [[-supplier_id] <Int32>] [-url] <String> [[-purchase_date] <DateTime>] [[-min_qty] <Boolean>] [[-supplier_id] <Int32>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
@ -26,13 +26,13 @@ Updates accessory on Snipe-It system
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Set-SnipeItAccessory -id 1 -qty 3 Set-SnipeitAccessory -id 1 -qty 3
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -212,7 +212,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItAccessoryOwner # Set-SnipeitAccessoryOwner
## SYNOPSIS ## SYNOPSIS
Checkout accessory Checkout accessory
@ -13,7 +13,7 @@ Checkout accessory
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItAccessoryOwner [-id] <Int32[]> [-assigned_to] <Int32> [[-note] <String>] [-url] <String> Set-SnipeitAccessoryOwner [-id] <Int32[]> [-assigned_to] <Int32> [[-note] <String>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -24,13 +24,13 @@ Checkout accessory to user
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -90,7 +90,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItAsset # Set-SnipeitAsset
## SYNOPSIS ## SYNOPSIS
Update a specific Asset in the Snipe-it asset system 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 ## SYNTAX
``` ```
Set-SnipeItAsset [-id] <Int32[]> [[-name] <String>] [[-status_id] <Int32>] [[-model_id] <Int32>] Set-SnipeitAsset [-id] <Int32[]> [[-name] <String>] [[-status_id] <Int32>] [[-model_id] <Int32>]
[[-last_checkout] <DateTime>] [[-assigned_to] <Int32>] [[-company_id] <Int32>] [[-serial] <String>] [[-last_checkout] <DateTime>] [[-assigned_to] <Int32>] [[-company_id] <Int32>] [[-serial] <String>]
[[-order_number] <String>] [[-warranty_months] <Int32>] [[-purchase_cost] <Double>] [[-order_number] <String>] [[-warranty_months] <Int32>] [[-purchase_cost] <Double>]
[[-purchase_date] <DateTime>] [[-requestable] <Boolean>] [[-archived] <Boolean>] [[-rtd_location_id] <Int32>] [[-purchase_date] <DateTime>] [[-requestable] <Boolean>] [[-archived] <Boolean>] [[-rtd_location_id] <Int32>]
@ -28,18 +28,18 @@ Long description
### EXAMPLE 1 ### 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 ### EXAMPLE 2
``` ```
Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" }
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -311,7 +311,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItAssetOwner # Set-SnipeitAssetOwner
## SYNOPSIS ## SYNOPSIS
Checkout asset Checkout asset
@ -13,7 +13,7 @@ Checkout asset
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItAssetOwner [-id] <Int32[]> [-assigned_id] <Int32> [[-checkout_to_type] <String>] [[-name] <String>] Set-SnipeitAssetOwner [-id] <Int32[]> [-assigned_id] <Int32> [[-checkout_to_type] <String>] [[-name] <String>]
[[-note] <String>] [[-expected_checkin] <DateTime>] [[-checkout_at] <DateTime>] [-url] <String> [[-note] <String>] [[-expected_checkin] <DateTime>] [[-checkout_at] <DateTime>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -25,13 +25,13 @@ Checkout asset to user/localtion/asset
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -154,7 +154,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItComponent # Set-SnipeitComponent
## SYNOPSIS ## SYNOPSIS
Updates component Updates component
@ -13,7 +13,7 @@ Updates component
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItComponent [-id] <Int32> [-qty] <Int32> [[-name] <String>] [[-company_id] <Int32>] Set-SnipeitComponent [-id] <Int32> [-qty] <Int32> [[-name] <String>] [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [-url] <String> [[-location_id] <Int32>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -31,7 +31,7 @@ An example
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -151,7 +151,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItInfo # Set-SnipeitInfo
## SYNOPSIS ## SYNOPSIS
Sets authetication information Sets authetication information
@ -13,7 +13,7 @@ Sets authetication information
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItInfo [[-url] <Uri>] [[-apiKey] <String>] [<CommonParameters>] Set-SnipeitInfo [[-url] <Uri>] [[-apiKey] <String>] [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -23,13 +23,13 @@ Set apikey and url user to connect Snipe-It system
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Set-SnipeItInfo -url $url -apiKey -Verbose Set-SnipeitInfo -url $url -apiKey -Verbose
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -44,7 +44,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: Uri Type: Uri

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItLicense # Set-SnipeitLicense
## SYNOPSIS ## SYNOPSIS
Updates a licence Updates a licence
@ -13,7 +13,7 @@ Updates a licence
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItLicense [-id] <Int32[]> [[-name] <String>] [[-seats] <Int32>] [[-category_id] <Int32>] Set-SnipeitLicense [-id] <Int32[]> [[-name] <String>] [[-seats] <Int32>] [[-category_id] <Int32>]
[[-company_id] <Int32>] [[-expiration_date] <DateTime>] [[-license_email] <MailAddress>] [[-company_id] <Int32>] [[-expiration_date] <DateTime>] [[-license_email] <MailAddress>]
[[-license_name] <String>] [[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>] [[-license_name] <String>] [[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>]
[[-order_number] <String>] [[-purchase_cost] <Single>] [[-purchase_date] <DateTime>] [[-order_number] <String>] [[-purchase_cost] <Single>] [[-purchase_date] <DateTime>]
@ -28,13 +28,13 @@ Updates licence on Snipe-It system
### EXAMPLE 1 ### EXAMPLE 1
``` ```
Set-SnipeItLicence -name "License" -seats 3 -company_id 1 Set-SnipeitLicence -name "License" -seats 3 -company_id 1
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -319,7 +319,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItLicenseSeat # Set-SnipeitLicenseSeat
## SYNOPSIS ## SYNOPSIS
Set license seat or checkout license seat Set license seat or checkout license seat
@ -13,7 +13,7 @@ Set license seat or checkout license seat
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_id] <Int32>] [[-asset_id] <Int32>] Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_id] <Int32>] [[-asset_id] <Int32>]
[[-note] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [[-note] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -24,20 +24,20 @@ Checkout specific license seat to user, asset or both
### EXAMPLE 1 ### 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 Checkout licence to user id 3
``` ```
### EXAMPLE 2 ### 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 Checkout licence to asset id 3
``` ```
## PARAMETERS ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -127,7 +127,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -62,7 +62,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -212,7 +212,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItModel # Set-SnipeitModel
## SYNOPSIS ## SYNOPSIS
Updates Model on Snipe-it asset system Updates Model on Snipe-it asset system
@ -13,7 +13,7 @@ Updates Model on Snipe-it asset system
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItModel [-id] <Int32[]> [[-name] <String>] [[-model_number] <String>] [[-category_id] <Int32>] Set-SnipeitModel [-id] <Int32[]> [[-name] <String>] [[-model_number] <String>] [[-category_id] <Int32>]
[[-manufacturer_id] <Int32>] [[-eol] <Int32>] [[-custom_fieldset_id] <Int32>] [-url] <String> [[-manufacturer_id] <Int32>] [[-eol] <Int32>] [[-custom_fieldset_id] <Int32>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -25,13 +25,13 @@ Updates Model on Snipe-it asset system
### EXAMPLE 1 ### 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 ## PARAMETERS
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -151,7 +151,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

View file

@ -5,7 +5,7 @@ online version:
schema: 2.0.0 schema: 2.0.0
--- ---
# Set-SnipeItUser # Set-SnipeitUser
## SYNOPSIS ## SYNOPSIS
Creates a new user Creates a new user
@ -13,7 +13,7 @@ Creates a new user
## SYNTAX ## SYNTAX
``` ```
Set-SnipeItUser [-id] <Int32[]> [[-first_name] <String>] [[-last_name] <String>] [[-userName] <String>] Set-SnipeitUser [-id] <Int32[]> [[-first_name] <String>] [[-last_name] <String>] [[-userName] <String>]
[[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-company_id] <Int32>] [[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-employee_num] <String>] [[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-employee_num] <String>]
[[-activated] <Boolean>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [[-activated] <Boolean>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
@ -27,7 +27,7 @@ Creates a new user to Snipe-IT system
### EXAMPLE 1 ### 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 Updates user with id 3
``` ```
@ -49,7 +49,7 @@ Accept wildcard characters: False
``` ```
### -apiKey ### -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 ```yaml
Type: String Type: String
@ -244,7 +244,7 @@ Accept wildcard characters: False
``` ```
### -url ### -url
URL of Snipeit system, can be set using Set-SnipeItInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
```yaml ```yaml
Type: String Type: String

Some files were not shown because too many files have changed in this diff Show more