Office 365 mailbox shows full instead of In-Place archiving

Copper Contributor

Hi

 

We have a user whose Office 365 mailbox shows full instead of In-Place archiving.

 

In-Place archiving is still more than 50%.

 

How to fix this

21 Replies
what is your retention policy applied on this mailbox ?
Default policy

Default 2-year move to archive

Default 730 days Archive
and the emails aged more than 2 years are not moved to the archive ?

you can force the archiving of the emails on this mailbox by using the managed folder assistant command:

Start-ManagedFolderAssistant -Identity "Chris"

after running this script the emails will move the archive folder as per the policy applied and you can monitor the space used in the archive
Will I run this command in Windows Powershell on the user's system or on any system?
I tried to run this command on my system but got the below error:

Start-ManagedFolderAssistant : The term 'Start-ManagedFolderAssistant' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Start-ManagedFolderAssistant -identitiy "Rizwan"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Start-ManagedFolderAssistant:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

@yshahzad you need to connect to MS online first using PowerShell, here the steps:

 

  1. Install-Module MSOnline
  2. $Msolcred = Get-credential
  3. Connect-MsolService -Credential $MsolCred
  4. Start-ManagedFolderAssistant -Identity "Chris"

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.

@eliekarkafy 

 

I am not good at 365, so please assist me.

 

When I run "Install-Module MSOnline" the below msg appears

 

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the
Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): 

 

I typed y

 

Then I run "$Msolcred = Get-credential", the below msg appears

 

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential

 

Then I entered my office365 Admin credentials

 

After that this command run properly "Connect-MsolService -Credential $MsolCred"

 

But when I run " Start-ManagedFolderAssistant -Identity "rizwan", it gives the below msg

 

Start-ManagedFolderAssistant: The term 'Start-ManagedFolderAssistant' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Start-ManagedFolderAssistant -Identity "rizwan"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Start-ManagedFolderAssistant:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

 

 

 

your credentials are for a global admin user ? please use the below instead

  1. Install-Module ExchangeOnlineManagement
  2. Connect-ExchangeOnline
  3. Start-ManagedFolderAssistant .....
please use the below instead

Install-Module ExchangeOnlineManagement
Connect-ExchangeOnline
Start-ManagedFolderAssistant .....
I used all the commands and received the below errors:

PS C:\WINDOWS\system32> Install-Module ExchangeOnlineManagement

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the
Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y

WARNING: Version '2.0.5' of module 'ExchangeOnlineManagement' is already installed at 'C:\Program
Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5'. To install version '3.1.0', run Install-Module and add the -Force parameter, this
command will install version '3.1.0' in side-by-side with version '2.0.5'.

PS C:\WINDOWS\system32> Connect-ExchangeOnline

----------------------------------------------------------------------------
The module allows access to all existing remote PowerShell (V1) cmdlets in addition to the 9 new, faster, and more reliable cmdlets.

|--------------------------------------------------------------------------|
| Old Cmdlets | New/Reliable/Faster Cmdlets |
|--------------------------------------------------------------------------|
| Get-CASMailbox | Get-EXOCASMailbox |
| Get-Mailbox | Get-EXOMailbox |
| Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission |
| Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics |
| Get-MailboxPermission | Get-EXOMailboxPermission |
| Get-MailboxStatistics | Get-EXOMailboxStatistics |
| Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics |
| Get-Recipient | Get-EXORecipient |
| Get-RecipientPermission | Get-EXORecipientPermission |
|--------------------------------------------------------------------------|

To get additional information, run: Get-Help Connect-ExchangeOnline or check https://aka.ms/exops-docs

Send your product improvement suggestions and feedback to email address removed for privacy reasons. For issues related to the module, contact Microsoft support. Don't use the feedback alias for problems or support issues.
----------------------------------------------------------------------------

New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the
about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [New-ExoPSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Exchange.Management.ExoPowershellSna
pin.NewExoPSSession
$cred = Get-Credential
Connect-ExchangeOnline -Credential $cred -ShowProgress $true
After running the first command, I entered Global Admin Credentials.

PS C:\WINDOWS\system32> $cred = Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\WINDOWS\system32> $cred = Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\WINDOWS\system32> Connect-ExchangeOnline -Credential $cred -ShowProgress $true

----------------------------------------------------------------------------
The module allows access to all existing remote PowerShell (V1) cmdlets in addition to the 9 new, faster, and more reliable cmdlets.

|--------------------------------------------------------------------------|
| Old Cmdlets | New/Reliable/Faster Cmdlets |
|--------------------------------------------------------------------------|
| Get-CASMailbox | Get-EXOCASMailbox |
| Get-Mailbox | Get-EXOMailbox |
| Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission |
| Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics |
| Get-MailboxPermission | Get-EXOMailboxPermission |
| Get-MailboxStatistics | Get-EXOMailboxStatistics |
| Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics |
| Get-Recipient | Get-EXORecipient |
| Get-RecipientPermission | Get-EXORecipientPermission |
|--------------------------------------------------------------------------|

To get additional information, run: Get-Help Connect-ExchangeOnline or check https://aka.ms/exops-docs

Send your product improvement suggestions and feedback to email address removed for privacy reasons. For issues related to the module, contact Microsoft support. Don't use the feedback alias for problems or support issues.
----------------------------------------------------------------------------

New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the
about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [New-ExoPSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Exchange.Management.ExoPowershellSna
pin.NewExoPSSession
can you try this from different machine , seems something wrong with your modules version on this machine
OK, let me try all these commands on other machines and then I will get back to you.
I tried the below commands. All run properly except the last command.

Install-Module MSOnline
$Msolcred = Get-credential
Connect-MsolService -Credential $MsolCred
Start-ManagedFolderAssistant -Identity "Chris"

In the last command, what should I write in place of "Chris"?

PS C:\WINDOWS\system32> Start-ManagedFolderAssistant -Identity "rizwan"
Start-ManagedFolderAssistant : The term 'Start-ManagedFolderAssistant' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ Start-ManagedFolderAssistant -Identity "rizwan"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Start-ManagedFolderAssistant:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
check if the execution policy is set to unrestricted.

@yshahzad 

Supplement on In-Place Archiving in case you need this:

 

In-Place Archiving in Exchange Server | Microsoft Learn

 

 

How to check the execution policy set to unrestricted?