Microsoft 365 Scripts

Microsoft 365 scripts repository

All Posts
News
Security
Microsoft 365
Microsoft Teams
Exchange Online
SharePoint Online
The smarter way to manage Microsoft 365. Try AdminDroid for free!

Microsoft 365 Scripts

m365scripts.com

Browsed by Author

Pavithra

Pavithra
December 26, 2022
Customize Undelivered Message Retry Period in Exchange Online

Customize Undelivered Message Retry Period in Exchange Online

Customize message expiration timeout in Exchange Online to receive earlier non-delivery notifications. Set undelivered message retry periods between 12-24 hours using PowerShell instead of the default 24-hour interval. Enable faster awareness of delivery failures for improved email communication management.

Exchange Online
Pavithra
November 17, 2022
Disable Microsoft Exchange Unnoticed Basic Authentication Protocols in One Go!

Disable Microsoft Exchange Unnoticed Basic Authentication Protocols in One Go!

Disable legacy basic authentication protocols in Exchange Online that remain enabled after admin center configuration. Identify and block unnoticed authentication methods like SMTP Auth using PowerShell. Complete the transition to modern authentication for enhanced security in your Microsoft 365 environment.

Exchange Online
Pavithra
September 29, 2022
Hide Members in Microsoft 365 Groups & Groups from GAL

Hide Members in Microsoft 365 Groups & Groups from GAL

Hide Microsoft 365 group members from non-members using hidden membership settings via PowerShell. Protect sensitive group compositions from Global Address List visibility while maintaining private group functionality. Use HiddenGroupMembershipEnabled parameter when creating unified groups for enhanced privacy.

Exchange Online
Pavithra
August 25, 2022
Enable Litigation Hold in Office 365 Using PowerShell

Enable Litigation Hold in Office 365 Using PowerShell

Enable litigation hold in Office 365 to retain deleted mailbox items and modified email versions for legal investigations. Place time-based or infinite holds on user mailboxes using Exchange admin center or PowerShell. Ensure proper licensing with Exchange Online Plan 2 or Microsoft 365 E3/E5 subscriptions.

Exchange Online
Pavithra
August 11, 2022
Set Office 365 Users’ Password to Never Expire Using MS Graph PowerShell

Set Office 365 Users’ Password to Never Expire Using MS Graph PowerShell

Set Office 365 user passwords to never expire using Microsoft Graph PowerShell for individual accounts. Configure organization-wide password expiration policies through Microsoft 365 admin center or target specific users with Graph cmdlets. Combine non-expiring passwords with MFA for enhanced security without frequent changes.

Microsoft 365
Pavithra
August 4, 2022
How to Set Automatic Out of Office Reply Using PowerShell

How to Set Automatic Out of Office Reply Using PowerShell

Set automatic out-of-office replies for Office 365 users using PowerShell when users fail to configure their own. Configure auto-replies through admin center, Exchange admin center, inbox rules, or PowerShell cmdlets. Schedule OOF messages with specific dates and customize responses for internal and external recipients.

Exchange Online
Pavithra
July 21, 2022
Remove Email Forwarding in Office 365 Using PowerShell

Remove Email Forwarding in Office 365 Using PowerShell

Remove email forwarding rules from Office 365 mailboxes using PowerShell to prevent data leaks. Identify mailboxes with forwarding configurations before removal to avoid disrupting legitimate workflows. Automate forwarding rule cleanup across inbox rules and mailbox forwarding settings with downloadable scripts.

Exchange Online
Pavithra
May 26, 2022
Top 10 Microsoft Graph PowerShell Cmdlets for Office 365 Admins

Top 10 Microsoft Graph PowerShell Cmdlets for Office 365 Admins

Master essential Microsoft Graph PowerShell cmdlets for Office 365 reporting after Azure AD and MSOnline deprecation. Retrieve user reports, license information, and group details using Get-MgUser and related cmdlets. Export Microsoft 365 data to CSV or view in Grid format with filtering capabilities.

Microsoft 365
Pavithra
May 24, 2022
How to Delete Older Emails in Outlook Using PowerShell

How to Delete Older Emails in Outlook Using PowerShell

Delete older emails from Outlook mailboxes using PowerShell to manage storage and improve performance. Remove emails older than specified days through auto-archive, inbox rules, retention policies, or automated scripts. Permanently delete bulk emails from specific folders or across entire mailboxes.

Exchange Online
Pavithra
May 12, 2022
Manage Calendar Permissions in Office 365 Using PowerShell

Manage Calendar Permissions in Office 365 Using PowerShell

Manage Office 365 calendar permissions using PowerShell for organization-wide scheduling visibility. Grant specific permission levels including Reviewer, Editor, and Delegate access to user calendars. Modify default calendar sharing permissions and configure bulk calendar access across the organization.

Exchange Online

Recent Posts

  • How to Find Which Retention Policies Are Applied to SharePoint Sites
  • How to Find and Unpublish Internet Calendars in Microsoft 365
  • Difference Between ‘Sync’ and ‘Add Shortcut to OneDrive’ in SharePoint Online
  • Restrict Private Messaging in Microsoft Teams Using Supervised Chats
  • How to Create and Manage Inbox Rules for Shared Mailboxes in Outlook

Sign up for M365Scripts

AdminDroid
One tool solution for complete Microsoft 365 Management

Automate, audit, and more in one place.

Get Started for Free