What personal retention tag is applied to folders

I am trying to use the code below to view the retention tags applied to folders in a given user's mailbox:
http://blogs.msdn.com/b/akashb/archive/2013/06/14/generating-a-report-which-folders-have-a-personal-tag-applied-to-it-using-ews-managed-api-from-powershell-exchange-2010.aspx
My environment:
2 x Exchange 2010 SP3 RU8v2 servers with CA, MB and HT roles. They are in a DAG.
1 x KEMP VLM-200 load balancer.
I downloaded and installed the EWS managed API:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=35371
And I have seen what seems like every imaginable error message:
- The response received from the service didn't contain valid XML.
--> So I changed DNS so the URI in the script would connect directly to one of the two Exchange servers - and not the KEMP. Other solutions did not seem to work. This is a test env so I can "mess" with DNS.
- The request failed. The remote server returned an error: (403) Forbidden.
--> I think I solved this by adding https to the URI (the s in https was missing).
- The request failed. The remote server returned an error: (401) Unauthorized.
--> Not sure what I did here anymore (this has been taking me literally hours). But this error was replaced with the following:
- The account does not have permission to impersonate the requested user.
--> I was able to apparently solve this by granting a brand new user (not member of any admin groups with Deny permissions) the permissions described in this article:
https://msdn.microsoft.com/en-us/library/bb204095%28v=exchg.80%29.aspx
Even though that is for Exchange 2007 and I have 2010.
That seemed to work because that error messages no longer appears but... now this one appears again:
- The request failed. The remote server returned an error: (401) Unauthorized.
I've tried after granted the new user full permissions to the mailbox in question and without those permissions.
So in the end, I'm going in circles and I don't know how to make this work.
How can I see WHY the user is not authorized?
Does the user have to be a member of specific groups? I intentionally did NOT add them to any admin type groups because of what was stated in the MSDN article on impersonation (some admin groups have DENY permissions on user mailboxes).
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

These are the only lines of the code I have edited:
# Set the Credentials
$service.Credentials = new-object Microsoft.Exchange.WebServices.Data.WebCredentials("newuser1","Passwordabc123","mydomain.lan")
# Change the URL to point to your cas server
$service.Url= new-object Uri(https://mail.mydomain.net/EWS/Exchange.asmx)
I have also tried:
$service.Credentials = new-object Microsoft.Exchange.WebServices.Data.WebCredentials([email protected],"Passwordabc123")
Yes, I have mydomain.lan (original domain name) and mydomain.net (for email).
For better or worse, newuser1 is only a member of domain users (but currently has full access permissions to target mailbox).
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

Similar Messages

  • Displaying assigned retention tag/policy in Outlook 2013 Inbox default vies

    Hi,
    I don't know if this is the right place to post this questions. If it is not please forgive me and direct me to the right forum. I know that I can check if the email message has a retention tag/policy applied if I open it in Inspector window. It is
    listed under subject.
    My problem is that I don't know the way how to display the retention tag/policy in the Inbox default view next to the the properties like: subject, from, received etc. So the users don't need to open the message to check if they applied the retention tag.
    This way they can look at every message in the inbox and see which message has the retention tag missing.  I assume I will have to employ some coding and I am OK with that.
    Can I write a outlook add-in that will query for retention tag for each message and display it in the column along with other mapi properties? I need a advice example how to programmatically extract the PR_POLICY_TAG and convert it from binary to string.
    Than I can change the default view xml to include this property I assume.
    Any help is greatly appreciated.
    Thanks,
    Goran

    If an item has been tagged for retention then they will be available you can see this using a Mapi editor like MFCmapi or OutlookSpy. The PolicyTag would only give you the GUID of the policy and you would have to pull the Name from the UserConfig item in
    the mailbox which can be little more complicated.  With CFG file's there is
    http://www.slipstick.com/exchange/adding-extended-mapi-fields-to-outlook/#trouble that's about all that I know off. There is also an Outlook development group you can ask this in
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    Cheers
    Glen

  • Apply retention tag to folder automatically

    We are planning to migrate some mailboxes from Exchange 2007, which uses MRM 1.0, to Exchange 2010, which uses MRM 2.0 (Retention Tags and Policies).
    Currently, with Exchange 2007/MRM 1.0 (Managed Folders), there is a "Retained Messages" folder that contains messages users want to keep.
    Messages in this folder will *not* be deleted after 18 months (expiration date for messages *elsewhere* in the mailbox).
    Good news is that even if we uncheck the Managed Folder Mailbox policy (in the mailbox properties), the "Retained Messages" folder remains (apparently as long as there are messages inside) and this "Retained Messages" folder
    does migrate with the rest of the mailbox in test migrations to Exchange 2010.
    The next part is the tricky part...
    We intend to apply a Retention Policy to the migrated mailbox that currently has only one tag "Never Delete" (this is one of the built-in tags).
    Before applying a default retention tag to the migrated mailboxes, we want to ensure that the "Never Delete" tag is applied to the migrated "Retained Messages" folder.
    Of course, we could ask users to apply this tag and once it is applied, we could add a default tag to the policy that would delete messages after they attain a certain age (180 days, 18 months, whatever).
    Is there a way we could apply this tag automatically, and avoid deletion of old messages, in case users forget to apply the "Never Delete" tag?
    I saw this discussion...
    https://social.technet.microsoft.com/Forums/exchange/en-US/97657e0c-c7f1-4c8e-bd7f-c7ecc9760e9c/push-a-folder-to-all-clients-apply-retention-tag-to-the-folder?forum=exchangesvrgenerallegacy
    but am wondering if anything has developed since.
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

    Hi David,
    According to your description, my understanding is that you want to make sure “Never Delete” tag is applied to all “Retained Message” folder in all mailbox. Then when the mailbox is applied with other Default Policy tag, this “Retained Message” folder would
    not be effected. Is it right?
    Please confirm if the “Never Delete” tag is a personal tag created in Exchange 2010. Based on my knowledge, if it is a personal tag, the user can apply it in Outlook or OWA client instead of server side.
    Additionally, there is a blog indicates that we can using Exchange Web Services to Apply a Personal Tag to a Custom Folder. I am not sure whether it works. Just hope it would be helpful for you:
    http://blogs.technet.com/b/exchange/archive/2013/05/20/using-exchange-web-services-to-apply-a-personal-tag-to-a-custom-folder.aspx
    Migrate from Managed Folders
    http://technet.microsoft.com/en-us/library/dd298032(v=exchg.141).aspx
    Regards,
    Winnie Liang
    TechNet Community Support

  • New retention tag in default MRM policy (question/recommendations)

    Hi. I was asked by a user to setup a policy so that she could assign a policy that deletes any items older than 90 days.  She'd like the ability to assign this action to any folder in Outlook, both default (inbox, sent, etc), and personal folders she's
    created.
    So, what I did was to create a new tag, and then added it to the default MRM policy.  This is what the tag looks like:
    My question is, is this the "correct" way of doing this? Should I have created a whole new policy with just the one tag in it? Also, will she be able to apply it to any folder in Outlook, including the default ones?
    Thanks in advance!

    You've missed one 'catch':
    Users can apply archive policies to default folders, user-created folders or subfolders, and individual items. Users can apply a retention policy to user-created folders or subfolders and individual items (including subfolders and items in a default
    folder), but not to default folders.
    http://technet.microsoft.com/en-us/library/dd297955(v=exchg.150).aspx#RT
    Personal tag with Delete action will not work in this case, if she wants to apply it to all folders.

  • Retention tags not working if mailbox has another language than english

    Hi folks
    I've created a retention tag (type: Inbox ) in exchange 2013 which deletes all mails older than 14 days. works perfectly for mailboxes with english standart folders, but if i apply the policy to an mailbox with german or french language, the emails
    are not getting deleted. i think the problem is that the inbox folder is called "Posteingang" in the german mailboxes.
    is there a workaround to use my retention tag for other languages as well?
    Thanks!

    Hm, that sounded interesting enough for a test, but since I'm an O365 guy, I run the test against EO. Works OK even after I rename the folders, the only thing I did was to simply run the Start-ManagedFolderAssistant cmdlet to speed up the process.
    EO is usually few versions ahead of on-prem, so either this has been fixed (and the fix is coming with CU7 or later), or we are simply missing something in your scenario. Have you verified that the policy is actually recognized as 14 days by the client,
    for the non-English mailboxes? Double-check the tag and policy, and run the Start-ManagedFolderAssistant just in case.

  • Retention tags and archiving mailboxes

    Im try to create personal retention policies to move archive mailbox, i successfull create with retention tag, but on outlook user is not appearing. Im using Outlook 2013 profesinal pluss with has license for all this features. Im try to move mailbox that
    has 3 month all to archiving, and is not working neither. Some help needed. 
    Im doing all this on ecp on exchange 2013

    Hi,
    Firstly, I'd like to recommend you refer to the following article to apply the retention policy again:
    http://technet.microsoft.com/en-us/library/jj150573(v=exchg.150).aspx
    If it still doesn't work, please check if there is any 9004 error in your event log.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Feature Request: Tagging coupled with Smart Folders

    Would love to see the next version of Safari add tagging, as has been mentioned here before, but more importantly I'd like to see Smart Folder capability added as well.
    I'm a big fan of Smart Folders in Mail; makes it easy to file -- I just drop everything in my "Saved Mail" folder, then set up the Smart Folders as needed (e.g., "Client Mail", "Mom", "Amazon - Sold, Ship Now", etc.
    Applying the same process to Safari bookmarks would be wonderful. For instance, let's say I have a bookmark for the plastic modeling website Starship Modeler (starshipmodeler.com); I could tag it with "Modeling" (obvious), "Shopping" (since it has a store), "Sci-Fi", and then even more specific tags like "Star Wars" or "2001 A Space Odyssey". I could then make a smart folder that would find bookmarks tagged only with "shopping" and "Star Wars", and it'd show up there. But it would also show up in my smart folder just for "modeling", etc.
    Right now I have hundreds of bookmarks if not more. I've tried a number of tagging programs but none really fit the bill. Native tagging, along with smart folders, would make Safari far and ahead my favorite browser (which it already is, but more so, eh?).

    Hi,
    Put a bug in Apple's ear by providing feedback here.
    http://www.apple.com/feedback/macosx.html
    Carolyn

  • Keyword tag search across multiple folders?

    In using windows XP aand Photoshop Elements 9.  My photos are located in multiple folders and sub folders.  I can tag photos in various folders, but when I use a tag to search for photos, i only get results for whatever folder is open in Organizer.  I cannot get it to return photos in more than one folder.  All the folders are "managed" and all are subfolders within the "Catalog."  What am I not doing or not understanding? 

    oh, thank you, thank you, thank you!!!!  I thought I was going crazy!
    Mary Beth in MN

  • Exchange 2010 Retention Tags

    Hi folks,
    I wonder if anyone can help please. I have applied a retention tag to automatically move staff emails to the Archive mailbox after 12 months and this policy has been in place now for a couple of years.
    The company now wish for me to apply some option retention tags for staff allowing them to choose to e.g. Archive after 2 years, 5 years etc...
    My question is that if a user chooses a folder in their live mailbox and selects Archive after 5 years, does that apply to emails just in the live mailbox or will the messages move back from their Archive mailbox to their live mailbox until the chosen Archive
    period expires?
    I hope this makes sense.
    Many thanks
    Danny

    If you have items in the archive, there is  no automated process to move those back into the live mailbox.  So if you archive everything older than 1 year now, and change the setting to 5 years, you will see nothing moved to or from this folder
    for the next four years.

  • fault name="NegativeCredit" ... what does fault tag mean

    Hi ,
    I was trying to understand the code generated for the CreditRating Service sample available with BPEL 10.1.2.
    Can anyone please explain what does the tag <fault> here mean. Does this get taken as an input variable into the 'process' method(operation). This is the first time I am seeing a fault tag along with the portType, I have come across input and output messages before, though not the fault tag. There is no explanation for the <fault> tag in the developer guide. Can anyone please explain.
    <portType name="CreditRatingService">
    <operation name="process">
    <input message="tns:CreditRatingServiceRequestMessage"/>
    <output message="tns:CreditRatingServiceResponseMessage"/>
    <fault name="NegativeCredit" message="tns:CreditRatingServiceFaultMessage" />
    </operation>
    </portType>

    Hi. This means operation "process" is synchronous, has input (naturally) = wait for message described type, has output = replies to client with described message, has fault = can add fault message to ouput message.
    I think that this way client haven't to parse output message to decide whether fault is occurred.
    Imagine synchronous process with catch branch. Standard Reply at the end of process has output and hasn't fault but in catch branch you can put another Reply with same output and fault. If process run out without exception, client get output message. If exception is occurred then client get output message with fault.

  • What are the steps to apply Oracle Patch?

    What are the steps to apply Oracle Patch?

    Hi,
    apply patch != apply patchset
    Generally, patch is apply with opatch tool (from 9i), and there is an exe for patchset.
    But, as it already said, the reading of readme is always a good idea...
    Nicolas.

  • Few HFM questions, What is XBRL tages? when we use it?  User defined1,2,3?

    Hi professionals,
    1) What is XBRL tags? I never use it in HFM. I want to know it in a smile way with an example if possible
    2) What is user Defined 1,2,3. HFM application run by many users. So how they share it and what it means exactly?
    Please revert me
    Thanks
    Sarath

    1.) XBRL - http://en.wikipedia.org/wiki/XBRL
    You may or may not use this depending on the particular business.
    2.) UD1, UD2, UD3 are what you want them to be. They are basically "extra" dimensions or work areas which you can take advantage of. For example we use one of the UD fields to link our accounts with Tax Stream (I think it's One Source now....).
    If you end up in a position where you need more than 3 UD fields, you can subdivide them by. For instance if I put a value in UD1 like cou=US,con=NA I could use the split command on the field and divide out the values into unique pieces, etc.

  • What does the color represent on these folders?

    RoboHelp 9.0.0.228/Server 9
    WebHelp Pro
    Single Project (upgraded from RH x5 to RH9)
    What does the color represent on these folders?  Today is the first day the folders have appeared this way (previously, they were solid yellow).
    Eva

    Hello again
    I'm not sure if it was you or another poster where I saw this. But in the last couple of days I recall reading a response from Adobe to someone here on the forums where they were advising something about conditional content in Frame and they advised some switch in the conversion settings could be flipped so that the conditions in Frame survived the trip into RoboWorld. Was that your by chance? If so, that would explain why you suddenly began seeing this.
    The only way I can fathom to coax the colors not to show is by removing all conditionals.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • j2ee-application .... what is this tag for???

    Hi,
    can anyone tell my why I should ever use this magic <j2ee-application....> Tag within the <security> Tag of a JNLP-File??? I never needed it and in my opinion nobody will ever need it....
    So what is this tag for??? What can I achieve with it?
    Thank you,
    Sven Haiges

    according to the book http://developer.java.sun.com/developer/Books/jnlp/
    j2ee-appplication-client-permissions does the following:
    When used with a trusted appliction (signed and explicitly accepted by the user), this subelement grants the below permissions:
    java.awt.AWTPermision (access to system clipboard)
    java.awt.AWTPermission (access to event queue)
    java.awt.AWTPermission (show window without warning banner)
    java.lang.RuntimePermission (allow exit of JVM)
    java.lang.RuntimePerimission (allow load library)
    java.lang.RuntimePermission (allow queue of print job)
    java.net.Socket.Permission (allow socket connectins)
    java.io.FilePermission (allow read/write files)
    java.io.Property permission (allow read properties)

  • Lots of existing threads, but no consistent answer - what settings need to be applied to the 2012 (new) Airport Express for it to work at hotels with an ethernet only connection?  Any answers specific to Japan would be helpful.

    Lots of existing threads, but no consistent answer - what settings need to be applied to the 2012 (new) Airport Express for it to work at hotels with an ethernet only connection?  Any answers specific to Japan would be helpful.  I would prefer not to take my old Dell laptop and just be able to use my Ipad 2 via the wireless connection that the Airport Express creates.  However, I can configure the Airport Express at home prior to leaving if that is the best thing to do.

    I have a very similar problem with my AE! My MacBook, MacBook Pro & iPod Touch (1st Generation) all get a GREAT signal from our AE. BUT, our iPod Touch (2nd Generation) and new iPad (WiFi) get terrible signal strength unless we're right next to the AE!! Tech support at Apple is of no help! I'm ready to sell them all! This all started when we got the last OS update for iPod Touch/iPhone/iPad. So it must be a software issue not a hardware one..
    Any ideas?

Maybe you are looking for