0 votes

Is there a way to export mailboxes to individual PST files 180 days after the account was set to expire?

/Kaj

by (650 points)
0

I like this idea. I'd be interested as well.

At the very least it seems very possible but I do not know how to have Adaxes look at accounts specifically 180 days or older.

https://gallery.technet.microsoft.com/o ... o-f45b9636

The support team has been great in creating scripts for me so I'm sure it's just a matter of time before they respond to you.

1 Answer

0 votes
by (292k points)
selected by
Best answer

Hello,

Yes, it is possible. To achieve this, use a Scheduled Task and the following scripts from our repository: http://www.adaxes.com/script-repository ... t-s497.htm. To create the Scheduled Task:

  1. Launch Adaxes Administration Console
  2. Right-click your Adaxes service node, navigate to New and click Scheduled Task.
  3. On step 3 of the Create Scheduled Task wizard, select User Object type and click Next.
  4. Click Add Action and select Run a program or Powershell script.
  5. Enter a short description and paste the Initiate Mailbox Export script into the Script field.
  6. Click OK and double-click Always.
  7. Select If account/password <expiration status>.
  8. Select If account expired more than 180 days ago and click OK.
  9. Right-click the condition and click Add Action.
  10. Select Update the User and click Add.
  11. In the Property to modify drop-down menu, select CustomAttributeBoolean1. The property is used to detect whether mailbox export was initiated.
  12. Select Update value.
  13. Select True in the New value field and click OK twice.
  14. Right-click the condition again and click Add New Condition.
  15. Select If <property><relation><value>.
  16. Select If CustomAttributeBoolean1 does not equal True and click OK.
  17. Click Add action to a new set.
  18. Select Run a program or Powershell script.
  19. Enter a short description and paste the Track Mailbox Export Process script into the Script field.
  20. Click OK and double-click Always.
  21. Select If <property><relation><value>.
  22. Select If CustomAttributeBoolean1 equals True and click OK.
  23. Right-click the condition and click Add New Condition.
  24. Select If <property><relation><value>.
  25. Select If CustomAttributeText1 is not empty and click OK.
  26. Right-click the condition again and click Add Action.
  27. Select Update the User and click Add.
  28. In the Property to modify drop-down menu, select CustomAttributeBoolean1.
  29. Select Remove property and click OK twice.
  30. Click Next and finish creating the Scheduled Task. You should have something like the following:
0

Thanks,

If I want to remove the Exchange mailbox after successful export, how should that look?

/Kaj

0

Hello,

To do this:

  1. Open the Track Mailbox Export Process script.

  2. Find the following lines:

     # Remove export request ID
     $Context.TargetObject.Put($requestIdProperty, $NULL)
     $Context.TargetObject.SetInfo()
    
  3. Insert the following line immediately before the lines you've found:

     $Context.TargetObject.DeleteMailbox()
  4. Save the changes. You should have something like the following:

     ...
         "ADM_EXPORTMAILBOXSTATUS_SUCCEEDED"
         {
             $Context.TargetObject.DeleteMailbox()
    
             # Remove export request ID
             $Context.TargetObject.Put($requestIdProperty, $NULL)
             $Context.TargetObject.SetInfo()
         }
     ...
    
0

Is there any way to do this with Office 365?

0

Hello,

Have a look at the following post on our forum: Office 365 Mailbox PST.

0

If I want to allow upto 10 failed messages in the export, how can this be done? Currently I got a bunch of mailboxes that keep on looping around and around in exporting, due to the fact that they fail in the end.

The 10 failed messages Is from if you migrate a mailbox you can allow certain amount of failed messages. Can such a thing be done for failed exports? Or just allow it in the first try.

Or if its not possible, prevent ADAxess from resubmitting the same request again or detecting failure and remove & email admin for manual export.

/Kaj

0

Hello Kaj,

If I want to allow upto 10 failed messages in the export, how can this be done?

You need to modify the Initiate Mailbox Export script. Set the second parameter of the CreateMailboxExportRequest method to 10:

# Create mailbox export request
$requestId = $Context.TargetObject.CreateMailboxExportRequest($filePath, 10, 0)

Or if its not possible, prevent ADAxess from resubmitting the same request again or detecting failure and remove & email admin for manual export.

When export fails, an email notification is sent and the property specified in the $requestIdProperty variable of the Track Mailbox Export Process script is cleared. To avoid another export attempt you can use another Boolean property (e.g. set CustomAttributeBoolean2 to False in the script) to detect mailboxes for which export failed and add the corresponding condition to the Scheduled Task. In this case the notification recipient will understand that they need to proceed with manual export.

Related questions

0 votes
1 answer

Hi, is it possible to export automatically the exchange online mailbox of a user to a .PST file on our archive server before the user is deleted? Kind regards, Fabian

asked Oct 26, 2023 by fabian.p (380 points)
0 votes
1 answer

I have setup a custom command to move a mailbox from on site to O365 using https://www.adaxes.com/help/?HowDoI.Per ... mO365.html and I'm getting the following error ... deatils OS: Windows server 2008 r2 Exchange: 2013 Adaxes details: 2017.2 3.8.14823.0

asked Jul 1, 2019 by hgletifer (1.3k points)
0 votes
1 answer

Is there a script we can use to take an OnPrem exchange mailbox and move it to Office365? Adaxes version 2017.2 3.8.14823.0 Also is this something that is already part of 2018.1?

asked Mar 12, 2019 by mytamhuyet (50 points)
0 votes
1 answer

Is there a script we can use to take an OnPrem exchange mailbox and move it to Office365? Adaxes version 2017.2 3.8.14823.0 Also is this something that is already part of 2018.1?

asked Jan 16, 2019 by hgletifer (1.3k points)
0 votes
1 answer

Hello, I'm trying to create a business rule that will update a user account expiry date when that user logs in for the first time. I'm new to Adaxes, so I don't have a ... updated by a user's action, such as "Last Logon". Is it possible to make this work?

asked Mar 6 by sjjb2024 (60 points)
3,569 questions
3,259 answers
8,275 comments
547,987 users