Script To Get A List Of All Mailboxes Along with All its Email Aliases

Connect to Exchange Online $UserCredential = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://outlook.office365.com/powershell-liveid/ -Authentication Basic -AllowRedirection:$true -Credential $UserCredentialImport-PSSession $Session -DisableNameChecking:$true -AllowClobber:$true | Out-Null Get all Exchange Online users $AllUsers = Get-Mailbox -ResultSize Unlimited Iterate through each user and retrieve email address aliases foreach ($User in $AllUsers) {$UserPrincipalName = $User.UserPrincipalName$PrimarySMTP = $User.PrimarySmtpAddress$EmailAliases = $User.EmailAddresses # Output... Continue Reading →

Email Spoofing

Email spoofing is a common technique used by cybercriminals to send fraudulent emails that appear to come from a trusted source. This practice can put individuals and organizations at risk of falling victim to phishing attacks, malware infections, and other types of cyber threats. To prevent email spoofing, several email authentication protocols such as SPF, DKIM, and DMARC have been developed. These protocols work by verifying the authenticity of the sending domain, checking the content of the email, and enforcing policy-based actions. By implementing these protocols, domain owners can protect their brand reputation, improve email deliverability, and provide a safer email experience for their users.

Script to list The Members of Nested Distribution Groups

Connect to Exchange Online PowerShell $UserCredential = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirectionImport-PSSession $Session Get list of all distribution groups $groups = Get-DistributionGroup -ResultSize unlimited Loop through each group and get its members foreach ($group in $groups) {Write-Host "Group: $($group.Name)"$members = Get-DistributionGroupMember -Identity $group.Name -ResultSize unlimitedforeach ($member in $members)... Continue Reading →

Mailbox Calendars Permissions For All Users

Following power shell commands can be used to get a list of all Exchange user's mailbox calendar permissions. Output will list all users along with the users that have permission to their calendars and also permission level. $Mailboxes = (get-mailbox -database dbname) $Mailboxes | ForEach {Get-MailboxFolderPermission -Identity “$($_.alias):\Calendar” | Select User, Identity, AccessRights} You can... Continue Reading →

Create a website or blog at WordPress.com

Up ↑