This perl script will bulk remove emails from the Postfix mail queue based on a keyword, email domain, or email address. The script came from this blog post: #!/usr/bin/perl $REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!”; …
This command will tell you how many emails are in the Postfix mail queue postqueue -p | tail -n 1 | cut -d’ ‘ -f5
This is for Windows Server 2008 R2 and Exchange 2010. Action Tab New Action > Start a Program Program/Script: PowerShell.exe Add Arguments -PSConsoleFile “C:\Program Files\Microsoft\Exchange Server\V14\Bin\ExShell.psc1” -Command “<Path to Script>” Optionally, you may need to add the “Start In” path …
A simple PowerShell script that can run on an Exchange 2010 server. This script will send an email report that contains usage statistics for each mailbox in an Exchange 2010 database. Step 01: Define some variables $FromAddr = “myName@company.com” $ToAddr …
Command to edit crontab with Nano: env EDITOR=nano crontab -e
This information comes from this TechNet Article: Command for formatting an NTFS partition with the recommended block size: Format <DriveLetter>: /q /y /fs:ntfs /v:<VolumeName> /a:64K Format F: /q /y /fs:ntfs /v:VolumeName /a:64K
These instructions are for VMware vSphere ESX 4.x, and they explain how to reformat an existing local VMFS-3 partition on your ESX server, which allows you to change the block size. Note: These instructions do not apply to ESXi 4.x …
A simple PowerShell script that can run on an Exchange 2010 server. This script will send an email report of the Mailbox Database Copy Status for each of your Exchange 2010 servers with the Mailbox Role. Step 01: Define some …
I received a Microsoft virtual machine created with Virtual PC the other day with a guest OS of Windows Server 2008 SP2. The VM needed to be imported into an ESX server, and I used VMware Converter stand-alone to do …