This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region modules | |
$requiredModules = @("<modulname>") | |
$numbers = @{ | |
2 = "two" | |
3 = "three" | |
4 = "four" | |
5 = "five" | |
6 = "six" | |
7 = "seven" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
$ComputerName = "www.google.de", | |
[Parameter(ValueFromPipelineByPropertyName=$true)] | |
[int]$Port = 443 | |
) | |
begin { | |
$ProtocolNames = [System.Security.Authentication.SslProtocols] | gm -static -MemberType Property | ?{$_.Name -notin @("Default","None")} | %{$_.Name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#parameters to set in exexml sensor: -target '%host' -instance 'name_of_instance' | |
param( | |
[string]$target = '10.0.0.133', | |
[string]$instance = 'SharePoint - 80' | |
) | |
$DataTable = New-Object System.Data.DataTable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This requires prtgapi to be installed: | |
# Install-Module prtgapi | |
# | |
# ignore unsigned TLS certificates | |
add-type @" | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
public class TrustAllCertsPolicy : ICertificatePolicy { | |
public bool CheckValidationResult( | |
ServicePoint srvPoint, X509Certificate certificate, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USE AT YOUR OWN RISK. | |
# This will reset the dependencies of all ping sensors to be the master object for their parent. | |
# Your PRTG Server's FQDN, i.e. prtg.acme.com | |
$PRTGServer = "prtg.acme.com" | |
# proper message output | |
Function This-ShowMessage([string]$type,$message){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#parameters to set in exexml sensor: -target '%host' -instance 'name_of_instance' | |
param( | |
[string]$target = '10.0.0.133', | |
[string]$instance = 'SharePoint - 80' | |
) | |
$DataTable = New-Object System.Data.DataTable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
# ___ ___ _____ ___ | |
#| _ \ _ \_ _/ __| | |
#| _/ / | || (_ | | |
#|_| |_|_\ |_| \___| | |
# SCVMM & HyperV-VM Sensors | |
# ================================ | |
# This sensor will monitor HyperV hosts and their virtual machines using SCVMM. | |
# It also supports metascan (https://kb.paessler.com/en/topic/68109), so you don't have | |
# to do all the configuration work. Note that this will only work in an upcoming stable release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[string] $ConfigurationFilePath = ((Get-ItemProperty -Path "hklm:SOFTWARE\Wow6432Node\Paessler\PRTG Network Monitor\Server\Core" -Name "Datapath").DataPath) + "PRTG Configuration.dat" | |
[xml] $configuration = New-Object -TypeName XML; | |
$configuration.Load($ConfigurationFilePath) | |
[System.Collections.ArrayList]$ADEnabledGroups = @(); | |
[System.Collections.ArrayList]$ADEnabledDevices = @(); | |
$Groups = ($configuration.SelectNodes("//group")) | |
$Devices = ($configuration.SelectNodes("//device")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$computerName="", | |
[string]$IgnoreList = @("Dell Digital Delivery Service","Skype Updater", "Software Protection","Manager für heruntergeladene Karten"), | |
[string]$UserName = "", | |
[string]$Password = '' | |
) | |
$IgnoreScript = 'Google Update Service (gupdate)' | |
$IgnoreCombined = $IgnoreList + $IgnoreScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$prtgserver=""; | |
$protocol=""; | |
$port=80; | |
$user=""; | |
$passhash=""; | |
$configpath = "C:\ProgramData\Paessler\PRTG Network Monitor\PRTG Configuration.dat"; | |
[xml]$Configuration = (Get-Content $configpath); | |
$Notifications = $Configuration.SelectNodes("//notification[@id]") |
NewerOlder