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
#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( | |
[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]") |
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
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
#################################### | |
# 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") |
NewerOlder