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 »