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
# ___ ___ _____ ___ | |
#| _ \ _ \_ _/ __| | |
#| _/ / | || (_ | | |
#|_| |_|_\ |_| \___| | |
# NETWORK MONITOR | |
#------------------- | |
# Description: Monitors if a login on a website with a HTML login form works properly | |
# Parameters: | |
# -URL: The URL to the login form | |
# -Username: A valid username for the page |
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 | |
<# | |
___ ___ _____ ___ | |
| _ \ _ \_ _/ __| | |
| _/ / | || (_ | | |
|_| |_|_\ |_| \___| | |
HTMLMailNotifier | |
With this, you can send personalized HTML mails using templates and PRTGs EXE notification | |
#> | |
param( |
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 | |
# ___ ___ _____ ___ | |
#| _ \ _ \_ _/ __| | |
#| _/ / | || (_ | | |
#|_| |_|_\ |_| \___| | |
# NETWORK MONITOR | |
# ------------------ | |
# (c) 2014 Paessler AG | |
# this will create new devices including lat and lon. from a CSV. | |
# Make sure it looks like this and is named devices.csv within the same directory as the script: |
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
CREATE PROCEDURE spPlanResult | |
@nvcPlanName nvarchar(255) | |
AS | |
BEGIN | |
SELECT TOP 1 succeeded | |
FROM msdb.dbo.sysmaintplan_log PL | |
INNER JOIN msdb.dbo.sysmaintplan_plans PP ON PP.id = PL.plan_id | |
WHERE PP.name = @nvcPlanName | |
ORDER BY start_time desc |
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
param($computerName = "") | |
# start a new powershell session | |
$session = New-PSSession -ComputerName $computerName | |
# execute the command and retrieve currently open files | |
$files = (Invoke-Command -Session $session -ScriptBlock {Get-SmbOpenFile | Group Path}) | |
# write to log file | |
#$files | Out-File "C:\temp\smb.log" -Append |
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
#################################### | |
# Last update: 20150310pra | |
# Original: https://community.whatsupgold.com/library/powershellscripts/installandconfiguresnmpwithpowershell | |
# Description: Powershell script to install and configure SNMP Services on Windows 2008R2, 2012 and 2012R2 Server (SNMP Service, SNMP WMI Provider) | |
# start As Administrator with C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -Command "&{ \\Servername\InstallSNMP\installsnmp.ps1}" | |
# Script Location: \\Servername\InstallSNMP\installsnmp.ps1 | |
#################################### | |
#Variables :) | |
$PManagers = @("172.29.60.206") # ADD YOUR MANAGER(s) in format @("manager1","manager2") |
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]") |
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
[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")) |
OlderNewer