Get-UserPhoto cmdlet may throw UserPhotoNotFoundException

Based on my last Get-userphoto blogpost, if you run the Exchange Powershell then you may get the following error: Error on proxy command ‘Get-UserPhoto -Identity:’CN=svcadmin,OU=xxxx.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=xxxx,DC=xxx,DC=outlook,DC=com” to server xxxx.xxxx.xxx.outlook.com: Server version 15.20.xxxx.0000, Proxy method PSWS: Cmdlet error with following error message: Microsoft.Exchange.Data.Storage.UserPhotoNotFoundException: There is no photo stored here.    at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory,…


Microsoft Office 365–Using Exchange PowerShell to get Users photo from Microsoft Office 365

You can use the Get-UserPhoto cmdlet to view information about the user photos feature that allows users to associate a picture with their account. User photos appear in on-premises and cloud-based client applications, such as Microsoft Outlook Web App (OWA), Lync, Skype for Business, and SharePoint. Please note that, – This cmdlet is available in…


Download Exchange Server 2016 CU 7, Exchange Server 2013 CU 18

On September 19, 2017 we released the Cumulative update 7 for Microsoft Exchange Server 2016 and Cumulative update 18 for Microsoft Exchange Server 2013 as well. Exchange Server 2016 CU 7:Several nonsecurity issues are fixed in this cumulative update or a later cumulative update for Exchange Server 2016.  So the Exchange Server 2016 CU 7…

1

Lets try – Find out how many apps you have installed using PowerShell?

You can check how many apps by using the following Windows PowerShell script. To do this, we can use the Get-StartApps cmdlet to get the names and AppIDs of apps in the Start screen of the current user. An AppID is an AppUserModelID. For more info, you can refer documentation. Let get started. First we…


Exchange throttling: MAPI application fails with error “The information store could not be opened. [MAPI 1.0 – [MAPI_E_LOGON_FAILED(80040111)]]”

We recently resolved a case where a customer tries accessing Exchange Server 2010 mailboxes (DAG) via their custom Exchange MAPICDO based application. On average 2-3 days once, they’re frequently facing an error “The information store could not be opened. [MAPI 1.0 – [MAPI_E_LOGON_FAILED(80040111)]]” while attempting to connect to Exchange server 2010. After some days of…


Exchange PowerShell: How to get list of mailboxes, folders, subfolders, items in folder, foldersize programmatically?

One of my customer automated Exchange PowerShell with his .Net application. They had a requirement to enhance the functionality – to get the list of exchange mailboxes, folders and its sub folders, items in folder, foldersize. Finally it needs to be saved in .csv format.  To implement this, we used Get-Mailbox and Get-MailboxFolderStatistics Exchange cmdlets….

3

PowerShell: Determine Version number, build number and Service Pack of Exchange Server

In my earlier article, we learnt how to get the Exchange Server version, version/build number of Exchange 2003 and it’s earlier. In this, we will see how to get these info & couple of additional info in Exchange Server 2007/2010 using Exchange Management Shell and Exchange Management Console. Using Exchange Management Console: To view the…

2

Exchange Server 2007, 2010: How to query user mailboxes, its permissions using Exchange PowerShell?

In Exchange Server 2007/2010, you can use Exchange PowerShell cmdlets (especially using Get-Mailbox, Get-MailboxPermission, Get-ADPermission, Get-MailboxFolderPermission) to get a verity of info. I played with couple of the below in different scenarios and want to share the same with you – so that you can give a shot and make use of. Scenario # 1:…

2

Admin: How to remove retention policy from Outlook/Exchange?

·To remove retention policy from Outlook: When you remove a retention policy from an email message, the folder policy applies to the item, if one is assigned. 1. In the message list, click a message. (To select more than one message, press and hold CTRL as you click each message.) 2. On the Home tab,…


Exchange Server 2010: Using Test-MapiConnectivity cmdlet

With Exchange Server 2010, recently i used the Test-MapiConnectivity cmdlet. Because it verifies server functionality by logging on to the mailbox that you specify. This cmdlet logs on to the mailbox that you specify (or to the SystemMailbox if you don’t specify the Identity parameter) and retrieves a list of items in the Inbox. Logging…


Exchange Management Shell : Changing DisplayName format “LastName, FirstName”

As we know by default the Display Name of Exchange Mailboxes(Exchange Server 2007 SP2) is in the format of “Firstname Lastname”. I want to change this for the couple of existing mailboxes to “Lastname, Firstname” for one my customer – he preferred non-development stuff!! I tried to do the same using the Exchange Management Shell,…


Customizing OWA 2007 language settings

With the continuation of the previous blogpost, today we’re going to see how we can use Microsoft Office Outlook Web Access or the Exchange Management Shell to configure language settings for Outlook Web Access in Microsoft Exchange Server 2007. Microsoft have provided various options to customize the OWA pages, contents/images/themes in a simpler way. As…

2

Gotcha : PowerShell questions

I composed couple of Windows PowerShell questions: Can you create your own PowerShell object? We can write a Cmdlet, but we have to do that with a .NET Framework language such as C# or VB.NET. Can we create a.BAT file using PowerShell? No. But we can create PowerShell scripts, which have a .PS1 file extension…

1