Announcement

Collapse
No announcement yet.

Exchange 2010 calendar items

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exchange 2010 calendar items

    I am trying to delete a Exchange calendar item for one use. I have this script:
    Code:
     
     Search-Mailbox -Identity "test" -SearchQuery 'Subject:"Store bededag"' –EstimateResultOnly
    That shows me that there are 12 items in that mailbox, when I use this script:
    Code:
     
     Search-Mailbox -Identity "ITBP" -SearchQuery 'Subject:"Store bededag"' –DeleteContent
    I get the follewing error:
    A positional parameter cannot be found that accepts argument '-DeleteContent'.
    + CategoryInfo : InvalidArgument: ( [Search-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Search-Mailbox


    How do I delete an item?

  • #2
    Re: Exchange 2010 calendar items

    It would appear (see https://social.technet.microsoft.com...-deletecontent) that it is a permissions issue
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Exchange 2010 calendar items

      I have googled the same. But it seem that the admin account I am using allready have that role assignt and also Organization Management.

      Comment


      • #4
        Re: Exchange 2010 calendar items

        So you have added the "Mailbox import Export" role to the account?- from the link, it is not assigned to anyone by default
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment


        • #5
          Re: Exchange 2010 calendar items

          Yes I have assignet it. I have checked it with this command:
          Get-ManagementRoleAssignment -Role "Mailbox Import Export" | ft Identity

          Comment

          Working...
          X