Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Satheshwaran Manoharan azure365pro

🎯
Focusing
View GitHub Profile
@azure365pro
azure365pro / DesktopShortcuts.ps1
Created May 13, 2020
SCCM Task Sequence Scripts
View DesktopShortcuts.ps1
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
@azure365pro
azure365pro / Add-DomainController.ps1
Created May 13, 2020
Active Directory Quick Deployment Scripts
View Add-DomainController.ps1
#
# 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
Basic Exchange Server Scripts for Check_mk Monitoring Solution
View ExchangeHealth.bat
C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe "C:\scripts\exchangehealth.ps1"
@azure365pro
azure365pro / AddresslistMemberReport.ps1
Created May 13, 2020
Export all Address list and all its members in Exchange Server
View AddresslistMemberReport.ps1
<#
.Requires -version 2 - Runs in Exchange Management Shell
.SYNOPSIS
.\AddresslistMemberReport.ps1 - It Can Display all the Address list and its members on a List
Or It can Export to a CSV file
@azure365pro
azure365pro / CreatingCustomMailboxes.Ps1
Created May 13, 2020
Create Bulk Mailboxes in Random for Lab Purposes or Student Exams in Exchange Server
View CreatingCustomMailboxes.Ps1
<#
-Creating Custom Mailboxes for Lab Purposes
I created a simple Script with a Loop
-So You Enter a Number of mailboxes you want
-Also You enter how the Mailboxes name should start with
@azure365pro
azure365pro / AuthoritativeDomainList.ps1
Created May 13, 2020
Export Authoritative Domains and its Respective OU's List (Hosted Environment)
View AuthoritativeDomainList.ps1
csvde -f C:\OUTempDump.csv -r "(objectclass=organizationalunit)"
$OUdump = Import-CSV C:\OUTempDump.csv
$report = @()
$auths = Get-AcceptedDomain | Where-Object{$_.DomainType -eq 'Authoritative'}
Foreach($Auth in $auths)
{
$Members = $OUdump | Where-Object{$_.upnsuffixes -like "*$auth*"}
@azure365pro
azure365pro / CreateCustomRoleGroup.ps1
Created May 13, 2020
Creating Custom RBAC Role to Enable Inbox Rules in OWA (Hosted Environment)
View CreateCustomRoleGroup.ps1
#Requires -version 2
<#
.SYNOPSIS
CreateCustomRoleGroup.ps1 - Creates Customized Role where members can access Rules Via OWA
.DESCRIPTION
Creates Management Role,Gets the Created Role into the Role Group
.OUTPUTS
Results are output to the PowerShell window.
@azure365pro
azure365pro / CustomRootFolder_Exch2010.ps1
Created May 13, 2020
Create a Custom root Folder in all the Mailboxes (Bulk) in Exchange 2010
View CustomRootFolder_Exch2010.ps1
[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
Modern Exchange Environment Report with Health Checks
View ModernExchangeEnvironmentReport.ps1
<#
.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 / CustomRootFolder.ps1
Created May 13, 2020
Create a Custom root Folder for all the Mailboxes (Bulk) in Office365
View CustomRootFolder.ps1
[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)