Connect-InternalPRTG.ps1
something exciting
Some information about the exciting thing
Table of contents generated with markdown-toc
Script
function Connect-InternalPRTG {
<#
.SYNOPSIS
Connects to the PRTG Monitoring Server.
.DESCRIPTION
Establishes a secure connection to the PRTG Monitoring Servers API, using the functions from the PrtgAPI module.
.PARAMETER url
Enter the url for the PRTG Monitoring Server API. This paramter is not mandatory and will default the CSO default PRTG server.
.NOTES
Name: Connect-InternalPRTG.ps1
Author: Luke Leigh
DateCreated: 02Sep2021
.LINK
http://
.EXAMPLE
Connect-InternalPRTG
#>
[CmdletBinding()]
param (
[Parameter(
Mandatory = $false,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true,
HelpMessage = "Enter the url for the PRTG Monitoring Server."
)]
[string]
$url = "https://csonetmon01.uk.cruk.net"
)
if (!(Get-PrtgClient)) {
Connect-PrtgServer -Server $url -Credential (Get-Credential)
}
}
Download
Please feel free to copy parts of the script or if you would like to download the entire script, simple click the download button. You can download the complete repository in a zip file by clicking the Download link in the menu bar on the left hand side of the page.
Report Issues
You can report an issue or contribute to this site on GitHub. Simply click the button below and add any relevant notes. I will attempt to respond to all issues as soon as possible.