Example 1: New-MailboxRepairRequest -Mailbox tony@contoso.com -CorruptionType FolderView Example 2: This example only detects and reports on ProvisionedFolder and SearchFolder corruption issues to Ayla Kol’s mailbox. This command doesn’t
Author: admin
How to import users into exchange with a Powershell scriptHow to import users into exchange with a Powershell script
Download the files to a folder of you choice and edit in the ps1 script the location of the CSV file, Update accordingly the CSV file : import_users enter the
How to force mount exchange databaseHow to force mount exchange database
Open exchange Powershell : Mount-Database -identity "Your_Database_Name" -Force
How to find exchange database with Circular LoggingHow to find exchange database with Circular Logging
show database with Circular Logging : Get-MailboxDatabase | where {$_.CircularLoggingEnabled -eq $true} | out-gridview Without : Get-MailboxDatabase | where {$_.CircularLoggingEnabled -eq $false} | out-gridview
How to create disk space alert by emailHow to create disk space alert by email
Download the file and extract to folder of your choice DiskSpaceAlert configure the variables in the SendMail.ini : smtp server and it’s credentials , From Address,To Address , Subject, Body
How to delete emails from exchange profilesHow to delete emails from exchange profiles
As Admin you can delete specific wrongly send emails from your users mailbox : Open Exchange Powershell , To delete from user@example.com email with the subject “Mail delivery failed: returning
How to change exchange Preferred Server For DBHow to change exchange Preferred Server For DB
Open exchange Powershell Set-MailboxDatabaseCopy -identity {Database_Name\New_Server_Name} -ActivationPreference 1 Confirm: Get-MailboxDatabase 'Database_Name'|fl server, databaseCopies, activationPreference
How to delete exchange log fileHow to delete exchange log file
If you need to delete exchange log file in case of space problem or some other reason, Best do it safely -> open Powershell as Administrator and run : forfiles
How to fix index failed state on exchange with dagHow to fix index failed state on exchange with dag
Open Exchange Powershell to get all the bad index: To get all the bad index: Get-MailboxDatabaseCopyStatus * | where {$_.ContentIndexState -eq "Failed"} Get bad copy status : Get-MailboxDatabaseCopyStatus * |
How to Get exchange health statusHow to Get exchange health status
To get exchange health status first open exchange Powershell , run the command : Get-MailboxDatabaseCopyStatus * | sort name | Select name,status,contentindexstate If all the databases are mounted and