Meeting Request Do Not Automatically Accepted By On-Prem Rooms In Hybrid Exchange Structure
During a migration from an on-premises Exchange environment to Exchange During a migration from an on-premises Exchange environment to Exchange Online, I found an issue where meeting requests for a room mailbox were not accepted automatically. This only happened with users who were migrated. After logging in onto a room mailbox, I found this error: […]

Idle Session sign-out policy for SharePoint and OneDrive for Business
Session lifetimes are an important part of authentication for Office 365 and are an important component in balancing security and the number of times users are prompted for their credentials. Idle session sign-out lets you specify a time at which users are warned and subsequently signed out of Office 365 after a period of browser […]

Get mailbox folder statistics from Exchange Online / Office 365
This short and simple example shows how to connect to Exchange Online services to get mailbox folder statistics from Exchange Online / Office 365 via PowerShell. Hope it helps.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# Sample PS to connect Exchange Online and to get mailbox and inbox folder item count. # Osman Shener # Get Credentials for Office 365 $Creds = Get-Credential # Connect to Office 365 services Import-Module MSOnline Connect-MsolService –Credential $Creds # Create session to Exchange Online $EOSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $Creds -Authentication Basic -AllowRedirection Import-PSSession $EOSession -DisableNameChecking # The mailbox owner $TheUser = "Osman Shener" # Get total item count in the mailbox (all items) $TotalItemsCount = Get-MailboxStatistics -Identity $TheUser # Get total item count in the Inbox folder $InboxItemsCount = Get-MailboxFolderStatistics -Identity $TheUser -FolderScope Inbox # Print the results $TheUser + " has " + $TotalItemsCount.ItemCount + " items in the mailbox, " + $InboxItemsCount.ItemsInFolder + " of them are in the Inbox folder." |
Notes: For Office 365 operated by 21Vianet, use the ConnectionUri value: https://partner.outlook.cn/PowerShell For Office 365 Germany, use the ConnectionUri value: Be sure to disconnect the remote PowerShell session when you’re […]

Bulk Change Office 365 accounts UPN / Sign-in Names
If you synced your on-premises Active Directory (AD) without setting your users UPN attribute to use their email addresses or the custom domain you added to Azure AD, your users will have Office 365 usernames like [email protected] Changing the logon domain from the on-prem AD user settings will not help for existing users, but it […]

Set a user’s password to never expire on Office365
If you need to set a user’s password to never expire on your Office 365, you need to do that with PowerShell. And it is really easy. We save our credentials to a variable called $creds, running this command will open a Sign in to your account windows, so sign in with your Office 365 […]