de-DEen-GB
 
rss

Just can't get enough of IT

This blog is about mostly anything in IT. But the primary focuses are Microsoft Technologies like Exchange, Office 365, Azure and Cloud Security.
Last updated: 2016-11-28

Description

The script sends a given number of test email to a configured SMTP host for test purposes (primarily Exchange queues, transport agents or anti-virus engines).

Do not forget to adjust script variables to suit your local Exchange infrastructure.

Examples

# EXAMPLE 1
# Send 10 normal emails
.\Send-TestMail.ps1 -Normal -MessageCount 10

# EXAMPLE 2
# Send an Eicar test email
.\Send-TestMail.ps1 -Eicar

Version History

  • 1.0, Initial community release

Links

Follow

 

Read More »
On October 9, 2014
0 Comment
468 Views

Description

This script reconfigures the IIS log folder to use a different folder instead of the default C:\inetpub\logs folder.

Additionally the log settings can be adjusted as well. The script changes the default log file location and settings on a server level.

By default the settings are inherited by websites. If manual changes have been made on a webite level, not all settings will be inherited.

Examples

Change the IIS log file location to D:\IISLogs

.\Set-Webserver.ps1 -LogFolderPath D:\IISLogs

Change the IIS log period to an hourly period

.\Set-Webserver.ps1 -LogFilePeriod Hourly

Use the local time for filenames and log file rollover

.\Set-Webserver.ps1 -LocalTimeRollover $true

Version History

  • 1.0, Initial community release
  • 1.1, PowerShell hygiene applied, some typo fixes

Links

Script last updated: 2016-07-28

Additional Credits

Additional credits go to Michel de Rooij, https://eightwone.com

Follow

Read More »
On September 15, 2014
0 Comment
739 Views

Exchange and other MTAs use DSNs (Delivery Status Notifications) and NDRs (Non Delivery Reports) to notify the sender or sending MTAs (Message Transfer Agents aka Mail Servers) about the varioius statuses of a given email message. In Exchange those messages are generated primarily by the categorizer component of the transport service.

You can use the New-SystemMessage cmdlet to create new messages. These messages can even be localized and can contain Html tags for properly styled notifications.

From a system perspective the various notifications used are named and fulfill a specific purpose.

Report and receipt types (Exchange Version independent) used for notification

  • Delivery Receipt (DR)

    Report confirming that a message was delivered to its intended recipient​

  • Delivery Status Notification (DSN)​
    Report describing the result of an attempt to deliver a message

  • Message disposition Notification (MDN)​
    Report describing the status of a message after it has been successfully delivered to a recipient. Examples: read notification (RN) or non-read notification (NRN)​
    Defined by RFC 2298 and controlled by Disposition-Notification-To header​

  • Non-Delivery Report (NDR)​
    Report indicating to the message sender that the message could not be delivered to the intended recipients​

  • Non-Read Notification (NR)
    Report indicating that a message was deleted before is was read, when a read receipt was requested​

  • Out Of Office/Facility (OOF)​
    Report indicating that the recipient will not respond to a new message
    OF referes to the Microsoft original term „out of facility

  • Read Notification (NR)
    Report indicating that a message was read

  • Recall Report​
    Report indicating the status of a recall request for a specific recispient​
    A recall request is used when a sender tries to recall a sent message by using Outlook​

Links

 


This post has first been published in my personal legacy blog here.

Read More »

Description

Add remote IP address ranges to an Exchange Server 2013 receive connctor.

Create a new text file containing the new remote IP address ranges

Example:

192.168.1.1
192.168.2.10-192.168.2.20
192.168.3.0/24

The script creates a new sub folder named ReceiveConnectorIpAddresses and saves the currently configured remote IP address ranges first.

While adding the new remote IP address ranges, the script checks, if the new ranges already exist.

Examples

# Add IP addresses from ip.txt to MYCONNECTOR

.\Add-ReceiveConnectorIpAddress.ps1 -ConnectorName MYCONNECTOR -FileName D:\Scripts\ip.txt

.\Add-ReceiveConnectorIpAddress.ps1 -ConnectorName REMOTECONNECTOR -FileName .\ip-new.txt -ViewEntireForest $true

Version History

  • 1.0, Initial community release

Links

Follow

Read More »
On April 21, 2012
0 Comment
1191 Views

When testing the Outlook Anyhwere configuration using the Exchange Remote Connectivity Analyzers (ExRCA) you might encounter the following error message:

Autodiscover settings for Outlook Anywhere are being validated.
ExRCA wasn't able to validate Outlook Anywhere Autodiscover settings.
The AuthPackage wasn't specified in the EXPR section of the Autodiscover response.

ExRCA OutlookAnywhere error

If you encounter this error, you need to verify the following two attriobutes of the Outlook Provider configuration:

  • Server attribute
  • CertPrincipalName attribute

Server Attribute

Remove any dedicated server configuration.

Get-OutlookProvider EXPR | Set-OutlookProvider -Server $null

Now the appropriate CAS FQDN will be used.

CertPrincipalName Attribute

The CertPrincipalName attribute must match the common name (CN) of the SSL certificate. If a wildcard certificate is being used, it is required to configure the CertPrincipalName for the certificate

Set-OutlookProvider EXPR | Set-OutlookProvider -CertPrincipalName msstd:*.mcsmemail.de

 

Links

 


This post had originally been posted at SF-Tools in German language.

Read More »