Follow-up Flags for additional mailboxes
Environmental Infomation:
Windows 7 Pro 64-bit
Office 2010 SP1
Problem: In a shared mailbox, when the user clicks the flag icon next to an email, the icon does not change. In the preview pane, you can see the follow up status change each time you click.
Problem occurs when user tries to set a follow up flag on a shared mailbox
Problem does not occur for other users accessing the same shared mailbox
Problem does not occur in the users own mailbox
Problem ONLY occurs in this specific mailbox, user has other mailboxes that work as expected
If the user restarts outlook, the icon will display correctly, however if the user clicks on it again, it does not change.
What I've already tried:
Creating a new Outlook profile
Removing the mailbox from the users Outlook, then adding it back
Opening Outlook in Safe Mode
Disabled Offline Use
Disabled Cached Mode
Verified "Download Shared Folders" is disabled
Logged user onto a new computer with a new profile
Thank you,
Zak
MODERATORS: PLEASE DO NOT MARK ANY REPLIES AS AN ANSWER, ONCE A RESOLUTION IS FOUND, I WILL MARK THE ANSWER.
Hi,
Since only one user is affected, please have the user run Outlook in safe mode to determine if it's 3rd party add-ins related:
Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
If the problem persists, we can also disable the local cache of the shared folders to check the result:
Go to File tab -> Account Settings -> Account Settings -> Double click on the account -> More Settings -> Advanced tab -> Uncheck "Download shared folders" -> OK.
I hope this can help.
Regards,
Melon Chen
TechNet Community Support
Similar Messages
-
Outlook Searches for additional mailboxes return irrelevant results
Hi Guys,
I'm running exchange 2010 and have recently installed outlook 2013 pro on a coupla workstations.
I have 2 users who share a ridiculously large mailbox (25GB) and have it configured as an additional mailbox with caching turned off (they run out of memory if they try to cache it as it has a massive amount of folders and MAPI objects (more than 1000))
If I try to use the instant search function to search for a number, for example 12345678901, it will return a large number of completely irrelevant results.
I get the same when I enclose the search in quotes e.g "12345678901" however, if a letter is added like in a reference number, say V3077897P it will find only the relevant information and highlight it within the email.
I've checked all attachments and the entire body of the emails that are returned and can't find my original search term in them anywhere!
As we're a telecoms company my users really need the ability to search for telephone numbers on a regular basis for past correspondence.
Unfortunately this is a system I've inherited and there is little to no chance of changing the working practices to having archive PST files for such a large amount of email.
The problem exists with a couple of machines including a new build so I think I can rule out the client (I've re-indexed, recreated the outlook profile and done everything else I can think of.)
I have also reset the search index catalog on the server using the built in ResetSearchIndex script within exchange 2010 to no avail.
Does anybody have any ideas on where I can go from here?
Many thanks in advance you lovely people.Hi,
Do you have any add-in integrated into Outlook? Please test this issue again within Outlook safe mode to determine if a problematic add-in is the cause. To do this, press Windows key + R to open the Run command, type
outlook.exe /safe and press Enter.
Is the additional mailbox on Exchange 2010? This issue may also occur if Exchange Search is disabled on Exchange Server. Please try to enable the Exchange Search and then check the issue again. See:
http://technet.microsoft.com/en-us/library/aa996416(v=exchg.141).aspx
See a similar problem here:
http://bemis.partners.extranet.microsoft.com/250/_layouts/ArticlePages/DisplayArticlePage.aspx?List=1c9564c2%2D4ddb%2D46c8%2Dab85%2Dac9d9d6b4f3a&ID=226642
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice.
Microsoft does not guarantee the accuracy of this information.
Hope this helps.
Steve Fan
TechNet Community Support -
Separate OST for additional mailboxes opened in Outlook
Thanks, Jason. That's what I did but unfortunately you can't move messages between mailboxes if they're in separate profiles.
Hello, we have a number of users that have additional mailboxes configured within their Outlook profile. Is it possible to have Outlook store the additional mailbox data in different/separate OST Files instead of consolidating all mailboxes into a single OST per Outlook profile?
This topic first appeared in the Spiceworks Community -
Display All Marked / Flagged for Follow Up Emails Separately
Display All Marked / Flagged for Follow Up Emails Separately
I was wondering, is there actually a way to display flagged emails in some sort of folder or separate view at least, as it is common within desktop mail applications and any other user interfaces from free email providers like Gmail, Yahoo!, or AOL and the likes?
It's very complicated and not very user friendly to mark an email for follow up, because you need to decide at what point in the future you want to be reminded. When that day arrives and you're not ready to reply yet, you will have to go through each follow up email again and repeat those steps to re-mark them for a later date. And that is really annoying. Or am I missing something here?
Can't I just simply mark my emails, like, star them in order to review them later and to be able to have a look at them from time to time, just like it is possible in other applications or in your browser?
I have noticed that there is an option to star an email within a Gmail account, but I'm not quite convinced that they sync both ways properly anyway. Also, that feature doesn't come with all email services. For example, how would I star an email in my AOL account?
I understand that BlackBerry is not based on IMAP and therefore has its limitations, however, it would be nice if there was another solution for this, or an explanation at least. It's simply impossible to go through hundreds and thousands of emails in order to find a flagged email.
It's already a pain that the emails themselves won't sync (read/unread) with your desktop and other devices, but do you have any advice or workaround to improve the synchronization of flagging or starring?
I have been using BlackBerrys for many years now, and I really still enjoy them, but the fact that it isn't based on IMAP is a big downside and no longer up to date. Times really have changed.
Another thing: When I mark as follow up, the default time always seems to be 5 p.m. -- probably because the calendar day starts at 9 AM and ends at 5 PM by default. I thought changing the "day ends" option would do the trick and also change the default time for the reminder, unfortunately it isn't. Is there another way to change that, or will I have to set the time manually every time?
Your help is very much appreciated.Display All Marked / Flagged for Follow Up Emails Separately
I was wondering, is there actually a way to display flagged emails in some sort of folder or separate view at least, as it is common within desktop mail applications and any other user interfaces from free email providers like Gmail, Yahoo!, or AOL and the likes?
It's very complicated and not very user friendly to mark an email for follow up, because you need to decide at what point in the future you want to be reminded. When that day arrives and you're not ready to reply yet, you will have to go through each follow up email again and repeat those steps to re-mark them for a later date. And that is really annoying. Or am I missing something here?
Can't I just simply mark my emails, like, star them in order to review them later and to be able to have a look at them from time to time, just like it is possible in other applications or in your browser?
I have noticed that there is an option to star an email within a Gmail account, but I'm not quite convinced that they sync both ways properly anyway. Also, that feature doesn't come with all email services. For example, how would I star an email in my AOL account?
I understand that BlackBerry is not based on IMAP and therefore has its limitations, however, it would be nice if there was another solution for this, or an explanation at least. It's simply impossible to go through hundreds and thousands of emails in order to find a flagged email.
It's already a pain that the emails themselves won't sync (read/unread) with your desktop and other devices, but do you have any advice or workaround to improve the synchronization of flagging or starring?
I have been using BlackBerrys for many years now, and I really still enjoy them, but the fact that it isn't based on IMAP is a big downside and no longer up to date. Times really have changed.
Another thing: When I mark as follow up, the default time always seems to be 5 p.m. -- probably because the calendar day starts at 9 AM and ends at 5 PM by default. I thought changing the "day ends" option would do the trick and also change the default time for the reminder, unfortunately it isn't. Is there another way to change that, or will I have to set the time manually every time?
Your help is very much appreciated. -
How to use Javamail for accessing additional mailboxes -IMAP, Exchange 2010
hi,
I want to access a shared mailbox (NOT FOLDER) via Javamail API (1.4.5) using IMAP(s) with plain logon. The mailserver is a Exchange Server 2010.
User: user1 ([email protected])
pwd: xxxx
shared mailbox: [email protected]
Properties:
mail.imaps.socketFactory.port = 993
mail.imaps.starttls.enable = true
mail.imaps.socketFactory.class = javax.net.ssl.SSLSocketFactory
mail.imaps.socketFactory.fallback = false
username = [email protected]
password = xxxx
I´ve managed to get access to the user1 - mailbox:
Session session = Session.getInstance(properties, new ExchangeAuthenticator(username, password));
session.setDebug(true);
Store store = session.getStore("imaps");
store.connect(imapHost, username, password);
--> this works just fine! But now i want to access the additional mailbox by changing the login-String:
[email protected]/shared_MB (user@domain/additional_MB)
--> unfortunately I´m getting an "NO AUTHENTICATE" message:
DEBUG: setDebug: JavaMail version 1.4.5
DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
DEBUG: mail.imap.fetchsize: 16384
DEBUG: mail.imap.statuscachetimeout: 1000
DEBUG: mail.imap.appendbuffersize: -1
DEBUG: mail.imap.minidletime: 10
DEBUG: trying to connect to host "host.domain.com", port 993, isSSL true
* OK The Microsoft Exchange IMAP4 service is ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
DEBUG IMAP: AUTH: NTLM
DEBUG IMAP: AUTH: GSSAPI
DEBUG IMAP: AUTH: PLAIN
DEBUG: protocolConnect login, host=host.domain.com, [email protected]/shared_MB, password=<non-null>
DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed
DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
javax.mail.AuthenticationFailedException: AUTHENTICATE failed.
I was able to get access with Thunderbird and also with the Exchange OWA-Client, so I think there is something missing in my code...
or is it just impossible to get access to a different mailbox using javamail and plain-auth?
Thank you in advance.Thanks bshannon, that was a great idea!
I haven´t found an solution yet, but I have maybe identified the real problem:
Here is some interessting Thunderbird - Logging stuff:
744[7161040]: try to log in
744[7161040]: IMAP auth: server caps 0x1187235, pref 0x1006, failed 0x0, avail caps 0x1004
744[7161040]: (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4)auth external IMAP login = 0x20000000
744[7161040]: trying auth method 0x1000
744[7161040]: got new password
744[7161040]: IMAP: trying auth method 0x1000
744[7161040]: PLAIN auth
744[7161040]: 7082000:xmail.domain.com:NA:SendData: 2 authenticate plain
744[7161040]: ReadNextLine [stream=7ec9e88 nb=3 needmore=0]
744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: +
744[7161040]: 7082000:xmail.domain.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
744[7161040]: ReadNextLine [stream=7ec9e88 nb=27 needmore=0]
744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: 2 NO AUTHENTICATE failed.
744[7161040]: authlogin failed
744[7161040]: marking auth method 0x1000 failed
---> okay, so PLAIN AUTH is failing.....
744[7161040]: IMAP auth: server caps 0x1187235, pref 0x1006, failed 0x1000, avail caps 0x4
744[7161040]: (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4)auth external IMAP login = 0x20000000
744[7161040]: trying auth method 0x4
744[7161040]: got new password
744[7161040]: IMAP: trying auth method 0x4
744[7161040]: old-style auth
744[7161040]: 7082000:xmail.xmail.domain.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
744[7161040]: ReadNextLine [stream=7ec9e88 nb=23 needmore=0]
744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: 4 OK LOGIN completed.
744[7161040]: login succeeded
--> okay, so Thunderbird is using "old-style IMAP login" and is successful.
Unfortunately I have no idea what that actually means or how to use it in Javamail (is it even supported?). Any suggestions? -
Depreciation for additions to start from the following month
Hi Gurus,
Have situation in depreciation posting, When acquisition happens depreciation has to start from next period on wards (Dep not to post in Acq period) this is working fine and good. (period control maintained as 11 for Acq)
In the same way it has to apply for Additions if any happens for existing Acquisitions. Period control set as next month 11 for additions, but system making the posting in acquisition period itself including catchup of previous periods from oredinary dep starting.
I want make the system to start depreciating dep from the following period rather than acquisition period for Additions and catcup dep also post in this from Ordinary depreciation start date .
Example of Issue:
Acquisitions:
Acquisition happend in Period-01, dep started from next period "02"
This working fine.
Addiotions:
Using the above example
Addition happend in period-05, Dep started from-05 including the catch up dep of periods; 02,03,04,05.
By right the depreciation posting has to starts in the following Perios 06, has to consider Catchup amounts also.
Any help on the above are appreciated most.
Points are available
Thanks in advance,
VyasHi Milosavljevic,
On the above system behaviour is right, but we have to understand like below:
What ever posted the Depreciation amount in the acquissition month it belongs to accumilation depreciation of the addition of asset ( from ordinary dep start date to untill acquissition period).These happend bcoz of catchup, the real depreciation was started from the following month onwards..
Hope this understanding made me clear...
If u able to find any thing better pla keep share..
Others plz comment on this for better understanding.
Thanks,
Vyas -
Additional flag for change pointer needed
i need to store an additional "characteristic flag" for some of the changes made to routings in TC CA02 .....
how can i get the actual CHANGENR of CDHDR/CDPOS to save it somewhere together with my flag for future reporting on routing-changes for this flag ?Hi,
If the chnage document flag is ticked at data element lever automatically chnage pointers will be triggered and u cna seee the changes in table BDCP and status in BDCPS.
Reward ponts if useful.
Regards,
Sasi -
Does anyone know of a way to send a javamail message with a flag that functions similarly to the Outlook flags?
In Outlook:
New Message> Actions> Flag for Follow Up...Flags are specific to the mail store. This means that you cannot send a message and have the flag persist on the remote server.
You can set the "priority" of a message by adding a header but that doesn't mean the client will do anything intersting with it. -
Flagged for follow up emails in my reminders?
The new reminders and flagged email system is great BUT I cannot see flagged emails set as reminders in Outlook to appear in my reminders list. The process is:
- Email is sent out regarding a quote
- Flagged for follow up is created via a rule
- Flagged for follow up email is located in my tasks list in Outlook (Exchange Server)
- Email is flagged in the inbox of my iphone, but the reminder does not appear in my reminders list.
Does anyone have a suggestion for this? I can get the reminder to show up from Outlook if nothing is attached to the reminder.
This is a gab I would really like to close up, because it will become a pain if I don't. I essentially want to create list of emailed quotes to follow up on to appear in my reminders on my phone.
Thanks in advance for any help.
ZacPebbleChamp wrote:
You obviously have never had a job that requires you to be in and out of meetings all day. I can't tell you how many times my phone has gone off in a meeting b/c I forgot to take it out of my pocket and use the switch when the meeting starts (as the presenter it's even more embarrassing). Even worse, times I have remembered to flip the switch, I have forgotten to flip it back after the meeting and end up missing calls for hours since sometimes I don't feel it vibrating.
Yes, I do attend a considerable number of meetings on a daily basis, and I, like EVERY ONE ELSE I KNOW, turns the phone to vibrate or slent during the course of meeting. The fact that you seem to struggle with this may well say more about you than the phone design. Being able to control your phone to prevent disruption is a pretty basic business skill.
The problem isn't that Apple didn't facilitate this feature, but that they lock any other apps out of creating this feature do to limited access to the iCloud Calendar. The only way to get around this is to jailbreak. I shouldn't have to adapt to taking the phone out of my pocket and flipping the switch before and after every meeting; the point of technology is to make life easier. If Apple truly wants to continue becoming the corporate platform of choice, then these types of changes are not "a waste of time and overhead."
Yes, third party apps are locked from a considerable amount of interaction with the other apps and Os functions. It is one of the characteristics of the system that makes it relatively safe from malware and other intrusions. A far more important corporate feature than trying to completely dumb proof a phone.
It wasn't my intent to hijack this thread, but it was obviously your intent based on your thoughtless fanboy comment.
Is your intent to make your self sound ignorant? If so you are succeeding.
Tying back the original post to this same topic, almost every corporate environment relies on Exchange server, so the inability to sync the Outlook flags as reminders in iOS is also a glaring absence. Has no one found a way to solve this?
I am connecting to Exchange and get my flags with no problem, regardless if they are set on Outlook on the PCor in the iOS mail app. Comms team here recently polled everyone using Active Sync on mobile devices and found zero instances of issues with this within my company. That's several thousand users globally. Obviously it isn't a universal issue, and very likely has more to do with Exchange deployments than the operating system on the phones and iPads, probably an issue with Active directory, Active Sync or similar Exchange/IIS function. That means Microsoft is going to need to provide some guidance to Exchange server admins to resolve, and past history would indicate that will be very slow in coming.
In the meantime, there are work arounds such as using dedicated action folders; a third party app that allows settings priority, dues date, etc. within it (Boxer does this); One Note; or applying some basic mail management process (which would be a good idea anyway). -
When deleting emails i get the following error message at times ...The IMAP command “UID COPY” (to Deleted) failed for the mailbox “INBOX” with server error: Error 9. Server error. Please try again later..
Please complete or update your system profile so the users here can properly help you.
Which email client are you using? -
Cannot remove additional mailbox
I gave myself full access rights to a user's mailbox and did what I needed to do using OWA. But now, in my Outlook I have their mailbox and I can't remove it. Their name does NOT appear in 'open additional mailbox'
If I remove full access rights on ESM I can't open the mailbox in Outlook, and if I give myself full access rights again I can. But I can't remove or close it. I tried the REGEDIT HKCU edit and so removed the key with the user's name in it and restarted
Oulktook. The mailbox added itself while I watched.
I deleted my Mail profile then added it back using another profile name. The ^$^%$^$ mailbox still appears.
Any ideas on how to get rid of it?
ThanksIm having the same issue as everyone in here but identical to Abdul Jaleel Maliks issue. I have no one in the list but many in the listBL. When I try to remove them, I get the "Cannot be modified because its owned by the system" error message.
I have done these tow things to try to get rid of that error:
In HKEY_LOCAL_MACHINE\System \CurrentControlSet\Services\NTDS\Parameters, create the following value:
Value name: Allow System Only Change
Data type: REG_DWORD
Value data: 1
Then close the registry and now you should be able to modify through ADSIEDIT .
this did not work. I also tried this:
Login as a member of Schema Admins (preferably on the Schema Master FSMO)
Launch LDP.EXE
Connect to the Schema Master FSMO using LDP.EXE
Bind to the Schema Master using an account with Schema Admin permissions.
From the Browse menu, choose Modify
In the Modify dialog box, leave the DN field blank, and type schemaUpgradeInProgress in the
Attribute field. In the Value field, enter the number 1. Click the Enter button, then click the Run button.
Close the Modify dialog box.
Launch ADSIEDIT.MSC and modify the mAPIID values for the necessary attributes . (You may need to wait for the Active Directory to replicate.)
Run LDP again, and change the value of schemaUpgradeInProgress from 1 to 0.
From the Active Directory Schema console, right click on the console and choose "Reload the Schema"
During this, i tired to edit the values of the ListBL attribute and it gave a database error and the a schema error.
Any thoughts on this would be greatly appreciated -
Hi,
Is there any way to track or find out the flag status details?
e.g. email flags time, when enable for flag?
Our user encounter email flag for follow up itself.
Is that any possibility on corrupted?Hi,
Sorry for the delay. I haven't found a way to check when a message is flagged for follow up.
However, there are some reasons that messages get flagged itself.
Please first make sure the user didn't create any rule to flag emails automatically.
In addition, the sender can also flag emails for the recipient. When the message is flagged by the sender, it will display an icon after the email (in Outlook 2013).
If you installed any third-party add-in which may affect Outlook behavior, please disable it to check if the problem still persists.
Best Regards,
Steve Fan
TechNet Community Support -
Online Archive for Shared Mailbox Shows Main Mailbox SMTP Address, Not Shared Mailbox
First off, we are running Exchange 2010 with Outlook 2010. Exchange is running SP3UR5 and is stable. Outlook has the latest updates.
We have archive mailboxes on all our production mailboxes. We automatically archive items older than two years into these. We have several colleagues who have access to one or more shared mailboxes, who had no issues when they were using a Windows
XP workstation. However, when they were moved to our Windows 7 systems, their archive folders all show their primary mailbox SMTP address. If you click on a folder in the archive mailbox, the search bar shows the correct mailbox name. And to confuse
things just a little bit more, the primary mailbox for these shared mailboxes shows the correct name. Has anyone else seen this, and, more importantly, does anyone know of a solution? TIA ...Hello Willard,
As Andy mentioned, this issue is a known issue which resolved in Exchange 2010 SP3 RU2. I know we are currently running Exchange 2010 SP3 RU5, however to resolve
the issue, we need to install hotfix for Outlook clients as well. Please refer to the following hotfixes for Outlook 2010 and 2013:
Note: Exchange 2010 SP3 Ru2 or later will update the “OwnerSmtpAddress”
for all alternate mailbox. And before applying the following Outlook hotfix, we should have RU2 installed first.
Outlook 2010 hotfix:
Description of the Outlook 2010 hotfix package (Outlook-x-none.msp): August 13, 2013
http://support.microsoft.com/KB/2817574
Issue description: You connect to Microsoft Exchange Server 2010 mailbox
by using Microsoft Outlook 2010. When you enable the feature that lets you view the online archive of a manager in Outlook 2010, two online archives that have the same name are displayed. To resolve this issue, you must also have Exchange Server 2010 Service
Pack 3 (SP3) Update Rollup 2 installed
Outlook 2013 hotfix:
Description of the Outlook 2013 hotfix package (Outlook-x-none.msp): August 13, 2013
http://support.microsoft.com/kb/2817503
Issue description: When you enable the feature to see the online archive
of the manager in Outlook 2010, two online archives that have the same name are displayed.
After apply both update for Exchange server and Outlook client, the issue will be resolved accordingly. And I recommend to install the latest updates for Outlook
clients:
Title: How to install the latest applicable updates for Microsoft Outlook (US English only)
Link:
http://support.microsoft.com/kb/2625547
Moreover, the issue will affect the “auto-mapping” archive mailboxes, since the issue only affect few users, please check the differences on the Outlook client side,
and make sure the version and patches/updates are the same. If needed, we can first remove the auto-mapping full access permission, then re-add non-auto-mapping full access permission, at last, add
additional mailbox from Outlook manually, thus it will not diplay same name for the archive mailbox we access.
Remove the full access permission:
Remove-MailboxPermission –Identity “Shared_mailbox” –User “affected_user_mailbox” –AccessRights FullAccess
2.Re-add the full access permission with non-auto-mapping:
Add-MailboxPermission -Identity “Shared_mailbox”
-User “affected_user_mailbox”
-AccessRight FullAccess -InheritanceType All -Automapping $false
3. Then on the affected user mailbox outlook side,
add additional mailbox manually.
Please refer to above information and if anything unclear, feel free to let me know.
Regards, Eric Zou -
IMAP setting flags for DSN message problem
Hi,
I have a question about processing DSN flags using Java Mail.
We are trying to set SEEN and FLAGGED flags also for DSN messages (for any other messages it is working perfectly fine).
The problem is that no flags are set, no IMAP commands are issued.
For any 'normal' messages the IMAP command is issued (for example: A27 STORE 13 +FLAGS (\Seen)).
We are using Exchange Server 2007 with IMAP support enabled on the mailbox.
The strange thing is that i can manualy set SEEN and FLAGGED flags from Outlook on this DSN message and then print flags for this message from Java Mail.
Is there any standard for FLAG processing for DSN messages? Is this a problem in Java Mail / Exchange or some limitation? As I believe DSN in also a javax.mail.Message from the implementation point of view...
RegardsHi Bill,
This was a good point, about calling setFlags method on the wrong message.
The problem is because, we are dealing with Exchange bug described here:
BODYSTRUCTURE with "multipart" "signed" not parsing
and using workaround described here:
http://www.oracle.com/technetwork/java/faq-135477.html#imapserverbug
However, we were setting flags on message created using following code
SharedByteArrayInputStream bis = new SharedByteArrayInputStream(bos.toByteArray());
MimeMessage cmsg = new MimeMessage(session, bis);not on original message from the mailbox.
Regards -
Speeding up the Get-MailboxStatistics cmdlet for ~19K mailboxes.
Greetings,
While this is partially a PowerShell scripting question, I am posting it in the Exchange 2010 forum because the issues I believe center around the Get-MailboxStatistics itself, and the speed of my scripts in Exchange 2010 (possibly
due to the additional overhead in remote PowerShelling).
In my Exchange 2010 system we have ~19,000 mailboxes spread accross multiple DAG nodes, and ever since we upgraded from Exchange 2007 to Exchange 2010, gathering all of the mailboxes and then gathering their statistics takes almost
twice as long. For example a script that used to take ~45 minutes in Exchange 2007, takes about an hour and a ½.
The issue I am running into when clocking core aspects of a mailbox data gathering scripts is that the Get-MailboxStatistics seems to be taking an excessively long period of time, and I am hoping someone can help me figure out a
way to speed up the process.
For example this is a boiled down script I created, where I ripped out a ton of other things and just focused on the Get-Mailbox and Get-MailboxStatistics commands:
$BaseOU
=
"Customers"
# Capture the date and time in a variable using the "Fri 11/01/2010 6:00 AM" format.
$DateTime
=
Get-Date
-Format
"ddd MM/dd/yyyy h:mm tt"
# Select a single domain controller to use for all the queries (to avoid mid AD replication inconsistencies)
from the environment variable LOGONSERVER - this ensures the variable will always be dynamically updated.
$DomainController
= ($Env:LogonServer).Substring(2)
# Set the loop count to 0 so it can be used to track the percentage of completion.
$LoopCount
= 0
# Start tracking the time this script takes to run.
$StopWatch1
=
New-Object
System.Diagnostics.Stopwatch
$StopWatch1.Start()
# Get the mailbox info for all IHS customer mailboxes.the storage limit is Prohibit send or mailbox disabled
Write-Host
-ForegroundColor
Green
"Beginning mailbox gathering. In a short while a progress bar will appear."
$GatheredMailboxes
=
Get-Mailbox
-ResultSize:Unlimited
-OrganizationalUnit
"ADDomain.com/$BaseOU"
-DomainController
$DomainController |
Select Identity,DisplayName,ProhibitSendQuota
Write-Host
-ForegroundColor
Green
"Mailbox data gathering is complete."
$StopWatch1.Stop()
$StopWatch2
=
New-Object
System.Diagnostics.Stopwatch
$StopWatch2.Start()
Foreach ($Mailbox
in
$GatheredMailboxes) {
# Show a status bar for progress while the mailbox data is collected.
$PercentComplete
= [Math]::Round(($LoopCount++
$GatheredMailboxes.Count
* 100),1)
$CurrentMBDisplay
=
$Mailbox.DisplayName
Write-Progress
-Activity
"Mailbox Data Gathering in Progress"
-PercentComplete
$PercentComplete
`
-Status
"$PercentComplete% Complete"
-CurrentOperation
"Current Mailbox: $CurrentMBDisplay"
#Get the mailbox statistics for each mailbox gathered above.
$MailboxStats
=
Get-MailboxStatistics
$Mailbox.Identity |
Select StorageLimitStatus,TotalItemSize
# Proceed only if the the mailbox statistics show the storage limit is Prohibit Send or Mailbox Disabled.
# Write-Host "Stats for"$Mailbox.DisplayName"are Limit ="$MailboxStats.StorageLimitStatus"and Size ="$MailboxStats.TotalItemSize.Value.ToMB()"MB."
# Calculate the amount of time the script took to run and write the information to the screen.
$StopWatch2.Stop()
$ElapsedTime
=
$StopWatch1.Elapsed
Write-Host
"he mailbox gathering took"
$ElapsedTime.Hours
"hours,"
$ElapsedTime.Minutes
"minutes, and"
$ElapsedTime.Seconds
`
"seconds to run."
$ElapsedTime
=
$StopWatch2.Elapsed
Write-Host
"The foreach loop took"
$ElapsedTime.Hours
"hours,"
$ElapsedTime.Minutes
"minutes, and"
$ElapsedTime.Seconds
`
"seconds to run."
Using the two stop clocks, I was able to see that the Get-Mailbox of all mailboxes took ~9 minutes. That isn’t lightning fast, but it isn’t unreasonable.
The issue comes in where the Foreach loop with the Get-MailboxStatistics took ~53 minutes, and I am sure some of the mailbox data was cached on the servers from my various tests so it would probably take even longer with a cold
run.
I did some digging around and I really couldn’t find anything on how to speed up the Get-MailboxStatistics, and the only thing I found was this link:
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/9ceefddd-7a59-44ec-8fc0-8de244acb58b
However I am not clear on how moving the Get-MailboxStatistics into the Get-Mailbox syntax (which is odd to me in general) would speed things up if I still have to have a foreach loop to process the data a little bit and add the
users to a datatable. That discussion also made think the foreach loop itself is slowing things down but unclear as to how/why if that is true.
Can someone help share some ideas on how to speed up this process? I think there are some other things I could try but I can’t think of them.
Thank you in advance.I think it's impossible to speed up the Get-MailboxStatistics when it is being called for each and every mailbox individually.
I read somewhere in other posts people were having better performance by calling the cmdlet against an entire database or server so I gave it a shot with this code:
$DAGS = "EXCHDAG1"
# Start tracking the time this script takes to run.
$StopWatch = New-Object System.Diagnostics.Stopwatch
$StopWatch.Start()
$MailboxStatistics = New-Object System.Data.DataTable “MailboxStatistics”
$MailboxStatistics.Columns.Add("TotalitemSize",[String]) | Out-Null
$MailboxStatistics.Columns.Add("ItemCount",[String]) | Out-Null
$MailboxStatistics.Columns.Add("LastLogonTime",[String]) | Out-Null
$MailboxStatistics.Columns.Add("LastLogoffTime",[String]) | Out-Null
$MailboxStatistics.Columns.Add("MailboxGUID",[String]) | Out-Null
$MailboxStatistics.PrimaryKey = $MailboxStatistics.Columns["MailboxGUID"]
ForEach ($DAGServer in (Get-DatabaseAvailabilityGroup $DAGS).Servers) {
ForEach ($MailboxStats in (Get-MailboxStatistics -Server $DAGServer.Name | Where {$_.DisconnectDate -eq $Null})) {
$NewMBXStatsDTRow = $MailboxStatistics.NewRow()
$NewMBXStatsDTRow.TotalitemSize = $MailboxStats.TotalItemSize
$NewMBXStatsDTRow.ItemCount = $MailboxStats.ItemCount
$NewMBXStatsDTRow.LastLogonTime = $MailboxStats.LastLogonTime
$NewMBXStatsDTRow.LastLogoffTime = $MailboxStats.LastLogoffTime
$NewMBXStatsDTRow.MailboxGUID = $MailboxStats.MailboxGuid.ToString()
$MailboxStatistics.Rows.Add($NewMBXStatsDTRow)
$StopWatch.Stop()
$ElapsedTime = $StopWatch.Elapsed
Write-Host "The script took" $ElapsedTime.Hours "hours," $ElapsedTime.Minutes "minutes, and" $ElapsedTime.Seconds `
"seconds to run."
Here are the results in speed:
The script took 0 hours, 3 minutes, and 13 seconds to run.
So yeah... ~3 minutes versus ~1 hour, I would say that's an improvement.
Now I will go back to my script and as I process each mailbox I will pull it's statistics information out of the DataTable using its GUID with:
If ($MailboxStats = $MailboxStatistics.Rows.Find($Mailbox.MailboxGUID)) {
# Insert mailbox statistics processing here using the $MailboxStats variable with "." extensions.
} Else {
# Mailbox statistics weren't found so go grab them individually as a backup mechanism for scenarios when a user's mailbox got moved out of the DAG to a non-DAG database for whatever reason.
It's a little silly that I have to extract the information out of each DAG server and put it in an in-memory table just to speed this process up, but clearly there is overhead with the Get-MailboxStatistics cmdlet and grabbing more mailboxes at once helps
negate this issue.
I'm going to mark my own response as an answer because I don't think anyone else is going to come up with something better than what I put together.
Maybe you are looking for
-
Hi all, I am converting my smartform to pdf output using convert_otf; i have no issues here. After generating pdf i need pdf document to be higher than 1.4(open pdf file>File>Properties..here you see pdf producer(which is SAP r/3 release 6.40) and pd
-
No books category under my libraries, do i need to download a book first to have that
I am currently trying to add some company books to my ipad and currently i am up to date with itunes version and it is not showing me a books tab under my libraries. Do i have to purchase a book first to get that category before adding my free compan
-
Spry Accordion has suddenly stopped working
I have used Spry accordion on a website created 7 months ago. For seven months, it has worked just fine... all panels are closed when the page is accessed, then one can be opened at a time. In the last day or two, the panels have stopped working... a
-
Can't use keyboard with google voice after 1.3.1 update
Prior to 1.3.1, when I received a call via Google Voice, when prompted with the option to "1 take the call, 2 send to voicemail etc" I could just slide out the keyboard and hit which ever number I wanted. Now, (after 1.3.1) the keyboard seems unrespo
-
Employee resposnsibles Org unit Determination (Employee is assigned to Org Unit)
Hi , We want to determine Org unit based on employee responsible but not on basis of USER. Employee responsible will be assigned to a particular position in Organization . We want to determine Organization unit where Employee is assigned . When in tr