mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-14 02:12:29 +00:00
26 lines
550 B
PowerShell
26 lines
550 B
PowerShell
<#
|
|
.DESCRIPTION
|
|
Powershell API for Snipeit Asset Management
|
|
#>
|
|
$scriptRoot = $PSScriptRoot + '\Public'
|
|
|
|
Get-ChildItem $scriptRoot *.ps1 | ForEach-Object {
|
|
. $_.FullName
|
|
}
|
|
|
|
$scriptRoot = $PSScriptRoot + '\Private'
|
|
|
|
Get-ChildItem $scriptRoot *.ps1 | ForEach-Object {
|
|
. $_.FullName
|
|
}
|
|
|
|
#Create unprefixed aliases
|
|
Set-SnipeitAlias
|
|
|
|
#Session variable for storing current session information
|
|
$SnipeitPSSession = [ordered]@{
|
|
'url' = $null
|
|
'apiKey' = $null
|
|
}
|
|
New-Variable -Name SnipeitPSSession -Value $SnipeitPSSession -Scope Script -Force
|
|
|