Recently I was installing Sitecore 9.3 XP on client’s machine using SIA (Sitecore Install Assistant). During the process I got below error.
Error:
The following error occurred while loading the extended type data file:
Microsoft.PowerShell, C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\SitecoreInstallFramework.types.ps1xml: The file was skipped because of the following validation exception: AuthorizationManager check failed..
************************************
Sitecore Install Framework
Version - 2.1.0
************************************
WorkingDirectory : C:\SC\Sitecore 9.3.0 rev. 003498 (Setup XP0 Developer Workstation rev. 1.1.1-r4)
WhatIf : False
Verbose : SilentlyContinue
Configuration : C:\SC\Sitecore 9.3.0 rev. 003498 (Setup XP0 Developer Workstation rev.
1.1.1-r4)\Prerequisites.json
Debug : SilentlyContinue
AutoRegisterExtensions : False
WarningAction : Continue
ErrorAction : Stop
InformationAction : Continue
Solution:
In some client’s machine have more security setup which blocks the execution of PowerShell scripts. The solution is to unblock the script file.
Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules\' -Recurse | Unblock-File
The above code will unblock or removes the security restriction from the powershell script and you will not get the error again.