Category: Exchange

  • Ensure you have a user mailbox backup prior to starting the following process as there is potential risk of data loss.  Options are to have a third party solution to perform a mailbox backup or export to PST (see new-mailboxexport cmdlet). Capture relevant information from on-premise exchange and exchange online.…

    + , ,
  • #Load Exchange 2010 Module Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010 -ErrorAction SilentlyContinue #Setup Variables $Filename = “C:\temp\tasks\fowarding_address\export.csv” $header = “UPN,ForwardingSmtpAddress,DeliverToMailboxAndForward” $header | Out-File $Filename #Grab Data $Users = Get-Mailbox -ResultSize Unlimited -Filter { (ForwardingAddress -ne $null) -or (ForwardingSmtpAddress -ne $null) } ForEach ($User in $Users) { if ($user.ForwardingSmtpAddress -ne $null) { $forwardingSmtpAddress = $user.ForwardingSmtpAddress…

    + , ,
  • Add member of a role group which has the Mailbox Import Export role New-ManagementRoleAssignment -Role “Mailbox Import Export” -User “<user name or alias>” Export primary mailbox: New-MailboxExportRequest -Mailbox <user> -FilePath \\<server FQDN>\<shared folder name>\<PST name>.pst   Export archive mailbox: New-MailboxExportRequest -Mailbox <user> -FilePath \\<server FQDN>\<shared folder name>\<PST name>.pst -isarchive   More details…

    + ,
  • .Synopsis E-mail Counting Script v1 by ELAU 10/10/19 – Script counts emails received for each day of the current month .DESCRIPTION – Script pulls days of the month and counts number of emails received for each day of the current month or days specified into a HTML report. – Script…

    + ,
  • Recoverable Folder Size Report v1 Crawls all mailboxes and pulls the recoverableitemsquota size Displays top 10 in HTML report Full CSV report is generated E-mails report with full report # Setup E-mail Parameters $smtpServer = “host.server.com” $emailFrom = “from@address.com” $emailTo = @(‘<to@address.com>’) $subject = “Top Recoverable Folder Size – $date”…

    + ,
  • Shared mailboxes setup in cache mode will download entire content of the mailbox and will register every folder in each cached mailbox toward the objtFolder type limit on the server that’s running Exchange Server. By default, objtFolder limit is set to 500 per-mailbox limit.  Once the limit is exhausted, user…

    +
  • How do I recover an item after its been deleted? So long as the recoverable items purge duration has not exceeded, you can run the below command to pull e-mails. For more specific searchquery, reference Advanced Query Syntax (AQS). #type search example Search-mailbox -identity <guid> -SearchQuery ‘kind:<type>’ -SearchDumpsterOnly -TargetMailbox “<destination mailbox>”…

    + ,
  • Litigation Hold (Legal Hold) Used to preserve mailbox and electronically stored information in anticipation of legal proceedings, investigations, and unspecified reasons. Organizations may be required to inform when a user is placed on litigation hold. Specifications: Requires Discovery Management or Legal Hold Mgmt (RBAC) to place a mailbox in legal…

    + ,
  • The Cluster service cannot be started. An attempt to read configuration data from the Windows registry failed with error ‘2’. Please use the Failover Cluster Management snap-in to ensure that this machine is a member of a cluster. If you intend to add this machine to an existing cluster use…

    + ,
  • Example 1: Import-Module (Get-ChildItem -Path $($env:LOCALAPPDATA+”\Apps\2.0\”) -Filter ‘*ExoPowershellModule.dll’ -Recurse | Foreach{(Get-ChildItem -Path $_.Directory -Filter CreateExoPSSession.ps1)} | Sort-Object LastWriteTime | Select-Object -Last 1).FullName $User = “epic@onmicrosoft.com” $PasswordFile = “c:\o365\Password.txt” $KeyFile = “c:\o365\AES.key” $key = Get-Content $KeyFile $MyCredential = New-Object -TypeName System.Management.Automation.PSCredential ` -ArgumentList $User, (Get-Content $PasswordFile | ConvertTo-SecureString -Key $key) $proxysettings…

    + , ,