' This script was originally published in the Exchange Cookbook, ' (http://www.exchangebookcook.com). Written by Paul Robichaux, ' Missy Koslosky, and Devin Ganger. Redistributed with permission ' of the publisher, O'Reilly & Associates. ' This code enables attachment blocking on an OWA 2003 server, ' allowing access only to users who connect to one of the specified FE servers ' ------ SCRIPT CONFIGURATION ------ strOWA = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSExchangeWeb\OWA\" strAllowedFEs = "" ' e.g. "BATMAN SUPERMAN" ' ------ END CONFIGURATION --------- Set objWSH = wscript.CreateObject("WScript.Shell") objWSH.RegWrite strOWA & "DisableAttachments", 2, "REG_DWORD" WScript.echo "DisableAttachments set to disallow access except through FEs" objWSH.RegWrite strOWA & "AcceptedAttachmentFrontEnds", strAllowedFEs, "REG_SZ"