< Back

Disconnect-PrtgServer

Sun Jan 19, 2020 5:40 pm

NAME Disconnect-PrtgServer



SYNOPSIS

Invalidates a PrtgClient previously created with Connect-PrtgServer.





SYNTAX

Disconnect-PrtgServer [<CommonParameters>]





DESCRIPTION

The Disconnect-PrtgServer cmdlet invalidates a PrtgClient previously created with Connect-PrtgServer. As PRTG uses

a stateless REST API, it is not necessary to call Disconnect-PrtgServer when you have finished making requests

unless you are developing a script, in which case Connect-PrtgServer will fail to create a PrtgClient if a PRTG

connection is already active in the current session. This can be circumvented by specifying the -Force parameter

when establishing the connection. For more information, see Connect-PrtgServer.



If Disconnect-PrtgServer is called when you are not connected to a PRTG Server, this cmdlet does nothing.





PARAMETERS

<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



OUTPUTS



---------- EXAMPLE 1 ----------



C:\\> Disconnect-PrtgServer



Disconnect from the current PRTG Server



RELATED LINKS

Online version: https://github.com/lordmilko/PrtgAPI/wi ... nagement-1

Connect-PrtgServer

Get-PrtgClient