Releases: snazy2000/SnipeitPS
v1.10.205
v1.10.189
Fixes:
Fixed powershell 5.1 compatibility that was broken on first v.1.10 release
New secure ways to connect Snipe it
Old Set-SnipeitInfo is now just alias to Connect-PSnipeitPS
While -apiKey parameter still works you can protect your apikeys by using -secureApiKey or
-siteCred parameters
-secureApiKey allow pass apiKey as SecureString
Connect-SnipeitPS -URL 'https://asset.example.com' -secureApiKey 'tokenKey'
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)
Fix for content encoding in invoke-snipeitmethod
Version 1.9 introduced bug that converted non ascii characters to ascii
during request.
v1.10.187
New secure ways to connect Snipe it
-secureApiKey allow pass apiKey as SecureString
Connect-SnipeitPS -URL 'https://asset.example.com' -secureApiKey 'tokenKey'
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)
Fix for content encoding in invoke-snipeitmethod
Version 1.9 introduced bug that converted non ascii characters to ascii
during request.
v1.9.183
v1.9.181
v1.9.179
v1.9.176
Image uploads
New features
Support for image upload and removes. Just specify filename for -image para-
meter when creating or updating item on snipe.
Remove image use -image_delete parameter.
Snipe It version greater than 5.1.8 is needed to support image parameters.
Most of set-commands have new -RequestType parameter that defaults to Patch.
If needed request method can be changed from default.
New Functions
Following new commands have been added to SnipeitPS:
- New-Supplier
- Set-Supplier
- Remove-Supplier
- Set-Manufacturer
v1.8.167
Get-SnipeitAccessories -user_id returns accessories checked out to user id
New features
Get-SnipeitAsset -user_id Return Assets checked out to user id
Get-SnipeitAsset -component_id Returns assets with specific component id
Get-SnipeitLicense -user_id Get licenses checked out to user ID
Get-SnipeitLicense -asset_id Get licenses checked out to asset ID
Get-SnipeitUser -accessory_id Get users that have specific accessory id checked out