How do I get the pdf preview back without having to unblock one at a time?

Johanna Perri 0 Reputation points
2025-12-05T21:32:36.9633333+00:00

"The file you are attempting to preview could harm your computer. If you trust the source you received it from, open to view its contents." In my job, I use the PDF preview about 100 times per day. This is driving me crazy. On this site it says to unblock it but it still doesn't show the preview. This feature has never once caused a threat to my computer. Please tell me there's a better way as it is making my job a nightmare.

Windows for business | Windows 365 Business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-05T21:32:43.7533333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To restore PDF preview functionality without unblocking files one at a time, you may need to adjust your settings in Exchange Online PowerShell. Here are the steps you can follow:

    1. Download the Exchange Online PowerShell Module if you haven't already.
    2. Connect to the module using the appropriate commands.
    3. Use the Set-OwaMailboxPolicy cmdlet to update the parameters in the policy. You can set the parameters to allow previews without needing to unblock each file individually. Here’s an example command:
         Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -DirectFileAccessOnPrivateComputersEnabled $false -DirectFileAccessOnPublicComputersEnabled $false
      
    4. After applying these settings, test the PDF preview functionality in Outlook Web Access (OWA) to ensure that it works as expected.

    This approach should help you regain the ability to preview PDFs without the need to unblock them individually, streamlining your workflow significantly.


    References:

    0 comments No comments

  2. Hailey Huong Bui 2,135 Reputation points Independent Advisor
    2025-12-06T02:50:48.1033333+00:00

    Hi Johanna Perri

    I completely understand how frustrating this repeated warning and I know how inconvenient it is to unblock PDFs one by one, especially when you work with them constantly. The good news is that you can usually restore PDF previews globally by removing the “Mark of the Web” at the folder level instead of per file. To do this, move your PDFs into a local folder that is not synced to the internet (for example, C:\Users\<YourName>\Documents\TrustedPDFs), then right-click the folder, open Properties, and check under the General tab for an Unblock option. If it appears, unblocking the folder clears the security flags for all files inside it.

    Another effective method is to open one PDF in Edge or Adobe Reader and use Save As to re-save it into a trusted folder after that, new files placed there typically preview without warnings. Also, ensure your PDF preview handler is healthy by going to Settings > Apps > Default Apps, selecting your PDF program, and resetting it to defaults. A quick Explorer restart afterward usually brings the preview pane back immediately.

    If the issue persists, it may help to repair or reinstall your default PDF application, as damaged preview components can also trigger false alerts. We are continuously improving how Windows handles safe files, so your feedback is truly appreciated. If my guidance helps resolve the issue, please consider clicking “Accept answer” it really helps us improve the support experience 😊.

    Let me know if you'd like me to walk you through any of these steps in more detail.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.