mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
set-snipeitlicence
This commit is contained in:
parent
cd86c6749d
commit
528367cbd6
1 changed files with 2 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ function Set-SnipeitLicense() {
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$apiKey
|
[string]$apiKey
|
||||||
)
|
)
|
||||||
|
|
||||||
begin{
|
begin{
|
||||||
Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
|
Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
|
||||||
|
|
||||||
|
|
@ -148,6 +149,7 @@ function Set-SnipeitLicense() {
|
||||||
|
|
||||||
$Body = $Values | ConvertTo-Json;
|
$Body = $Values | ConvertTo-Json;
|
||||||
}
|
}
|
||||||
|
|
||||||
process {
|
process {
|
||||||
foreach($license_id in $id){
|
foreach($license_id in $id){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue