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 / 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 / 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 / DesktopShortcuts.ps1
Created May 13, 2020 17:27
SCCM Task Sequence Scripts
reg load HKU\DefaultProfile C:\Users\default\ntuser.dat
New-Item -path "Microsoft.PowerShell.Core\Registry::HKEY_USERS\DefaultProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\"
New-Item -path "Microsoft.PowerShell.Core\Registry::HKEY_USERS\DefaultProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
New-ItemProperty -path "Microsoft.PowerShell.Core\Registry::HKEY_USERS\DefaultProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -PropertyType Dword -Value "0" -force
#New-ItemProperty -path "Microsoft.PowerShell.Core\Registry::HKEY_USERS\DefaultProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -PropertyType Dword -Value "0" -force
#reg unload HKU\DefaultProfile
<#
.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
<#
.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
@azure365pro
azure365pro / CustomRootFolder.ps1
Created May 13, 2020 17:05
Create a Custom root Folder for all the Mailboxes (Bulk) in Office365
[string]$info = "White" # Color for informational messages
[string]$warning = "Yellow" # Color for warning messages
[string]$error = "Red" # Color for error messages
[string]$LogFile = "C:\Temp\Log.txt" # Path of the Log File
function CreateFolder($MailboxName)
{
Write-host "Creating Folder for Mailbox Name:" $MailboxName -foregroundcolor $info
Add-Content $LogFile ("Creating Folder for Mailbox Name:" + $MailboxName)
@azure365pro
azure365pro / ModernExchangeEnvironmentReport.ps1
Created May 13, 2020 17:07
Modern Exchange Environment Report with Health Checks
<#
.Requires -version 2 - Runs in Exchange Management Shell
.SYNOPSIS
.\ModernExchangeEnvironmentReport -
It displays Complete Exchange Environment Information in a modern HTML. It covers only Exchange 2010 or later.
Sample Report can be seen at - http://www.careexchange.in/wp-content/uploads/2015/09/ModernExchangeEnvironmentReport.htm
@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
@azure365pro
azure365pro / Add-DomainController.ps1
Created May 13, 2020 17:24
Active Directory Quick Deployment Scripts
#
# Active Directory Quick Deployment Script
# Adding Domain Controller
#
# One Line has to be Edited
# -DomainName "Enter your Domain Name" `
#
# Note : Sitename is specified as default site name
#
Install-windowsfeature AD-domain-services -IncludeManagementTools
@azure365pro
azure365pro / ExchangeHealth.bat
Created May 13, 2020 17:21
Basic Exchange Server Scripts for Check_mk Monitoring Solution
C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe "C:\scripts\exchangehealth.ps1"