Powershell API Wrapper for Snipe-it
Find a file
Petri Asikainen d14244d727
Merge pull request #283 from snazy2000/develop
Merge Develop
Support for more search fields and updated documentation  @mattcarras
2022-08-31 22:11:12 +03:00
.github add issue template 2021-06-16 20:00:30 +03:00
.vscode Update all Get commands with all avaliable search options, Added CheckIn Asset 2018-04-28 19:45:38 +01:00
docs Updated docs 2022-03-30 20:45:50 +03:00
SnipeitPS Update Get Functions 2022-08-31 14:30:45 -04:00
Tests casensitivity 2021-06-08 22:04:25 +03:00
.gitlab-ci.yml Fix yaml 2017-12-31 20:25:40 +00:00
_config.yml Set theme jekyll-theme-cayman 2019-04-28 11:09:50 +01:00
appveyor.yml Version 1.10.x 2021-09-03 16:07:19 +03:00
build.ps1 force load module 2017-12-31 21:27:15 +00:00
CHANGELOG.md update readme 2021-09-03 15:54:36 +03:00
LICENSE Added license 2017-11-18 21:54:46 +00:00
PSScriptAnalyzerSettings.psd1 Fix missing password #9 2018-06-23 20:10:58 +01:00
README.md update readme 2021-09-03 15:54:36 +03:00
SnipeitPS.build.ps1 build with powershell 5 and 7 2021-06-15 14:16:12 +03:00

GitHub release Build status PowerShell Gallery License


Want to say thanks?

paypal

Instructions

Installation

Install SnipeitPS from the PowerShell Gallery Install-Module requires PowerShellGet (included in PS v5, or download for v3/v4 via the gallery link)

# One time only install: (requires an admin PowerShell window)
Install-Module SnipeitPS

# Check for updates occasionally:
Update-Module SnipeitPS

# import module to session:
Import-Module SnipeitPS

# Set connection
Connect-SnipeitPS -URL 'https://asset.example.com' -apiKey 'tokenKey'

# Or set connection with safely saved credentials, first save credentials
$SnipeCred =Get-Credential -message "Use url as username and apikey as password"
$SnipeCred | Export-CliXml snipecred.xml

# ..then use your saved credentials like
Connect-SnipeitPS -siteCred (Import-CliXml snipecred.xml)

# OR use -secureApiKey that allow pass apiKey as SecureString
# if you are usin Microsoft.PowerShell.SecretManagement or like
Connect-SnipeitPS -URL 'https://asset.example.com' -secureApiKey 'tokenKey'

Usage

# Review the help at any time!
Get-Help about_SnipeitPS
Get-Command -Module SnipeitPS
Get-Help Get-SnipeitAsset -Full   # or any other command

Reporting bugs and issues

Please use -Verbose switch with command you have problem with. Then create ticket here with all -Verbose output