Forum Discussion
yshahzad
May 22, 2023Copper Contributor
Office 365 mailbox shows full instead of In-Place archiving
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
eliekarkafy
May 22, 2023MVP
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
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
yshahzad
May 22, 2023Copper Contributor
Will I run this command in Windows Powershell on the user's system or on any system?
- yshahzadMay 22, 2023Copper ContributorI 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- eliekarkafyMay 22, 2023MVP
yshahzad you need to connect to MS online first using PowerShell, here the steps:
- Install-Module MSOnline
- $Msolcred = Get-credential
- Connect-MsolService -Credential $MsolCred
- 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.
- yshahzadMay 22, 2023Copper Contributor
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:
CredentialThen 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