Category: Windows 2008

Increase Maximum Acceptable Message Size in Exchange Server 2010

On Small Business Server 2011 you receive the following event ID in the event log and messages are not retrieved from a POP3 account using the pop3 connector:

 

********************************

Log Name: Microsoft-Windows-Small Business Server/Operational

Source: Windows Small Business Server 2011 Standard
Event ID: 210
Task Category: Windows SBS POP3 Connector
Level: Error

One or more messages (1) were left in the ‘xxxxx@xxxxxxx.com.au’ account on the POP3 server ‘xxxxx.xxxxxxx.com.au’ because they are larger than the maximum acceptable message size (the largest message is 11533705 bytes). You can either connect to the POP3 account and retrieve or delete the messages manually, or increase the maximum acceptable message size in Exchange Server.

********************************

To Fix this you will need to open an Exchange Management Shell and run the following:

get-receiveconnector | select identity,maxmessagesize

As you can see this shows a list of receive connectors on your server. In this case they are currently at 20Mb which I’ve found to be adequate. If yours are lower than this you can change the MaxMessageSize with the following:

set-receiveconnector “Windows SBS Fax Sharepoint Receive SERVER1″ -maxmessagesize 20MB

In this case the command did nothing as the connector was already at 20Mb. Change all three connectors to your desired levels.

Share

Add printer IP port using Powershell

The below will create a TCP/IP printer port using PowerShell:

$server=”servername”
$printerip=”1.1.1.1″
$port = ([WMICLASS]“\\$server\ROOT\cimv2:Win32_TCPIPPrinterPort”).createInstance()
$port.Name=”IP_10.25.128.31″
$port.SNMPEnabled=$false
$port.Protocol=1
$port.HostAddress=$printerip
$port.Put()
$port

To Automate it somewhat you can feed the parameters into it using arguments, you can run the commands using excel and copy into a batch file.

# This script requires 3 paramaters at the command in the form:
# .\CreatePrinterPort.ps1 servername IPAddress PortName
$server=$args[0]
$printerip=$args[1]
$port = ([WMICLASS]“\\$server\ROOT\cimv2:Win32_TCPIPPrinterPort”).createInstance()
$port.Name=$args[2]
$port.SNMPEnabled=$false
$port.Protocol=1
$port.HostAddress=$printerip
$port.Put()
$port

Share

Allow user to write to a folder but not open files from folder

In this situation we needed to allow a student to submit work to a shared drive but the staff didn’t want the student to be able to copy any work from within that folder even their own document.

To do this you need to setup your User/Students file permission for the folder to be the following only:

Traverse folder/execute file

List folder/read data

Create files/write data

Create folders/append data

Write attributes

Write extended attributes

You will need to have your staff group setup with modify permission for this folder for them to be able to clear out the folder periodically.

Note: You can also let the user open/delete files they have uploaded only by adding the “Creator owner” group to the user access list with modify permission.

Share