Skip to content

Instantly share code, notes, and snippets.

View azure365pro's full-sized avatar
🎯
Focusing

Satheshwaran Manoharan azure365pro

🎯
Focusing
View GitHub Profile
@azure365pro
azure365pro / FileServerFolder.ps1
Created May 13, 2020 17:02
File Server Folder Creator with Groups and Permissions
<#
.Requires -version 2 - Runs in Exchange Management Shell
.SYNOPSIS
.\FileServerFolder.ps1 - Creates Folder and Applies Standard Permissions for enterprise Environment.
.Author
Written By: Satheshwaran Manoharan
@azure365pro
azure365pro / DiscoverySearchSimplified.ps1
Created May 13, 2020 16:58
Discovery Search Simplified Script to Delete Specific Mails from Org
#Requires -version 2
<#
.SYNOPSIS
DiscoverySearchSimplified.ps1 - It Can Check for Required Permissions to do a Discovery Search
1.Check for Discovery Search Permissions
It will ask for the User Alias, Checks the User is a member of "Discovery Management" Role Group
2.Check for Mailbox Import Export Permissions
@azure365pro
azure365pro / Change_UPN_equals_Email.ps1
Created May 13, 2020 16:55
Change User Principal Name equals Email Address Automation
# NOTE : Before running the script run below commands to check which are the mailboxes it will apply to
# Get-Mailbox -ResultSize Unlimited | Where-Object {$_.Primarysmtpaddress -ne $_.UserPrincipalname}
# Get-Mailbox -ResultSize Unlimited | Where-Object {$_.Primarysmtpaddress -ne $_.UserPrincipalname} | ForEach-Object {Set-Mailbox $_.identity -UserPrincipalName $_.Primarysmtpaddress -whatif}
# Include Exchange Powershell Module
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
@azure365pro
azure365pro / RemoveExchangeattributes.ps1
Last active February 27, 2024 01:04
Remove Exchange Attributes using PowerShell
#Requires -version 2
<#
.SYNOPSIS
RemoveExchangeAttributes.ps1 - It Will Remove Exchange Attributes from Active Directory Accounts
Caution : Mailbox Will Go Disconnected and Exchange Attributes will be Removed"
.DESCRIPTION
@azure365pro
azure365pro / MailboxSizeReport.ps1
Created May 13, 2020 16:37
Export all the Mailbox Size with Item Count,Database,Server Details
<#
.Requires -version 2 - Runs in Exchange Management Shell or Open Powershell and Connect to Office365
.SYNOPSIS
.\MailboxSizeReport.ps1 - It Can Display all the Mailbox Size with Item Count,Database,Server Details
Or It can Export to a CSV file
Or You can Enter WildCard to Display or Export
<#
.Requires -version 2 - Runs in Exchange Management Shell
.SYNOPSIS
.\DistributionGroupMemberReport.ps1 - It Can Display all the Distribution Group and its members on a List
Or It can Export to a CSV file
<#
.Requires -version 2 - Connect-MicrosoftTeams and then Run the script in Powershell
Updated on 28 Feb 2021
.SYNOPSIS
.\TeamsChannelMemberReport.ps1 - It Can Display all the Teams and its Channels and its members on a List
Or It can Export to a CSV file
With Export of Specific teams