This file contains hidden or 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
#If the number of messages in a queue are above this value, the queue will be purged. | |
$threshold = 500000 | |
#Logging configuration | |
$path = "G:\Jobs" | |
$logname = "msmq_monitor.log" | |
$rotation_threshold_mb = 10 | |
function EmailResults($computername,$queuename,$messagecount) { | |
$global:smtpserver = "smtpserver.domain.local" |
This file contains hidden or 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
[cmdletbinding()] | |
Param ( | |
[Parameter(Mandatory=$true)]$domain | |
) | |
#Import Active Directory module | |
Import-Module ActiveDirectory | |
#Initialize arrays to store results | |
$results = @() | |
$zoneresults = @() |
NewerOlder