< Back
Set-GlpiToolsKillSession
Post
NAME Set-GlpiToolsKillSession
SYNOPSIS
Function which kill API session.
SYNTAX
Set-GlpiToolsKillSession [[-SessionToken] <String>] [<CommonParameters>]
DESCRIPTION
Function gets nesessery information from Config file, and Function Set-GlpiToolsInitSession, then kill session.
PARAMETERS
-SessionToken <String>
This parameter have to be passed from Set-GlpiToolsInitSession
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
SessionToken from Set-GlpiToolsInitSession
OUTPUTS
None
NOTES
PSP 12/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\Users\\Wojtek>$SessionToken | Set-GlpiToolsKillSession
Run command like that and you will kill session with API GLPI
-------------------------- EXAMPLE 2 --------------------------
PS C:\\Users\\Wojtek>Set-GlpiToolsKillSession -SessionToken $SessionToken
Run command like that and you will kill session with API GLPI
RELATED LINKS
SYNOPSIS
Function which kill API session.
SYNTAX
Set-GlpiToolsKillSession [[-SessionToken] <String>] [<CommonParameters>]
DESCRIPTION
Function gets nesessery information from Config file, and Function Set-GlpiToolsInitSession, then kill session.
PARAMETERS
-SessionToken <String>
This parameter have to be passed from Set-GlpiToolsInitSession
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
SessionToken from Set-GlpiToolsInitSession
OUTPUTS
None
NOTES
PSP 12/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\Users\\Wojtek>$SessionToken | Set-GlpiToolsKillSession
Run command like that and you will kill session with API GLPI
-------------------------- EXAMPLE 2 --------------------------
PS C:\\Users\\Wojtek>Set-GlpiToolsKillSession -SessionToken $SessionToken
Run command like that and you will kill session with API GLPI
RELATED LINKS