How to use unblock-file command in PowerShell to unblock a file type?

Joshua Keown 0 Reputation points
2024-03-19T14:04:10.0166667+00:00

I'm trying to install a file with the extension .msi but I'm seeing an error that says "system administrator has set policies to prevent installation of this file type". Can someone explain how to use the unblock-file command in PowerShell to unblock this file type?

Windows for business Windows Server User experience PowerShell
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2024-03-19T14:58:15.83+00:00

    SMH. Not a PowerShell problem. Ask your AD Domain admin.

    0 comments No comments

  2. Anonymous
    2024-03-21T07:51:41.71+00:00

    Hi,

    Please note the Unblock-File cmdlet only unblocks files that you downloaded from the internet. You need to contact your system administrator if group policies block the MSI files.

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unblock-file?view=powershell-7.4

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

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