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
# Variables specific to your environment | |
# Name of Exchange Server, database name, subfolder, default Offline Addressbook | |
$Server = 'VAREX01' | |
$DatabaseName = 'MXDB75' | |
$DatabaseSet = 'DBSet03' | |
$OAB = '\Standard-Offlineadressbuch' | |
# domain controller to use | |
$DomainController = 'vardc01.varunagroup.de' |
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
$domains = Get-AcceptedDomain | |
PS C:\SCRIPTS> $domains | %{Disable-IPv6ForAcceptedDomain -Domain $_.DomainName} |
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 archive mailboxes from database | |
$database = 'MBDB1925' | |
$mbx =Get-Mailbox -Database $database -Archive | ?{$_.ArchiveDatabase.Name -eq $database} | |
# some variable | |
$file = ('e:\Temp\{0}ArchiveUsers.csv' -f $database) | |
$batchName = ('{0}-Archive-Offboarding' -f $database) | |
# prepare batch user CSV file | |
$mbx | Select-Object -Property @{Name = 'EmailAddress'; Expression = {$_.PrimarySMTPAddress}} | Export-Csv -Path $file -Encoding UTF8 -NoTypeInformation |
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
{ | |
"eventAction": "create|delete", | |
"eventData": { | |
"isAllDay": true, | |
"showAs": "busy|oof|free|tentative|workingElsewhere", | |
"isreminderOn": false | |
} |
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 user mailboxes from database MBXDB01 | |
$mbx = Get-Mailbox -Database MBXDB01 | |
# Export fetched mailboxes to CSV | |
# Export using EmailAddress as fixed column header for batch creation | |
$mbx | Select-Object -Property @{Name = 'EmailAddress'; Expression = {$_.PrimarySMTPAddress}} | Export-Csv -Path C:\Temp\MBXDB01Users.csv -Encoding UTF8 -NoTypeInformation | |
# Create new migration batch with automatic start and automatic complete | |
# Distribute mailboxes to target databases MBXDB11, MBXDB12, MBXDB19 | |
# Primary and an exisiting archive |
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
<# | |
.SYNOPSIS | |
This script exports On-Premises Exchange Org and Exchange Online Org configurations to Xml | |
.DESCRIPTION | |
The script exports dat using Export-CLixml to the folder \Output | |
You must create the folder prior to excurting the script. | |
.PARAMETER Environment | |
The envrionment to query, either OnPremises or ExchangeOnline |
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 exports all Exchange security groups that have members | |
# Empty groups are not included in the CSV output. | |
# Your domain DN | |
$Domain = 'DC=varunagroup,DC=de' | |
# Preferred domain controller FQDN | |
$DomainControllerFQDN = 'testms01.varunagroup.de' | |
# Fetch Exchange security groups |
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
# Original source: https://techstronghold.com/scripting/@rudolfvesely/powershell-script-to-get-all-iis-bindings-and-ssl-certificates/ | |
# Updated the script for a sorted output on Exchange Servers | |
Import-Module -Name WebAdministration | |
Get-ChildItem -Path IIS:SSLBindings | Sort-Object Port | ForEach-Object -Process ` | |
{ | |
if ($_.Sites) | |
{ | |
$certificate = Get-ChildItem -Path CERT:LocalMachine/My | |
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
# 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 |
NewerOlder