This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update the User Principal Name for all User Objects | |
$CustomDomain = "mcsmemail.de" | |
# Add custom domain as suffix first | |
Get-ADForest | Set-ADForest -UPNSuffixes @{add=$CustomDomain} | |
# Update all user objects | |
Get-ADUser -Filter * -Properties SamAccountName | ForEach-Object { Set-ADUser $_ -UserPrincipalName ($_.SamAccountName + "@$($CustomDomain)" )} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script clears the legacyExchangeDN attribute of AD objects if the attribute is set to ADCDisabledMail | |
# Active Directory search base, adjust as needed for your AD | |
$SearchBase = 'DC=VARUNAGROUP,DC=DE' | |
# Our search filter | |
$Filter = 'legacyExchangeDN -eq "ADCDisabledMail"' | |
$csvFilename = 'ADCDisabledMail-Users.csv' | |
# Search for user objects matching the filter in the defined search base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
load_module modules/ndk_http_module.so; | |
load_module modules/ngx_http_lua_module.so; | |
load_module modules/ngx_stream_lua_module.so; | |
load_module modules/ngx_http_headers_more_filter_module.so; | |
events { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Number of user accounts to create | |
$UserCount = 5 | |
$RandomPassword = $true | |
$DefaultPassword = 'Pa55w.rd' | |
# User name prefix | |
# New user object will be named TestUser1, TestUser2, ... | |
$TestUserPrefix = 'TestUser' | |
# User object properties | |
$GivenName = 'Test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name of the on-premises SMTP gateway | |
$GatewayName = 'NoSpamProxy' | |
# TLS certificate common name for incoming connection to EOP | |
$InboundTlsCN = 'smpto.varunagroup.de' | |
# TLS certificate common name for outgoing connection to EOP | |
$OutboundTlsCN = 'smpto.varunagroup.de' | |
# Fully qualified domain name (FQDN) of the on-premises SMTP gateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AttachmentModify | |
// ---------------------------------------------------------- | |
// Example for intercepting email messages in an Exchange 2010 transport queue | |
// | |
// The example intercepts messages sent from a configurable email address(es) | |
// and checks the mail message for attachments have filename in to format | |
// | |
// WORKBOOK_{GUID} | |
// | |
// Changing the filename of the attachments makes it easier for the information worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fetch all mail users | |
$DomainNameFilter = '*varunagroup.de' | |
Get-MailUser -ResultSize Unlimited | ?{$_.ExternalEmailAddress -like $DomainNameFilter} | Sort-Object DisplayName | Select-Object DisplayName, PrimarySmtpAddress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# New B2B user email address | |
$newEmailAddress = "user@setebos-ag.com" | |
# Update primary SMTP address for a selected user | |
$B2BUserToUpdate = 'USER_varunagroup.de#EXT#' | |
Set-MailUser $B2BUserToUpdate -ExternalEmailAddress "SMTP:$newEmailAddress" -WindowsEmailAddress $newEmailAddress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get EXO mailboxes by size | |
Get-ExoMailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Get-ExoMailboxStatistics | Sort TotalItemSize -Descending | Format-Table DisplayName, TotalItemSize, ItemCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Version] | |
Signature="$Windows NT$" | |
[NewRequest] | |
Subject = "CN=mail.varunagroup.de,OU=IT,O=Varunagroup AG,L=Berlin,S=BE,C=DE" ; Remove to use an empty Subject name. | |
Exportable = TRUE ; TRUE = Private key is exportable | |
KeyLength = 2048 ; Valid key sizes: 1024, 2048, 4096, 8192, 16384 | |
KeySpec = 1 ; Key Exchange – Required for encryption | |
KeyUsage = 0xA0 ; Digital Signature, Key Encipherment |
OlderNewer