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

Kathy

Kathy
January 26, 2023
Goodbye RPS: Remote PowerShell Retirement in Exchange Online

Goodbye RPS: Remote PowerShell Retirement in Exchange Online

Prepare for Remote PowerShell retirement in Exchange Online by upgrading to EXO V3 module. Replace New-PSSession and Connect-EXOPSSession connections with Connect-ExchangeOnline cmdlet using REST API. Update scripts before the complete RPS cutoff to maintain Exchange Online management capabilities.

Exchange Online
Kathy
July 28, 2022
Set Language and Time Zone for Office 365 Users using PowerShell

Set Language and Time Zone for Office 365 Users using PowerShell

Set language and time zone for Office 365 mailboxes using PowerShell Set-MailboxRegionalConfiguration cmdlet. Configure regional settings for single users, bulk users via CSV import, or all mailboxes organization-wide. Fix incorrect time zone settings after migration or establish pre-defined regional configurations.

Exchange Online
Kathy
July 14, 2022
How to Increase Mailbox Size in Office 365 using PowerShell

How to Increase Mailbox Size in Office 365 using PowerShell

Increase Exchange Online mailbox size by assigning appropriate licenses or configuring custom storage quotas. Check mailbox usage with Get-MailboxStatistics and adjust IssueWarningQuota, ProhibitSendQuota, and ProhibitSendReceiveQuota settings. Upgrade to Exchange Online Plan 2 for 100GB storage capacity.

Exchange Online
Kathy
July 7, 2022
Add a User to Multiple Distribution Lists in Office 365 using PowerShell

Add a User to Multiple Distribution Lists in Office 365 using PowerShell

Add users to multiple distribution groups in Office 365 using PowerShell with CSV input files. Perform bulk operations to add or remove members across several distribution lists simultaneously. Retrieve all distribution lists a user belongs to for membership auditing and management purposes.

Exchange Online
Kathy
June 30, 2022
List All Office 365 Mailboxes that Forward Emails to a Specific User

List All Office 365 Mailboxes that Forward Emails to a Specific User

Identify all Office 365 mailboxes forwarding emails to a specific user using PowerShell. Locate forwarding configurations before employee departures to redirect mail flows appropriately. Check both ForwardingAddress and ForwardingSMTPAddress properties for comprehensive forwarding rule discovery.

Exchange Online
Kathy
June 23, 2022
Bulk Import Contacts to Office 365 using PowerShell

Bulk Import Contacts to Office 365 using PowerShell

Bulk import contacts to Office 365 Global Address List using PowerShell with CSV files. Create mail contacts for external vendors, customers, and partners to enable distribution group membership. Migrate contacts from non-Exchange mail infrastructure efficiently using New-MailContact cmdlet.

Exchange Online
Kathy
June 16, 2022
How to Add Bulk Users to SharePoint Group using PowerShell

How to Add Bulk Users to SharePoint Group using PowerShell

Add bulk users to SharePoint Online groups using PowerShell with CSV file imports. List all SharePoint groups, retrieve group members, and remove users from groups programmatically. Connect to SharePoint Online PowerShell for efficient site permission management across multiple site collections.

Microsoft 365
Kathy
June 8, 2022
Manage Delegate Access Control on Protected Emails in Outlook using PowerShell

Manage Delegate Access Control on Protected Emails in Outlook using PowerShell

Manage delegate access control on protected emails in Exchange Online using PowerShell. Block or allow delegates from reading IRM-protected messages in delegated mailboxes and shared mailboxes. Use Get-MailboxIRMAccess, Set-MailboxIRMAccess, and Remove-MailboxIRMAccess cmdlets for granular encrypted content access.

Exchange Online
Kathy
June 1, 2022
How to Save Sent Items in Shared Mailbox

How to Save Sent Items in Shared Mailbox

Save sent items in shared mailbox sent items folder instead of personal folders using PowerShell. Enable MessageCopyForSentAsEnabled and MessageCopyForSendOnBehalfEnabled settings to let all delegates view sent email history. Configure through Microsoft 365 admin center or Exchange Online PowerShell.

Exchange Online
Kathy
May 19, 2022
How to Enable or Disable Archive Mailbox in Office 365 using PowerShell

How to Enable or Disable Archive Mailbox in Office 365 using PowerShell

Enable or disable archive mailboxes in Office 365 using PowerShell for additional storage capacity. Configure in-place archiving for single mailboxes, all users, or bulk mailboxes via CSV import. Enable auto-expanding archives for up to 1.5TB storage and manage archive settings through Exchange Online.

Exchange Online

Recent Posts

  • 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
  • How to Block Specific Team members from Communicating with Others
  • Difference Between Root Site, Home Site, and Hub Site in SharePoint

Sign up for M365Scripts

AdminDroid
One tool solution for complete Microsoft 365 Management

Automate, audit, and more in one place.

Get Started for Free