Disabling Dynamics CRM Admin Mode via Powershell
I needed to Disable one of our CRM instances Admin Mode, I hit the Power Platform Admin Pages, it redirected me to Classic Dynamic 365 Administrator Center, clicked “Admin” for the Instance, it redirected me to Power Platform again and I started to get login error after a few browsers redirects between MS sites, it […]
Dynamic CRM Administration Center – No Instances Error
If you get “Request not processed There are no instances to display, your organization has not provisioned any instances at this time. Please check again later. ” error while you are expecting to see Dynamic CRM 365 Instances in the Dynamic 365 Administrator Center and if you opened Dynamic 365 Administrator Center via Office 365 […]
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.
# 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
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 […]