Upload PST emails to Mailbox

 

1.     Download the PST file from the mentioned link. (Keep the PST in user One Drive for future safe keeping)

2.     Open Outlook.

3.     Choose the File tab in the ribbon.

4.     Choose “Open & Export”

5.     Click on “Import/Export”

1.     Select “Import from another program or file”.

2.     Click Next.

3.     Select "Outlook Data File(.pst)” option.

4.     Click next.

5.     Browse to PST file location and select the file.

6.     Click next.

Restore emails from soft deleted mailbox

 

1.      Run this command to get the necessary information about the mailbox:

Get-Mailbox -InactiveMailboxOnly | FL Name,DistinguishedName,ExchangeGuid,PrimarySmtpAddress

 

2.      Run this command to store the mailbox to a variable.  (Identity here is the ExchangeGUID for Adam Platt and was gathered from running the previous command)

 

$InactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity 12341111-8d44-46fe-a41c-55234234

 

3.      Run this command to restore the contents of the inactive mailbox to an existing mailbox, while specifying a top-level folder in the target mailbox in which to restore the contents from the inactive mailbox. If the specified target folder or target folder structure doesn't already exist in the target mailbox, it is created during the restore process. 

New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName -TargetMailbox user@xyz.com -TargetRootFolder "user's Inbox" -AllowLegacyDNMismatch

 

4.      Restore the contents of the archive from the inactive mailbox to the archive of an existing mailbox, while specifying a specific folder:

New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName -SourceIsArchive -TargetMailbox user@xyz.com -TargetIsArchive -TargetRootFolder "user’s Archive" -AllowLegacyDNM

                                                OR

Restore the contents of the archive from the inactive mailbox to existing mailbox inbox folder, while specifying a specific folder:

 

New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName -SourceIsArchive -TargetMailbox user@xyz.com -TargetRootFolder "user’s Archive" -AllowLegacyDNMismatch

 

Outlook Search Issue - No Results Found

 

Step 1: Check Outlook Search Settings

  1. Open Outlook.
  2. Go to File > Options > Search.
  3. Click Indexing Options….
  4. Ensure Microsoft Outlook is listed under Included Locations. If not, click Modify and check it.
  5. Click Advanced, then under the Index Settings tab, click Rebuild to recreate the search index. This may take time depending on mailbox size.

If “Indexing Options…” is Grayed Out

  1. Press Windows + R, type services.msc, and press Enter.
  2. Locate Windows Search in the list.
  3. If it's Stopped, right-click and select Start.
  4. If it's Disabled:
    • Right-click > Properties.
    • Set Startup type to Automatic.
    • Click OK, then Start the service.

Step 2: Ensure Windows Search Feature is Enabled

 

  1. Open Control Panel > Programs and Features.
  2. Click Turn Windows features on or off (left pane).
  3. Ensure Windows Search is checked. If not, check it and click OK.
  4. Restart your PC if prompted.

Step 3: Additional Fixes (if issue persists)

 

  • Check File Indexing Permissions:
    • Navigate to your OST/PST file location (usually under C:\Users\<username>\AppData\Local\Microsoft\Outlook).
    • Right-click the file > Properties > Advanced.
    • Ensure "Allow this file to have contents indexed..." is checked.

 

  • Run the Windows Search Troubleshooter:
    • Go to Settings > System > Troubleshoot > Other troubleshooters.
    • Run the Search and Indexing troubleshooter.

 

  • Repair Outlook Data Files:
    • Run scanpst.exe (Inbox Repair Tool) to fix corrupted PST/OST files.

 

  • Create a New Outlook Profile:
    • Go to Control Panel > Mail > Show Profiles > Add.
    • Set up a new profile and test search functionality.

check outlook blocked sender from online powerShell

 

1.     Admins can run this Commands to check blocked sender from online PowerShell -

 

(Get-MailboxJunkEmailConfiguration as.h@xyz.com).BlockedSendersAndDomains

 

2.     Command to remove blocked sender -

 

Set-MailboxJunkEmailConfiguration -Identity "user@domain.com" -BlockedSendersAndDomains @{Remove="example@domain.com"}

Enable/Set on-prem user as remote mailbox o365

Enable-RemoteMailbox -identity user -RemoteRoutingAddress user@xyz.mail.onmicrosoft.com


Enable-RemoteMailbox -identity user -Archive 


Bulk script -

foreach($i in get-content C:\New_folder\123.txt){Enable-RemoteMailbox -Identity $i@xyz.com -RemoteRoutingAddress $i@xyz.mail.onmicrosoft.com}


Get-Content "C:\New_folder\123.txt" | Enable-RemoteMailbox -Archive